well the example is not what I'm realy trying to do. Basically I want to be able to create a class name by whatever input the user has given me.
Type: Posts; User: Mr.Pink
well the example is not what I'm realy trying to do. Basically I want to be able to create a class name by whatever input the user has given me.
hi,
I am working with simple classes. When setting a class for an animal I use this code:
animal someName;
someName.info();
So basically this creates a new animal class by the name of...
yea, I've heard that about gotos
why is that?
thanks
hey,
I'm making a crappy little rpg text game. Anyway I set it up so that the player stats are all saved into a class. I have a function which creates the class when a new game is started. The...
thanks
hey,
I'm interested in learning about interrupts. I looked at some tutorials but they were very confusing. Please post any good tutorials
thanks
I just didn't include the right header, thanks
hey,
I'm trying to do the c++ style strings tutorial on this site but it's not working. Could it be because I'm using Dev c++?
here's my code:
#include <iostream.h>
#include <stdlib.h>...
hey,
I've pretty much done all the tutorials for c++ on this site and have a pretty good understanding of file manipulation and what not. I want to get into windows programming.
I looked at the...
ok,
I learned pointers.
I still have the same problem though.
I can only return one array
so I used this code:
#include <fstream>
hey,
This should be pretty simple:
I need to make a function which returns a person's name from a file
#include <fstream>
#include <iostream>
console application
I am using dev c++ with windows XP
I want to be able to do graphs which are
y=mx+b
so curves and such.
I want to do very simple graphs.
Basically I want to be able to create dots where I need to. How do I go about graphics with c++?
(do I have to use openGL?)
where do I put it?
hey,
I just did the tutorial on classes.
when I compile it says 0 errors, but the button to execute the program is disabled.
#include <stdio.h>
#include <iostream>
#include <string>...
yea, but that's an unlikely situation. I wrote it mostly for when I'm doing physics stuff on the computer and don't want to use windows calc
ok,
so how could I use this in my programs?
hey,
I am pretty new to c++ and just going through tutorials on this site. I am on the one which talks about accepting command line arguments.
I don't completly understand what command line...
try this:
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
void genLife();
void showLife();
try this:
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
void genLife();
void showLife();
as I understand your problem is that you can't realy access the arrays from the function?
You can solve this by making the arrays global by declaring them outside of the main function. Get my...
just finished my first program which is actually usefull to me.
It just figures out right angle triangles
#include <stdio.h>
#include <string>
#include <iostream>
#include <cmath>...
and if there isn't, how can I use PI in c++?
(what's the word so that it recognizes it)