Beginners - May 2015 (Page 20)

by ynotmi
I have a MATH Issue?? & the program is making NUMBERS
 
Thanks all that have helped me get this C++ program going. ----- 1. Problem: The program is not adding up the data correctly? The OBVERSE data adds up... ...
[7 replies] Last: Thanks Guys for all your help I figured out the Math issue by making ... (by ynotmi)
by Aye
Help please!!
 
Write your question here. I have an assignment about 2D array :( and its too complicated i just need help in the first function (input) and i will complete the...
[2 replies] Last: Thanks alot, but still facing the same problem, the average is a huge ... (by Aye)
Search Algorithm loading random stuff from memory...code to clear buffer maybe??
 
Hey ya'll...so i wrote this for my intro Programming with C++ class...Its supposed to display a menu with 6 options. create new file, display numbers, total, a...
[5 replies] Last: Thanks so much! You have really helped me out tremendously. (by staciecw)
by FASI
unique random number generator code...need help!!!!!
 
I am trying to generate a unique random numbers plzz help I need this for a project :/ int main() { srand(time(0)); int term; cin>>term; int a ;...
[3 replies] Last: @shadowCODE you sir ... saved my life :D thanks :D (by FASI)
Identifier
 
The code. #include <iostream> using namespace std; class Base { public: virtual bool foo(Base *) = 0; }; class A : public Base { public: bool fo...
[2 replies] Last: 0h!!, how did i not think of that? Thanks. (by shadowCODE)
Linking Error
 
Hi. I'm writing code that has to do with classes. I have it almost finished, but I'm getting a linking error. Here is the prompt: Write the definition of a ...
[3 replies] Last: This is easy to fix. You need to include in the main "swimmingPool.h" ... (by yago8513)
Compiling SFML on Windows
 
Hello I need to compile a SFML program on Windows using Cygwin. But for some reason, this ain't working. My G++ (Cygwin) command: g++ test.cpp -o test.exe ...
[9 replies] Last: ^Thanks, I used something else as Cygwin, and I don't get the Unix-err... (by Nielyboyken)
Working on a program that has a diner menu in a struct.
 
Hello everyone. I am working on a program that creates a diner menu. The struct contains the food item and the price. I need some help making an array of struct...
[9 replies] Last: yeah, you only pass 1 item of the array, you need to pass the whole ar... (by Gamer2015)
Template class problem
 
What is wrong with the following code: #include <iostream> using namespace std; template <typename X> class A { X a; public: A(X var) { a = var; } };...
[6 replies] Last: Thanks a lot! I learnt side of C++ which was new to me. May God bless ... (by PSYCHAMERON)
by koopey
inheritance class beginner
 
generates the following errors: 'class comparable' has no member named 'score'. i know class comparable has no member named score but high_score_element i...
[5 replies] Last: how about maintaining an internal score inside the implementation of... (by mutexe)
Please explain this code for fast input.
 
The code is too large, so I'm posting the link. http://www.codechef.com/viewsolution/1553773 Please explain the code outside int main() i.e class Fastinp...
[3 replies] Last: ReadNext() returns an unsigned long integer: http://www.nongnu.org/avr... (by mutexe)
Creating a way to reenter filenames
 
Hello all, I am trying to set up a situation where if a person enters an incorrect file name the program alerts user and the allow user another file name if ...
[1 reply] : You need a loop (similar to line 85) in order to retype the filename. (by coder777)
Bottom-Up Merge Sort Segmentation Fault
 
For a small practice lab, I need to write a Bottom-up Merge Sort that only uses one temporary array, and does not use any recursion. I will run this program on ...
[1 reply] : You do not check that middle and right are within the bounds of yo... (by fg109)
Unhandled exception?
 
I seem to be getting this error, but I am unsure how to solve it. It used to work, but now it doesn't. Error: Unhandled exception at 0x01101ad2 in SpamBot.exe: ...
[1 reply] : auto size = sizeof(*ToKey)/sizeof(ToKey ); size will always be 1. ... (by Disch)
Question on this program (Please help!)
 
How can I add an if and else statement in my code, what I want is when the user inputs a letter instead of number when its asking to enter the account number, i...
[1 reply] : The function is isdigit(char) I would check a string like this: str... (by Dark Goomba)
How can I fix this error?
 
When I try to run this, it says that there were build errors. I don't know how to fix them and I really need help, any suggestions on how to fix it? #inc...
[5 replies] Last: I managed to fix a part of it, the array was static, but now I get the... (by icemewtwo64)
External Errors?
 
I have some problem with this code, when I try to run it, it says that there are external errors. I'm relatively new to c++. #include <iostream> #inclu...
[2 replies] Last: Now I get the error: Unhandled exception at 0x01031aba in Code.exe: 0x... (by icemewtwo64)
string (theString)
 
okay so I know that my consonant and vowel part is wrong but I attempted change char to string so that I may relay this back out the the user. I am also having ...
[1 reply] : First of all, it's always a good idea to search up info about things y... (by Dark Goomba)
by Dancho
String to int
 
Hello! I have string with hex number haw can i make it int number ? string a = "7D"; //125 ... int b = 125;
[2 replies] Last: Thank you! (by Dancho)
How to pass Arguments to Main?
 
My main in a program looks like: int main(int argc, char* argv ){...} I want to use Linux to compile my program, but I don't know how to pass argu...
[2 replies] Last: These arguments are passed in at run time, not at compile time. You si... (by Mathhead200)
May 2015 Pages: 1... 1819202122... 40
  Archived months: [apr2015] [jun2015]

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