|
Answer» so i was wondering... i wanted to learn how to use c++ and javascript and first of all i just do batch files so these stuff are nearly completly new to me except for some java because i use to design webpages wif html so i wonder any1 has resources for TOTAL noob for c++ and javascriptHi. There are tons of free resources on the web you can get by simply searching in Google.
I've found the follow tutorial helpful. It's a bit condensed, you if you're new to programming you might want to research each part in more depth elsewhere, but it definately contains all the information you need.
http://www.cplusplus.com/doc/tutorial/
Javascript has a similar syntax to C++ so it would be silly to learn the two independantly. I would pick one as your main language (Javascript if you're a web PERSON, or C++ if you want to make actual Windows programs etc) then after some experiance in it, learn the second language quickly by simply learning the differences. Eg in Javascript variables are created with the var keyword and can change type, whereas in C++ variables are of a single-unchanging type. (Both methods have their pros/cons).
Even if you want to learn Javascript more I'd suggest learning some C\C++ first partly because it has a better debugger and development tools to get you started. It depends how much programming you've done before.
You can get a free C++ COMPILER here:
http://msdn.microsoft.com/vstudio/express/visualc/
I would suggest you use Firefox to test your Javascript, as in the tools menu you have a very handy error/Javascript console. Clear it to remove the junk from other websites then run your program and it will inform you of any errors. But if you will be "unleashing" your creations upon the world, make sure to test they are compatable with Internet EXPLORER... sometimes you need to script parts two ways for each browser.
Good luck and if you need any more information just ask.thanks and i will stick to C/C++ first because there is a easier way to make web... FRONTPAGE a million times easier copy and paste here and there and itz done and thx for the resouceoh my god im aready stuck wif C++ OK so on the web it gave like codes and well yeah i copied it and copiled it and the code is: // stringstreams #include #include #include using namespace std;
int main () { string mystr; float price=0; int quantity=0;
cout << "Enter price: "; getline (cin,mystr); stringstream(mystr) >> price; cout << "Enter quantity: "; getline (cin,mystr); stringstream(mystr) >> quantity; cout << "Total price: " << price*quantity << endl; RETURN 0; }
ok so i launch the file and it as for the price still working fine then asks for the quantity AND STOP ok right wen i enter the quantity and press enter it closes the ms-dos immidietly it doesnt let me look at the so called "result"Please try to phrase your questions in English...
I think what you mean is the program runs and closes before you can see the result. Try putting getchar(); on the line above return 0;ah... kewl so u have to put a different command before it so it wont closee...
|