Beginners (Page 53)

Structure Questions
Hi, I'm currently learning about structures and I would like to know what the difference is between ...
[14 replies] Last: Alright, that clears that up. Thank you very much for all your help, I... (by Bogeyman)
Need help with file handling
Hey I need some help with file handling. I am making a math quiz. I am stuck on the last task of my ...
[2 replies] Last: Atm moment the code just saves the students score in a text file in th... (by Adem Penver)
Syntax Error: Expected an expression.
I'm getting a syntax error on the second << (the one just after FIRSTNAME) in the second line of ins...
[4 replies] Last: I figured it out. Source.cpp code: cout << "\n" << FIRSTNAME << "... (by Moredom)
In a laboratory experiment, readings of certain measurement are entered instantaneously to a compute...
[8 replies] Last: Glad I could help, a big improvement from your last posts :D (by TarikNeaj)
How to get a prefix for a credit card number
What I am trying to do is get a credit card number from the user, reverse it, and use the first and ...
[1 reply] : just fetch the first two digits before reversing the code by dividing ... (by programmer007)
[5 replies] Last: This is part of the code I wrote when responding to another minesweepe... (by fg109)
Cannot convert Class::object
Hi folks. I've (hopefully) created a vector of objects (Trolls in a rougelike). Each object should...
[4 replies] Last: Works perfectly, cheers guys! (by Superelastic)
How to reverse the loop?
Write a C++ program to generate and print out the following series (using a single for loop): ...
[2 replies] Last: for(c1=10;c1>=(-10);c1-=2)//extending loop to -10 { int j=abs(c1); ... (by programmer007)
Binary Search functin problem
I've written the following binary search program using template. But when I run it, it gives an erro...
[1 reply] : int Binary_Search(T& Array, T& Size, T& Value) Thats not quite how ... (by TarikNeaj)
Question about design/performance between two ways of storing all game objects.
What's better - a single vector with all gameobjects derived from the same base class (and using dyn...
[no replies]
Read from file to an array of pointers
I have an assignment where I have to read a file into an array of pointers for a "Parts" object. I'm...
[no replies]
Sequences ?
What are those sequences :/ ! **3 4 6 8 9 12 15 16 18 20 **5 6 8 10 11 14 17 18 20 22
[4 replies] Last: I just need a hint . not the exact code .. and the previous attempts w... (by NahlaWael)
A vector of class that has vectors, can it be done?
I know an array must know the total size of objects it holds, but what about vectors? If I have ...
[4 replies] Last: I didn't explain myself very well. Imagine having a pointer to an arr... (by Jims)
Palindrome Checker help
I have the code, I just need to add a loop until the user inputs END. int main() { cout << "Ente...
[6 replies] Last: Oh come on @Andy1992. It is beyond obvious that my response was sarcas... (by TarikNeaj)
Can't delete a simple pointer
Is there something wrong with this code? Im getting runtime error on line 5 when I'm trying to delet...
[2 replies] Last: Ohh, thank you man :) (by etrusks)
Formatting: How do you display array elements justified to the right in output?
Hi, I'm trying to make a program that takes unsorted numbers from a text document, displays them,...
[10 replies] Last: Got it. Thanks so much for your help! (by JNegoda)
why does my while statement return a infinite loop
My while statement returns a infinite loop while I want the variables to go down until creatures hp ...
[2 replies] Last: creaturehp - herostr; herohp - creaturestr; these two statements is ... (by Lorence30)
Finding needle in haystack
I am writing a program that is supposed to loop through two strings to find an occurrence of a word ...
[2 replies] Last: Hmm I notice that now. Also, wouldn't I need some type of argument to... (by Tig3r125)
Negatives in while statement
Hey guys, how would I make whatever number that goes in the parenthesis that equals negative quit th...
[1 reply] : I believe what you're looking for is while (tuition >= 0) ... (by Ganado)
Copy Constructor not working
I know I am doing something wrong with memory, but I can't exactly seem to find that mistake. When I...
[16 replies] Last: When you call make_lists() in your copy constructor the pointer poly i... (by norm b)
Pages: 1... 5152535455... 99
  Archived months: [feb2015]

Cannot post in this page. To post a new message, go to the first page.