Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 22
Member Avatar for people123

Hello, I have recently installed Microsoft Visual C++ 2005 Express Edition, and right off the bat when trying to make a new project I find myself unable to make a Win32 Windows Application, when I go to check the bullet that says "Windows Application", the option is grayed out. I …

Member Avatar for ismetteren
0
127
Member Avatar for toko

I have been reading "Sams Teach Yourself C++ in 24 Hours". This is the code that has confused me: [CODE=c++] #include <iostream> class Cat { public: int GetAge(); void SetAge (int age); void Meow(); private: int itsAge; }; int Cat::GetAge() { return itsAge; } void Cat::SetAge(int age) { itsAge = …

Member Avatar for Max_Payne
0
102
Member Avatar for people123

I came to a point in my C++ book where I have to start using bitwise operators, such as &, ^, and |. I have a hard time grasping the concept of exactly how do I manipulate bits, the following example supposedly "turns off the 6th bit", therefore inverting the …

Member Avatar for people123
0
135
Member Avatar for weewee

Can anyone help me how to write the following codes in different ways. I used Linked List. template<class Item> ttt<Item>::ttt() { square=0; board=new node<Item>; for (Item i='9'; i>=1; i--) { list_head_insert(board,i); } } template<class Item> void ttt<Item>::clear() { list_clear(board); square=0; board=new node<Item>; for (Item i='9'; i !='0'; i--) { list_head_insert(board,i); …

Member Avatar for people123
0
958
Member Avatar for people123

Here is my code, it is suppose to take the double num, round it, and return it using call by reference, but when i try to compile it gives me an ambiguity error at [inlinecode]round(i);[/inlinecode]. please help. [CODE=c++]#include <iostream> #include <cmath> using namespace std; void round(double &num); int main() { …

Member Avatar for people123
0
105
Member Avatar for dsuh06

for the for loop for ( ; *source!='\0'; source++) what is the purpose of the semicolon in the for loop ? thank you!

Member Avatar for Ancient Dragon
0
104
Member Avatar for enuff4life

the function, IsPalindrome is recursive. it checks character array from 0 to end of it. i have warning message control reaches end of non-void function... whats wrong with this code? [CODE=C]int main() { length = strlen(string); boolean = IsPalindrome(string, 0, length); ... } int IsPalindrome (char* string, int left, int …

Member Avatar for WaltP
0
142
Member Avatar for people123

So I am learning arrays, and i was given a piece of code in my book here which basically finds the average, min, and max value of a set of numbers, but the thing i don't understand is, when you are finding out the min and the max why you …

Member Avatar for helixkod
0
92
Member Avatar for people123

So after a day or two of trying i finally found out how to do this, my question is, is there any way to do this that is more efficient without using the prime function? [code]#include <iostream> using namespace std; int main() { std::string line; int i, p, x; for(i …

Member Avatar for WaltP
0
144
Member Avatar for people123

Hi, I am new to C++ and I joined this forum with hopes of learning as much as i possibly can about the language. This seems like a nice place with a mature community. I bought a C++ book and I'm just now learning the basics such as goto, for, …

Member Avatar for tracethepath
0
110
Member Avatar for MedianHansen

Lately i've been having some problems, importing an SDL library, into my compiler, and as a result of that i have chosen to change to a new compiler. I have followed 3 differend online tutorials, re-installed the compiler three times, and done it with three different downloads of the SDL …

Member Avatar for people123
0
289