Beginners - May 2014 (Page 32)

Help with unit testing
 
1) What class libraries are available to assist with unit testing? 2) How are these classes adopted/integrated into your application's class hierarchy? I foun...
[no replies]
by quayda
Saving .txt for reference
 
I'm writing a merger code which is supposed to call two preexisting .txt files and combine them into one. I'm running DEV, and I found instructions for saving a...
[1 reply] : I found instructions for saving a file for NetBeans and CodeBlocks, b... (by MiiNiPaa)
by bozz51
Need a guru to take a gander
 
I'm thinking I'm on the right track but the code isn't displaying anything. I'm trying to create a program to reads lines of text and appends them to char buffe...
[3 replies] Last: figured it out... Thank Disch #include <iostream> #include <fstream... (by bozz51)
by myregm
Problem with getline()
 
I've writen this code. But the first getline() only acts only one time when i=0. For the second time it doesn't act. Do you know why? #include "stdafx.h" #in...
[2 replies] Last: Thank you codewalker. It is solved. (by myregm)
Very finicky IDE.
 
I'm using Orwell Dev-C++. Whenever I type a quote ( " <--- this ), say, to begin a cout statement, the IDE creates one in front of the cursor. At first, I th...
[1 reply] : From 4 I see that you type end quote (and bracket) again? Stop typing ... (by codewalker)
by quayda
Program compiles, but doesn't act?
 
Could someone please help me understand why this program is compiling, but not running? The console window opens, but shuts just as fast. I'm thinking I need to...
[4 replies] Last: Thanks for the link @admkrk I think I thought the console closing me... (by quayda)
simple question
 
y my code is keep going #include<iostream> using namespace std; int main() { char guess,r,b; int num; cout<<"\n\nEnter your Guess(r for RED, b ...
[2 replies] Last: lol,,,,,,,,,wtf...... thx (by passw0rd)
fatal error: iostream: No such file or directory.
 
I am trying to find my first compiler to begin coding and compiling files on. I have just downloaded Code::Blocks (after searching for hours and even download...
[3 replies] Last: Make sure that the name of the file identifies it as a C++ source file... (by JLBorges)
help
 
I need help with this program i dont know how to do the function part here is the question. "Write a program that calculates the hypotenuse of a right triangl...
[1 reply] : http://www.cplusplus.com/doc/tutorial/functions/ I am assuming your i... (by closed account j3Rz8vqX)
code reading explanation?
 
Hi everyone, im jabing trouble understanding how this piece of code does what it does. Prior to this, the string spelling is inputted by the user. In the e...
[1 reply] : spelling gives you the (i+1) th character of spelling (remember,... (by long double main)
Calculator Code Error
 
I am receiving the following error and need assistance in correcting my code. ERROR: error: jump to case label [-fpermissive]| error: crosses initializat...
[1 reply] : Dont declare the variables inside your case statements - declare them... (by Codermik)
Merging 2 into a single alphabetized
 
Please bare with me as I'm new to all this jazz. I'm sure I've made some simple "dumb" mistakes. I'm trying to merge input files The Adopted.txt and The Orig...
[1 reply] : The errors are pretty straight forward. On line 69 of your snippet, y... (by xismn)
trouble with arrays of objects
 
Hello, I'm having quite a bit of trouble on this program. I have quite a few logic errors that I'm not quite able to iron out. The program should be abl...
[7 replies] Last: This is how my code looked when I tested it with changes: #includ... (by Codermik)
Problem with stack of strings
 
So I have code that uses a stack to check whether a value exists in the stack. When the stack is a stack of int , it properly tells me whether a number is in t...
[2 replies] Last: Thanks, I fixed it. (by Gawaine)
by quayda
Linker Error?
 
For some reason my code is failing to compile for the do while loop on ending on line 58. I'm getting errors: [Linker error] undefined reference to `copyLin...
[6 replies] Last: Okay, great. It's compiling now that I've altered. But, do yall know w... (by quayda)
Not looping after wrong input
 
Im currently attempting to create a text based game but early on im encountering a problem where if you were to type 3 instead of 1 or 2 it would end the progra...
[2 replies] Last: Thank you!, this has saved many future complaints in my game. (by zukmeku)
Bad random number generation
 
I'm trying to generate some random numbers using the rand function in the following member function. For some reason, it is giving all 0's for attack values, bu...
[3 replies] Last: The Character objects (attacker and defender) in dieRoll are copies of... (by Peter87)
by quayda
Merge Failing at Compilation
 
Hi, I'm getting the same error for all of my defined integers: insA insB outs The program is meant to read two .txt files and output them on a single one a...
[1 reply] : Your code has: ifstream theAdopted( "The Adopted.txt" ); int insA ; ... (by keskiverto)
by wolfv
printing numbers question
 
Why is the following code example not print the number eight? #include <iostream> #include <inttypes.h> int main() { uint8_t num8 = 8; std::cou...
[3 replies] Last: Thank you keskiverto, explicit casting worked. #include <iostream> #i... (by wolfv)
Problem in deleting last node
 
I have written code for deletion of last node of BST but it does not show any effect what's the problem with this code #include<iostream> #include<conio.h>...
[no replies]
May 2014 Pages: 1... 3031323334... 55
  Archived months: [apr2014] [jun2014]

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