Ok, ive been fooling around with making my own string class. Basically, overloading << for cout is pretty easy but trying to overload the istream >> has not been successful. Any help would be nice,...
Type: Posts; User: BakAttack
Ok, ive been fooling around with making my own string class. Basically, overloading << for cout is pretty easy but trying to overload the istream >> has not been successful. Any help would be nice,...
Ok basically i have this:
struct Node
{
int value;
Node *left;
Node *right;
I had to do this once, and my solution probably isnt the best one but here:
1. Change the variable to a string by itoa(int, char *string, base) where base 10 is what we use normally.
2.change...
I have just learn't recursive functions, and im very ambitious. Ive been making a Chess Computer Game and so far it works pretty good for 1 vs 1 (not done yet but there are no real obsticals). The...
I dont know but this sounds awfully similar to the problem with cin.ignore. Try putting a cin.ignore(257, '\n'); before you ask for a command. I was taught to use cin.get so i dunno but that was...
wow i didnt notice he already said that, my bad Eibro
Ok im pretty sure that strcmp returns either 0(true) or 1(false) so try this instead
if (strcmp(name, "Dean") == 0)
...
Really? Wow, thanks alot is it at borland.com or something, ive used this old software because its what we use in class. I usually just play around because the class is WAY too easy so when it comes...
Ok I use an oldschool compiler (borland turbo c++ from 19-digity-2) but here is my solution. also i dont know what alpha used (in terms of std - could some1 explain what it is thx) so here:
...
#include <iostream.h> // for input-output
int main()
{
cout << "\nHello World!" << endl;
return 0;
}
modulus % operator does not work with double, unless im mistaken (could be).
Wow, Ok thanks. I'm going to go try to implement some of that stuff. BTW for the Const int MAX = 20; i know how to do that but i think a counter would be better. Also I'm having a problem with big...
I have been thinking about making an interactive program(game most likely) that has some composed music in the background. I don't know how i could do this without creating my own kind of time...
Ok, Im not going to pretend to know I know that much C++ compared to most things I have read on this site. I am taking a highschool class in c++ and basically I thought it was way too simple and I...