No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey, So I've got these instructions for a piece of work, but I don't understand what it's saying, there are prototypes for functions but like I said, I don't understand them. [CODE]typedef struct BigInteger* big_integer_t; // so I know typedef allows you to assign different names to existing types, but … |
|
Good evening! So I've been trying to get my head around these classes and it's not going well. From what I've understand I've been calling functions correctly, but for some reason the members I'm creating are not being accepted. [CODE]class TheData { public: void InputData(); void DisplayMembers(); TheData(); ~TheData(); protected: … |
|
Hey, So basically I'm using dynamic memory allocation, and I wanted to add in a check for if the [B]new[/B] operator can't complete the request. I've read up that the operator will return a std::bad_alloc, but I've no idea how that helps me. Could I just do?: [CODE]if (new int[999] … |
|
So basically it involves sodding scanf(). [CODE]int NumericalAnswer; int score = 0; main() { printf("Question 1: What's 4 x 3?\n"); scanf("%d\n", &NumericalAnswer); if (NumericalAnswer == 12){ printf("You got it right!"); score += 1; } }[/CODE] Output [ICODE]Question 1: What's 4 x 3? 12 9 You got it right![/ICODE] As you … |