![]() |
[solved](.cpp)"Hello world" in n900 (getting error) plz guide me.
1 Attachment(s)
Here i have done a few things on my N900 from
http://ossguy.com/?p=475 to run .cpp files and when i try to run this using g++ it shows error here is my programme # include <stdio.h> # include <conio.h> int main (void) { printf ("hlloe wolrd"); getch(); } UPDATE: Thanks to all of you guys i managed to run and also modify .cpp files now (i am using filebox along with the leafpad to edit .cpp) |
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
I've never touched C++ but I have done a little C.
Is there any reason why you're using them headers? You should only need stdio, like so #include <stdio.h> int main(void) { printf("hello, world\n"); return 0; } unless you were planning to expand. Were you trying to get stdin from the user? I'm Perl/Haskell guy. Sorry I can't be of more help |
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
|
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
also i am using <conio.h> header file to use getch() for "heelo wolrd" to remain on the screen |
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
i wont to show them all THE POWER OF N900! |
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
you need to tell g++ where to look for conio.h, usually via the -L switch.
but google tells me that conio.h is a very old msdos library, i doubt it'll work in this environment. try something like "cin.get()" (and #include <iostream>) |
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
|
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
|
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
|
Re: (.cpp)"Hello world" in n900 (getting error) plz guide me.
Quote:
|
All times are GMT. The time now is 20:22. |
vBulletin® Version 3.8.8