General C++ Programming - October 2011

Cell Phone Bill.
 
Hey guys this is my first time posting so please bear with me. So I have this assignment for my C++ class to write a program that calculates and prints my c...
[5 replies] Last: I think that you are stuck here if (accountNum > 99999 && accountNu... (by tfityo)
Copy constructor help
 
Howdy. I've got a general question about copy constructors: When you use a copy constructor to copy the data by value, how do you use functions that were made...
[1 reply] : The original data belongs to the original object, while the new data b... (by webJose)
by R1nG0
Beep tones and i/o
 
Hello all, I am working on a hangman program and i am almost complete. on the victory screen i have the option to play again or quit, I have tried to add ...
[6 replies] Last: If you don't mind using a deprecated API, you could use the midi funct... (by andywestken)
HELP = (
 
When im trying to delete a registry key with that code : system("REG DELETE HKLM\\Software\\Microsoft\\Windows NT"); ... just an example I get this error : "...
[5 replies] Last: Thanks... It turned out that I misunderstood u the first time but now ... (by n0pr0bl3m)
vector help
 
I think I need a vector example I need to be able to read the text file "text1" "response1" "text2" "response2" and put them in as variables for this functi...
[3 replies] Last: Hi , I am not clear what all of you are talking about . please elobra... (by bluecoder)
Classes and Using them
 
Hello, I'm having some problems programming some classes in c++. Basicly I have this in my main code: PlayerClient robot("localhost"); Position2dProxy p2...
[2 replies] Last: You can use singleton class as it only creats one object . #include... (by bluecoder)
Searching through an array until a certain string or 0
 
removed
[3 replies] Last: removed (by skatingrocker17)
Segmentation fault
 
How are segmentation faults fixed? I'm not understanding what to do! #include <iostream> #include <cstdio> #include <cstring> #include "Student_Class.h" ...
[9 replies] Last: Thanks for the tip1!! And how to get a debugger? (by closed account ybq5Djzh)
c++ multiple choice quiz
 
i need to Create a C++ program to run a simple multiple choice quiz on C++. The quiz should have questions such as this: Question 1 How do you declare a va...
[2 replies] Last: Shouldn't your question class know the right answer? (by kbw)
Pseudo Code Verification!!!
 
Hello Guys!!! Please check my pseudo codes and check whether it is correct or incorrect if incorrect please correct it and reply in this topic. a) T1 (n...
[2 replies] Last: Buddy i only wants you guys to check my codes that's it....... I don't... (by hassaanid2011)
Example
 
Hello everybody, i have an algorithm which need as an input lattice basis b_1,...,b_2 ]in Z. The programm starts with #include<iostream> #include<string>...
[2 replies] Last: @kbw You cannot declare/use variable with name starting with digit. ... (by tfityo)
c++ book store sales analysis
 
Can someone help me solve this program please???? I dont know where to start Description: This program will read a data file that contains book store sa...
[2 replies] Last: this is what i have so far //Returns a two dimension array where th... (by lionel1990)
error: passing 'const ...' as 'this' argument of ... discards qualifiers
 
Hi everybody. I hope you can help me, because I have never handled before such a kind of error before. Here is parts of my sourcecode: class QNode { QNode() ...
[1 reply] : You'll need a const suffix for QNode::getValue() too, else your less-t... (by closed account DSLq5Di1)
my program exit if I enter VAR++ or VAR --, help needed
 
Hi, I have problem with my program, if I enter this expression for example x = 1 + 1 then I enter x++ the program exit. I don't want it to exit, I...
[3 replies] Last: I see what you mean now by "entering x++". However, the biggest proble... (by shacktar)
SFML Problem (1,2)
 
I have been learning C++ for a while now (Have completed everything present in this site's tutorial in greater detail and am comfortable with using them...). ...
[30 replies] Last: In VS 2010, create a new project (or open an existing one), view->prop... (by closed account DSLq5Di1)
getting this odd error!
 
so im doing a project for skool...this is a part of my code...just a simple test run and i keep getting expressions expected for the double jerry line ...
[2 replies] Last: thank you so much!!!! it was getting to annoying.....stil dont underst... (by jerryguy)
fun, easy programs for beginners
 
Okay, already loving this forum ^^ im looking for easy projects somebody who just started c++ a few days ago can do, to get a better understanding of my s...
[10 replies] Last: This looks fun. I'm relatively new myself and this is a great way to g... (by thechad90000)
multiple strings into a Node
 
Hi fellas i have my code here and im trying to get my binary tree to function. it compiles although its not functining the best. how do i get the five strin...
[4 replies] Last: Like Marcello says, look at what you're passing to treeInsert. Then co... (by hamsterman)
Program for computing grades
 
Is anyone able to figure this out? Professor Nutty, who lectures encephalopathy (Med 7010), at the Cajun Medical School gave three equally weighted exams to...
[no replies]
Hashing
 
This program is supposed to take in 15 words input by the user and hash them into an array and print out the array with "??" in the empty spots of a 23 length a...
[1 reply] : char stores 1 letter so itll probably work if u change the char to a s... (by jister1234)
October 2011 Pages: 123... 36
  Archived months: [sep2011] [nov2011]

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