I read that book, and I'm pretty sure it tells you to do like 2 lines of code and put some ridiculous **** at the end of the program to get it to pause.
Just use getchar();
Use an array of characters for a string in C++ like this.
char str1[20];
that line allocates 20 characters. When you hold a string in this variable, each character goes to one "cell" of the of the array.
If the string that was entered was "hello" it would look like this:
str1[0] = 'h'...
In C++ they have a data type of a string (I think it is a class) but you have to include string.h and have using std::string at the top of your code I think. Or you can have C-style strings, which is just an array of characters terminated by the NULL character. ('\0')
So to input a string you...
I have been trying to send files to my phone with the sync thing in WMP and when I try and open up my video library it gives this error, "The exception Integer division by zero. (0xc00000094) occurred in the application at location 0x0413aeee." And then WMP closes. This also happens sometimes...
I have these C++ video tutorials from some people at 3DBUZZ (?) that take you step by step of the basics to learning how to program games in C++. i could send them to you if you want.
AIM - nemcon9
Ooooh, I have seen a complete tutorial through movies on making a text based RPG in C++, lemme go have a look...
EDIT: http://www.rdxgames.net/projects/wrathlands/index.html BAM!
Ok, I have my xbox connected to my computer through a router and my xbox has a DHCP IP but I keep timing out when trying to FTP to it. I swear I've done this a thousand times, and all the sudden is just wont work! But anyway can someone PLEASE help me figure out the problem?
Try the trouble shooter thing in Control Panel > Sounds and Audio Devices > then under the hardware tab look to see if all the devices are working properly, and if not click 'trouble shoot' to see if you can fix it.
Search results for adware removal - Free Software Downloads and Software Reviews - Download.com
Try some of the links in there, install the programs and restart your computer into safe mode and try to remove some of the stuff.
Don't you need double equal signs in your if statements. Like
if (choice == 1)
{
}
else if (choice == 2)
{
}
One equal sign assigns and two compares right?
.h is the file extension of C/C++ header files. Some includes will need it like windows.h, but you should just be able to use iostream and not iostream.h, infact when I use iostream.h in the compiler that i have it gives me an error.
wait wait, i think you are getting confused with just declaring a variable and declaring a parameter for a function, like you can do
int temp, temp2, temp3;
if you are declaring regular variables, but if you are doing parameters for functions it must be
void switch(int temp, int temp2)
{
}
#include <iostream>
int main()
{
using namespace std;
int thisisanumber;
cout<<"Please enter a number:";
cin>>thisisanumber;
cout<<"You entered: "<<thisisanumber;
fflush(stdin);
cin.get();
return(0);
}
that works, dont hold me to this, but i think when you use cin it takes the input and the...