- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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 … |
|
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 = … |
|
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 … |
|
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); … |
|
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() { … |
|
for the for loop for ( ; *source!='\0'; source++) what is the purpose of the semicolon in the for loop ? thank you! |
|
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 … |
|
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 … |
|
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 … |
|
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, … |
|
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 … |