PDA

View Full Version : Anyone here know C Programming?



harrylmh
February 11th, 2001, 10:03
Can anyone who know C programming teach me how to make a function that outputs the message:
"
Hello, how are u?
"


thank u

jw
February 11th, 2001, 14:09
void printMessage()
{
cout<<"Hello, how are you?"<<endl;
}

Coolin
February 11th, 2001, 14:42
Wow, now I know why they say C is difficult.

harrylmh
February 11th, 2001, 19:25
Thank you jw.
It worked. I really don't know why I'd thought of it so complex!

Thanks again.

Zef Hemel
February 12th, 2001, 10:40
Hehe, well actually that was C++, in C that would be:

void SomeFunction() {
printf("Hello, how are you?\n");
}

Which is a bit less complicated ;)

harrylmh
February 12th, 2001, 11:09
Thank you Zef. I was referring to C++(kinda forgot the ++). Anyway, thanks for replying too Zef. I wasn't expecting much of a response in such a short time from a general forum that's mainly focused on web building.

I had a tutorial on creating such a function and I don't know so I came here.

I think they should create a C/C++ Programming forum. It would be so cool to talk about it.

Zef, you sound like a pro-C programmer. Do you also know C++?

Thanks all.

Zef Hemel
February 12th, 2001, 12:08
Nah, I have a 800 page counting book about Borland C++ 5 I think, only read it partly. I like C-like languages though. C is very cool, though right now I'm mainly writing web based apps :)

Zitech_Industries
February 13th, 2001, 05:26
Agh! To much programing language. Can't learn them all. Still need to learn C...G...I GAH!