Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Incrementing in Unix
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jamonathin




PostPosted: Mon Oct 08, 2007 3:37 pm   Post subject: Incrementing in Unix

Hey all, im having the damnest time trying to figure out how to do something like
c:

int c = 0;
c++;

in csh.

I've been looking everywhere and i cant get anything to work =/
Sponsor
Sponsor
Sponsor
sponsor
OneOffDriveByPoster




PostPosted: Mon Oct 08, 2007 7:08 pm   Post subject: Re: Incrementing in Unix

jamonathin @ Mon Oct 08, 2007 3:37 pm wrote:
I've been looking everywhere and i cant get anything to work =/

man csh Smile

csh:
#!/bin/csh
set c=0
@ c++
echo $c
jamonathin




PostPosted: Tue Oct 09, 2007 2:00 pm   Post subject: Re: Incrementing in Unix

g'ah! thanks man
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: