Forums

TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby SANTOSH273 » Fri Mar 27, 2009 11:31 am

ALGORITHM IS DIFFICULT
CAN U HELP ME CHUCK, PLEASE DO TELL HOW TO EXECUTE THAT
AND THE OTHER SAMPLE PROGRAMS.
SANTOSH273
 
Posts: 9

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby Charles » Fri Mar 27, 2009 3:31 pm

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
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby SANTOSH273 » Fri Mar 27, 2009 3:49 pm

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.
SANTOSH273
 
Posts: 9

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby SANTOSH273 » Fri Mar 27, 2009 3:51 pm

how to run tpk program and get the answer
SANTOSH273
 
Posts: 9

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby Charles » Fri Mar 27, 2009 4:32 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby SANTOSH273 » Fri Mar 27, 2009 4:35 pm

i ma running on vista,
1.cobra is not recognised as an internal or external command
2.abs is not defined
like that
SANTOSH273
 
Posts: 9

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby Charles » Fri Mar 27, 2009 4:39 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby SANTOSH273 » Fri Mar 27, 2009 4:55 pm

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.
SANTOSH273
 
Posts: 9

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby Charles » Fri Mar 27, 2009 5:13 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: TPK , CAN U HELP US, ITS MY PROJECT TO SUBMIT

Postby SANTOSH273 » Fri Mar 27, 2009 5:41 pm

i got it thanq
SANTOSH273
 
Posts: 9

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 5 guests