Page 171 of 4979 [ 79663 posts ]  Go to page Previous  1 ... 168, 169, 170, 171, 172, 173, 174 ... 4979  Next

bizarre
Veteran
Veteran

User avatar

Joined: 25 Feb 2006
Gender: Female
Posts: 2,981
Location: In ur threadz postin cats

24 Mar 2007, 1:40 pm

lemon wrote:
bizarre wrote:
I hope Starr comes back.


she said she would come back sunday or monday (see back/away)


and a quick win for now


Thank you lemon i was worried.

**waits for Starr to return**


_________________
It are a fact
I know because of my learnings.


Aspie_for_the_Lord
Veteran
Veteran

User avatar

Joined: 17 Aug 2006
Gender: Male
Posts: 3,521
Location: Bristol, England

24 Mar 2007, 1:53 pm

well im off in a bit, got a meeting


_________________
i am that which i am...


Jameson
Veteran
Veteran

User avatar

Joined: 3 Jan 2007
Gender: Male
Posts: 2,877
Location: Here and there.

24 Mar 2007, 2:00 pm

Gilb wrote:
Jameson wrote:
Gilb wrote:
using <stdio.h>
main()
{
printf("this is the last post so far/n ps i do know that there will be many problem with this source code because i haven't programmed c in a long time");
}


You forgot to give main() a return type. I suggest "void main()" since you don't have a return statement, though to be proper C it's a good idea to have "int main(int argc, char** argv)" and a "return 0" later in your code.

Morning all.

looking at an old 1980's C book
the term is "include" not using (that is C# :oops: )
there is a missing # on the preprocessor command Include
i remember being told that i should always give main() a return type but in this case it doesn't matter
though i am just a newbie when it gets to programming, i have no idea what "char** argv" actually does


Don't know how I missed seeing the include mistakes... "using" is in C++ too, for declaring namespace usage.

The variables in the main declaration are used to pass information to the program when calling it from the command line. The int is the number of arguments, and the char** is an array of character arrays (array of strings basically, holds the arguments). So you can call a program like "prog.exe arg1 arg2" and as a result, argc=3, argv[0]="prog.exe", argv[1]="arg1", and argv[2]="arg2". Most people will do "char* argv[]" instead of "char** argv", but the two are equivalent.


_________________
Air·is·water·with·holes·in·it. Think·honk·if·you're·a·telepath. Never·call·a·man·a·fool.·Borrow·from·him. A·tautology·is·a·thing·which·is·tautological. Hi!·I'm·a·.signature·virus!·Copy·me·into·your·~/.signature·to·help·me·spread!


lemon
Veteran
Veteran

User avatar

Joined: 27 Aug 2006
Age: 56
Gender: Female
Posts: 4,113
Location: belgium

24 Mar 2007, 2:02 pm

bizarre wrote:

Thank you lemon i was worried.

**waits for Starr to return**


you're welcome !


thanks A-f-t-l


and this is a win :D



Aspie_for_the_Lord
Veteran
Veteran

User avatar

Joined: 17 Aug 2006
Gender: Male
Posts: 3,521
Location: Bristol, England

24 Mar 2007, 2:06 pm

! !!niw I


_________________
i am that which i am...


Raph522
Veteran
Veteran

User avatar

Joined: 4 May 2006
Gender: Female
Posts: 13,717

24 Mar 2007, 2:52 pm

...od I oN


_________________
snowcone


Jameson
Veteran
Veteran

User avatar

Joined: 3 Jan 2007
Gender: Male
Posts: 2,877
Location: Here and there.

24 Mar 2007, 2:57 pm

Right... I'm going to go work on a new juggling video. Don't win while I'm away! :D


_________________
Air·is·water·with·holes·in·it. Think·honk·if·you're·a·telepath. Never·call·a·man·a·fool.·Borrow·from·him. A·tautology·is·a·thing·which·is·tautological. Hi!·I'm·a·.signature·virus!·Copy·me·into·your·~/.signature·to·help·me·spread!


Raph522
Veteran
Veteran

User avatar

Joined: 4 May 2006
Gender: Female
Posts: 13,717

24 Mar 2007, 3:29 pm

New message

egassem weN


_________________
snowcone


SamuraiSaxen
Veteran
Veteran

User avatar

Joined: 11 Sep 2006
Age: 38
Gender: Female
Posts: 3,465
Location: Mexico

24 Mar 2007, 3:35 pm

:P



Raph522
Veteran
Veteran

User avatar

Joined: 4 May 2006
Gender: Female
Posts: 13,717

24 Mar 2007, 3:36 pm

8O :wink:


_________________
snowcone


SamuraiSaxen
Veteran
Veteran

User avatar

Joined: 11 Sep 2006
Age: 38
Gender: Female
Posts: 3,465
Location: Mexico

24 Mar 2007, 3:45 pm

:roll:



Raph522
Veteran
Veteran

User avatar

Joined: 4 May 2006
Gender: Female
Posts: 13,717

24 Mar 2007, 3:46 pm

:shameonyou:


_________________
snowcone


SamuraiSaxen
Veteran
Veteran

User avatar

Joined: 11 Sep 2006
Age: 38
Gender: Female
Posts: 3,465
Location: Mexico

24 Mar 2007, 3:51 pm

I'll win :)



Raph522
Veteran
Veteran

User avatar

Joined: 4 May 2006
Gender: Female
Posts: 13,717

24 Mar 2007, 3:52 pm

Me too :D

oot em :D


_________________
snowcone


SamuraiSaxen
Veteran
Veteran

User avatar

Joined: 11 Sep 2006
Age: 38
Gender: Female
Posts: 3,465
Location: Mexico

24 Mar 2007, 3:58 pm

. . .



Raph522
Veteran
Veteran

User avatar

Joined: 4 May 2006
Gender: Female
Posts: 13,717

24 Mar 2007, 3:59 pm

:?


_________________
snowcone