Thanks for the in-depth reply cunnus, that does indeed look complicated. The reason I want to learn C++ instead of Java is because I will likely be learning Java anyways in the fall when I start...
Type: Posts; User: LegendsEnd
Thanks for the in-depth reply cunnus, that does indeed look complicated. The reason I want to learn C++ instead of Java is because I will likely be learning Java anyways in the fall when I start...
I'm self learning C++ at the moment with very little programming experience. A few questions came up while I was reading through a C++ tutorial and please do keep in mind I essentially just started...
so once it hits main everything else after it at that scope is ignored? I also noticed how I can't divide a number by a larger number =/ like 3/4 = 0, and the variable was a float type, but things...
I understand part of the reasoning but isnt the code read downwards by the compiler? So cant you declare main then tell the compiler about mult?
from the function tutorial on this site, I understand how they work but what I dont get is the placement of it, for example
#include <iostream>
int mult(int x, int y) {return x*y;}
int main()...
I still cant get the loop working but I understand the !4 thing equating to 0 now, thanks, and btw the program is supposed to be a joke type thing where 2+2 equals anything except 4 :P
oh, how does !4 equate to 0 though, i still dont really get it
Now I have another problem with the loops, is FOR the same as WHILE except you can do more things variable wise with FOR? It seems...
its not that I dont get how to use it but i'm just wondering why is it that for example if I had abc as a variable that
if (abc==!4)
wont work(well it does but if I entered in anything it...
hmm, about the 3 methods to have namespaces incorporated into the program, you metnioned the preferred method being
std::cout << "hello" << std::endl;
but why not just use
using...
Even after using the search function i cant seem to find a topic on what I wanted to know on compilers specifically so i'm just going to ask it here, What're the differences between the many...
thanks for the help regarding the namespace/main/return use, and finally can you/anyone else tell me a way to keep the program up? it closes right after return 0 but I want it to actually stay there...
Finally got around to learning C++ but thats the warning I got from just putting in a Hello World program with <iostream.h> for a header:
backward_warning.h:32 #warning This file includes at least...