Page 1 of 2
TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 11:31 am
by SANTOSH273
ALGORITHM IS DIFFICULT
CAN U HELP ME CHUCK, PLEASE DO TELL HOW TO EXECUTE THAT
AND THE OTHER SAMPLE PROGRAMS.
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 3:31 pm
by Charles
TPK is here:
http://cobra-language.com/samples/TPK/You will also find it in the source code under Samples\
Source code is here:
http://cobra-language.com/source/Execution is simply: cobra TPK.cobra
...after you have installed Cobra, either from source or from the downloads:
http://cobra-language.com/downloads/Also, it's customary not to write in all capital letters. Feel free to use lowercase like everyone help.
Hope that helps,
Chuck
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 3:49 pm
by SANTOSH273
hi ,chuck
I downloaded cobra. It is showing erors
I am running cobra through command prompt
i am using c:\cobra\source\install0from-workspace
to install and then i am treying it is not working
can u tlel me how to execute tpk. today i have to submit it to my professor.
please help me.
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 3:51 pm
by SANTOSH273
how to run tpk program and get the answer
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 4:32 pm
by Charles
When you experience errors, you need to include the errors in your report. Otherwise it is difficult to help you. Also, tell me what version of .NET or Mono you are on and what operating system.
Thanks.
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 4:35 pm
by SANTOSH273
i ma running on vista,
1.cobra is not recognised as an internal or external command
2.abs is not defined
like that
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 4:39 pm
by Charles
I'm able to compile the program (and run it if I choose) like so:
- Code: Select all
C:\...\Cobra\Workspace\Samples> cobra -c TPK.cobra
Compilation succeeded
C:\...\Cobra\Workspace\Samples> dir tpk.*
12/28/2008 01:04 AM 2,966 TPK.cobra
03/27/2009 04:39 PM 6,656 TPK.exe
C:\...\Cobra\Workspace\Samples> _
I'm using the latest Cobra from source on Windows XP SP 2 with MS .NET 2.0.
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 4:55 pm
by SANTOSH273
i ma now running on xp-2
.net 2.0
i still have a problem
can u help me .
my cobra latest version is in c:\cobra\source
please explain me how to run the program.
i kept the tpk file right in the source folder and run
error -- >it cam e as cobra is not recognised as internal or external command.
"I think i am using wrong commands to execute the program"
c:\cobra\source\cobra -c tpk.cobra # i am using this to run the program#
i installed the cobra just by downloading the latest version and
c:\cobra\source\install-from-workspace
still i ma unable to please help me.
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 5:13 pm
by Charles
Well if you ran the installer, then the "cobra" command was put in C:\Cobra\bin\cobra.bat so change your command to:
- Code: Select all
C:\Cobra\bin\cobra.bat -c TPK.cobra
You could also verify that it's there by looking in that directory:
- Code: Select all
dir C:\Cobra\bin
Also, I would put your workspace in something like C:\Cobra\Workspace instead of C:\Cobra since C:\Cobra is the default target for the installer! You could start over by removing all of C:\Cobra. Making a workspace underneath in C:\Cobra\Workspace and trying again.
Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT
Posted:
Fri Mar 27, 2009 5:41 pm
by SANTOSH273
i got it thanq