Beginners - April 2014 (Page 30)

by rshoe
Missing first letter in getline();
 
I am writing a small program that ask a user to type in a players name, number and points score and display on the screen. The program is using struct with an a...
[1 reply] : Never mind I figured it out. The cin.ignore() was in the wrong place. ... (by rshoe)
Higher or Lower Game Help
 
I was wondering if someone could point out where im going wrong, the random number the computer is generating isn't within the limits that are being dynamically...
[4 replies] Last: Ok, thanks (by GourlayPaul)
Help with Fatal Error C1075
 
Write your question here. #include <iostream> #include <string> using namespace std; char board ; void showBoard (); bool moveIsValid (int m); ...
[4 replies] Last: @ MiiNiPaa - and remove the ; (by AbstractionAnon)
Problem with hash class
 
Hi everyone, I'm trying to finish this program that will read in 15 names and then hash them using a hash class. My problem is that I can't figure out what is w...
[3 replies] Last: When I ran it, it reached the insert function, but crashed at line 88 ... (by AbstractionAnon)
Calling function twice in one printing statement
 
Why is the output "21", but not "12"? #include <iostream> int& add(int &value) { ++value; return value; } int main() { int result ...
[10 replies] Last: @MiiNiPaa you are right, I overlooked the fact that the function here ... (by Cubbi)
Counting words
 
So if anyone out there can help. I have to write a program that count the words of same length from a file using an array to keep count of the iterations I gues...
[1 reply] : My professor said we'll just need an array and a loop with functions a... (by Jay1234)
About Eclipse CDT and gcc compiler
 
Recently I installed 64 bit gcc compiler from equation.com. It is installed in C:\gcc directory. I also installed Eclipse CDT 32 bit (as I have 32bit Java),...
[no replies]
giving value to specific chars in an array
 
I have to write a code where I can go into a string array and depending on what char a value is given, and they keep getting added to variable. Once I have gone...
[2 replies] Last: well that was the last place i would have looked. Thanks, I was about ... (by ltorres)
Randomly Generated number problem.
 
I'm still getting in to programing in C++, but one of the things I wanted to do for fun is write a program that randomly generates a number and then compares th...
[6 replies] Last: Thank you for the advice and the help. It's very much appreciated. (by eclecticdeviant)
by dupek
Beginer - loosing my hairs
 
Well, I decided to learn the C++. In my age(62) is really hard. I try to expand the simple "password" and got stuck. Going bold from scratching my hairs. My pro...
[5 replies] Last: Well, I will have no need for my comb again. I pull out my last hair, ... (by dupek)
Run-Time Check Failure #3 - The variable 'weathedata' is being used without being initialized?
 
Hi I'm new to C language programming. I was writing this program but I always keep facing this problem "Run-Time Check Failure #3 - The variable 'x' is being u...
[3 replies] Last: You have only one value to store day, so it is impossible to store eve... (by MiiNiPaa)
by xx1182
Is this code Right?
 
Well: enum MyEnum{a, b, c, d, e}; int main() { std::cout << a; just works fine, it prints 0; Is it also possible to declare an enumeration globally and...
[6 replies] Last: > Is it also possible to declare an enumeration globally and just use ... (by JLBorges)
by toast9
broken while loop
 
I get a number from the user 1,2, or 3. I have a while loop checking to make sure the input was a 1,2, or 3. The input is then put in a switch statement. The pr...
[12 replies] Last: Then nicely say so: ``I recommend you to use parenthesis to improve re... (by ne555)
by Fiton
code won't work ?
 
i have this assignment creating a c++ program for drugstores and registering drugs in drugstore but this code wont work, dont know how to fix it , the problem i...
[2 replies] Last: oh man thanks, it worked i had no idea what i was doing wrong.Thats ex... (by Fiton)
by Chubby
Balanced Parenthesis
 
I try to check for Balanced Parenthesis but i couldnt get to work. I am at stuck at int main how can i pass the information to function it can check here i...
[1 reply] : Although I know of another way to accomplish the checking, I don't und... (by TheBeardedQuack)
EMERGENCEY! could be confusing, but help!
 
I get my total correctly, this is based on aeon shopping car park system, my school assignment. THIS IS THE PARKING RATE GIVEN ONLINE. MAX CHARGE IS 6 HOURS, A...
[17 replies] Last: So its now done. But the value of the J card user that spent 7 hours i... (by playerjun)
Dynamically declared 2 dimensional arrays
 
  As this is my first post on cplusplus.com, first of all thank you in advance for the help I anticipate receiving from other members. I am a retired chemi...
[10 replies] Last: @tath Thanks for your reply. I am initializing the value in construct... (by vineshgada)
What is wrong with this code?
 
Hey guys. so I'm trying to make a program that do operation on matrices. It get's the data from a file and prints the result on another one. The maximum numb...
[3 replies] Last: You declared a array that can hold 5 elements and were trying to put 6... (by codewalker)
by Chubby
used undeclared identified
 
balancedparantheses , every StackNode i got error saying used undeclared identified. how can i fix it? #ifndef DYNINTSTACK_H #define DYNINTSTACK_H ...
[2 replies] Last: You need to declare the balancedparantheses (nice spelling there) fu... (by cire)
by teslaa
Thread function issue
 
I the following error when compiling the below code... '&' : illegal operation on bound member function expression The error refers to the call to creat...
[2 replies] Last: It is possible as this was fine until I created the header and made th... (by teslaa)
April 2014 Pages: 1... 2829303132... 67
  Archived months: [mar2014] [may2014]

This is an archived page. To post a new message, go to the current page.