Beginners - May 2014 (Page 17)

Output results wrong for array
 
I am very new to C++ programming. I am just trying to take a users input of 5 double numbers and add them together to get a sum. When I run this code it gives...
[3 replies] Last: Thank you for your help on this question. (by DEnumber50)
by Wesp
please someone help me to define this destructor function
 
I made a program to multiply two matrix but I don't know how to define that destructor function. thanks // // main.cpp // tpc 7-5 matrix // // C...
[5 replies] Last: matrix(331,0x7fff703ad310) malloc: *** error for object 0x100200010: p... (by Wesp)
squirrely braces
 
This is not really a programming question but a more a programming practice question. I was wondering which is the best practice: int main(){ cout << "H...
[5 replies] Last: When you work on group project you may have to use a particular style.... (by CodeGoggles)
by locolo
Few lines to finish assignment - pls HELP
 
the main problem is between line 235 to 253 It has to show: You all ready used "letter". I cannot figure out how!! I've been looking into this code for too ...
[1 reply] : also if player 2 inputs a number, it doesnt work (by locolo)
Count recursive function acces violation
 
Ok, I've written myself a function that should retrieve the amount of nodes from a binary tree. I don't know why it crashes, so if someone recognises a mistake,...
[4 replies] Last: Ok, I made it different way. (by lovebites)
by venros
fStream Check username in file - ACCOUNT Registration
 
Hi, I have been messing with this so much that its so cluttered. I need a way to let get line check next line after a semi colon. while(!openFile.eof()){ ...
[8 replies] Last: But why should I need to closeit and reopen it when : fstream open... (by venros)
by locolo
I all ready used it!!
 
Im in the final touch up. I cannot do the letter_used, says. U all ready used this letter!! urghhh...i know its prob basic..but im going crazy w over 300 line...
[6 replies] Last: here its almost right!! OMG void guess_letter (char word_player , i... (by locolo)
by h4ever
How to save bitmap with image.save()?
 
I have bitmap in memory and would like to save it with image::save, but I cannot find how to do it. The example on MSDN uses image object created from file. ...
[5 replies] Last: The Bitmap class inherits from the Image class, hence all Image functi... (by coder777)
by HcK
Help me to make this program!
 
Hello Guys, Recently I have become keen towards programming stuff & i m a Ultimate noob in this, so i choose C++ and begin learning it on my own. As I was going...
[3 replies] Last: thanks MiiNiPaa &Yay295.. thanks Now I have understood the program co... (by HcK)
I dropped classes, advanced explanation?
 
I am a self-learner of C++, currently, I know some previous programming languages well, but never got into class es. The book I'm reading about C++ - 1214 pag...
[4 replies] Last: struct is a class. Not other way around. keyword struct and specific b... (by MiiNiPaa)
need to select a beginner's book
 
I'm looking for a good beginner's book on C++. I have a background in programming, though not a professional one. I used to write non-GNU freeware in MS Visua...
[2 replies] Last: I went through this process not to long ago but I aimed mine more at g... (by football52)
by locolo
Mysterious weird symbols!!
 
This code is almost finish,Ive been doing it for days, I know its not that hard :) When it prints "Now the word is", in the end of it show some weird symbols...
[3 replies] Last: sorry about that..ive fixed it.. I had to take down since this is my a... (by locolo)
Displaying every element of a 2D array
 
This ends up displaying 12341 12341 12341 12341 instead of 12345 12345 12345 12345 Why is this? #include <iostream> using namespace st...
[1 reply] : Did you mean cout << maxtemps[ row ] << "\t"; instead of cout << m... (by long double main)
simple??? logic equation
 
This should be extremely simple Boolean logic but I must be dead tired or completely stupid... k is an ascii value that I am checking to see if it is a digit, ...
[3 replies] Last: I convert the char that is in the linebuffer to an int to compare with... (by tdeluce)
Can't find the error in my code
 
Why doesn't my code display my input name for Employee One? Thanks in advance! #include <iostream> #include <iomanip> #include <ctype.h> #include <string> ...
[2 replies] Last: Thank you for posting! Through trial and error I realized my error. Th... (by sierranm)
Linked Lists!
 
Hello! Having a problem with linked lists. Working on a problem in this book I'm reading. Problem is as follows: Write a program that adds elements to a ...
[6 replies] Last: Thanks for the help! I don't know why, but I was using args->nextno fo... (by horrificmonster)
Project Euler - Problem 3
 
I have code to test for a factor then test for a prime. However, every time I run the program it successfully finds the factors of 600851475143, but says they a...
[4 replies] Last: So I have solved the problem of making sure that prime is set to true ... (by thegeek101)
Random number class HELP
 
There's an error in the program where when you ask for the min value and max value of the array you wish to see, the output is just a complete mess. #incl...
[1 reply] : The problem is that the list in main is not the same list in cr... (by long double main)
Is there another function like getch()?
 
Is there a function that can perform like getch() without having to #include <conio.h> Basically I am working on a console game and I am moving the so ca...
[7 replies] Last: Ok :), looks like I solved the Issue here. Here is my working key inpu... (by BLooDiEMuRDA)
Bubble sort with Char Pointers
 
I'm a bit stuck. I need this program use character pointers to display the information that the user chooses from a grocery list in a .txt file. I need it to bu...
[2 replies] Last: Yes I actually Simplified the main. But I'm dying here when it comes t... (by masschamber)
May 2014 Pages: 1... 1516171819... 55
  Archived months: [apr2014] [jun2014]

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