thanks for the info.
But for some reason getline isn't working... Do you have to add another library? If so, what is it?
It should be:
#include <iostream>
#include <string>
using namespace...
Type: Posts; User: Cloud_909
thanks for the info.
But for some reason getline isn't working... Do you have to add another library? If so, what is it?
It should be:
#include <iostream>
#include <string>
using namespace...
Here is my startout text RPG:
#include <iostream>
using namespace std;
int main()
{
char charname;
/*
* This code is written in C, but it could just as easily be done in C++.
* The rand() and srand() functions are available in both languages.
*/
#include <stdio.h>
#include <stdlib.h> ...
i mean i want a code to generate me random numbers from range to range
Can someone provide me with a string that generates randomized numbers that have a range from #-#. So if i wanted the DOS window to generate a number from 5-10; how would i do it? Thx
-Cloud
I cant get this to work:
#include <iostream>
using namespace std;
int main()
{
ok let me break this down this:
#include <iostream>
using namespace std;
int main()
{
int answer;
Thanks!
i mean making a variable A letter. as in if your setting a block of text to rely on a code. If i use letters instead of numbers it fails to compile.
Hi I've pretty much mastered the basic commands of c++ and wanted to move onto making a game. (I usually play with the DOS window)
First thing is first, does anyone know a good site that teaches you...
Hey i just started C++ Programming, I have learned include, int main, variables, cout, { and }, I still have yet to learn but none of the tutorials answered my question.
How do you make variables...
yes i do have the bitmap
Any help??
my code looks like this:
#include <allegro.h>
int main(int argc, char *argv[])
{
allegro_init();
install_keyboard();
set_color_depth(16);
Yeah uhh i just started using allegro about...2 hours ago was it? Well i downloaded it i added it to
c:\winnt\system32
it works. I added it to the parameters. it works.
When i add...