Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,672 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,170 people online right now. Registration is fast and FREE... Join Now!




what about this #?

 
Reply to this topicStart new topic

what about this #?

jencalma
post 15 Jul, 2007 - 05:41 AM
Post #1


New D.I.C Head

*
Joined: 13 Jul, 2007
Posts: 47


My Contributions


when i type this in the turbo c:
#include<stdio.h>
main()
{
printf("jennilyn")
getch();
}

it has error and the error is the # what happen? it says that " can create an output"
what will i do then??
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 15 Jul, 2007 - 05:54 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,178



Thanked 33 times

Dream Kudos: 25
My Contributions


Please post the error you are receiving. It is likely that you have not properly terminated the printf() statement. In C, all executable statements end with a semi colon.
CODE

printf("jennilyn");

User is online!Profile CardPM

Go to the top of the page

no2pencil
post 15 Jul, 2007 - 08:13 AM
Post #3


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


QUOTE(jencalma @ 15 Jul, 2007 - 06:41 AM) *

when i type this in the turbo c:
#include<stdio.h>
main()
{
printf("jennilyn")
getch();
}

it has error and the error is the # what happen? it says that " can create an output"
what will i do then??

I would suggest you place a space after your include, & a semi-colon after you're printf, as previously noted.

CODE

#include <stdio.h>
main() {
   printf("jennilyn");
   getch();
}
User is offlineProfile CardPM

Go to the top of the page

jencalma
post 16 Jul, 2007 - 12:06 AM
Post #4


New D.I.C Head

*
Joined: 13 Jul, 2007
Posts: 47


My Contributions


QUOTE(no2pencil @ 15 Jul, 2007 - 09:13 AM) *

QUOTE(jencalma @ 15 Jul, 2007 - 06:41 AM) *

when i type this in the turbo c:
#include<stdio.h>
main()
{
printf("jennilyn")
getch();
}

it has error and the error is the # what happen? it says that " can create an output"
what will i do then??

I would suggest you place a space after your include, & a semi-colon after you're printf, as previously noted.

CODE

#include <stdio.h>
main() {
   printf("jennilyn");
   getch();
}



when i try to put the semicolon in ("jennilyn"); it says that it can create an output and the # is the error!
User is offlineProfile CardPM

Go to the top of the page

him
post 16 Jul, 2007 - 02:23 AM
Post #5


New D.I.C Head

*
Joined: 13 Jul, 2007
Posts: 6


My Contributions


use bordland compiler
it will work
turbo c is out of date???
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 16 Jul, 2007 - 04:06 AM
Post #6


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,178



Thanked 33 times

Dream Kudos: 25
My Contributions


Can you post the exact, word for word, error message?
User is online!Profile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 06:08AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month