good grief. How can I help already?
All the help I have received on this site has been
so great. I just wish there was some other way I could contribute to this project besides bugging you guys with a bunch of dumb newbie questions all the time.(I guess I could stop asking dumb questions for one.) I wish I could be a gimp but My C++ is probably the furthest thing from 3l33T you can get. #include <iostream> int main() { std::cout << "I suck ass!\n"; } I just wish there was some kind of way to give back to this project aside from like sending large unmarked bills. Oh well, just want to let you guys know how much I appreciate what you do for those of us ex-eq addicts. Thanks again.:p |
#include <iostream.h>
hehe, sorry, had to correct your small error :p I am so bored, lol |
I hate to tell you, but
#include <iostream> is not an error, that is ANSI complaint, could use a using namespace std; though and no void main use int main(int argc, char** argv) |
why use
int main if you're not returning anything? |
ha!
Ha!! This was my point in the first place folks.
But thanks for the corrections, once again I get nothing but help. :cool: |
Hmm.. don't confuse 'help' and 'criticism' !
LOL |
amen to that...
dont worry, there is no confusion, one mans criticism is another mans knowledge. I would rather stick my neck out for knowledge at the risk of getting chopped rather then hide my head in the sand and know nothing. I believe that kind of bold "throw down the gauntlet and leap blindly into the void" attitude is what gets projects like this off the ground in the first place, and there are enough sceptics in this world already.;)
|
*shrug* if the compiler accepts it, its legal.
|
ok here I made sure this compiles ;-)
#include <stdio.h>
int main(void) { printf("I must be really bored."); return 0; } |
The compiler DOES NOT accept it, it gives you nice warning for doing void main and such
|
YOUR compiler does not accept it...
YOUR compiler does not accept it.
I used cl.exe from MS vis studio 6.0 so there. |
#include <iostream>
using namespace std; and then the int main(int argc, char** argv) { // Your stuff here return 0; } That is all the standard... the trick to it is to use a compiler like gcc or so that actually gives you warnings for non-standard code. But that is all a moot point to this post :) |
it still helps
It is probably more updated code(or just a better way to do it), I think
the course I am taking is a bit outdated. |
Look at what I started, LOL
|
All times are GMT -4. The time now is 10:17 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.