Beginners - March 2011 (Page 5)

Please Help!
 
Ok, my program takes file input (which is an unknown number of positive integers, , outputs the original number and then uses another nested event-controlled wh...
[1 reply] : After you output the sum (digitsum), you have to reset it to zero. (by jsmith)
Program crashing at finish
 
Hello! I'm trying to make a simple Tic-Tac-Toe game, but I'm encountering a strange problem. Here is the code: int main() { Game game; while (true...
[3 replies] Last: No. Something else must be wrong. You'll have to post the code for G... (by jsmith)
C++ program, my 1st assignment ~
 
hey guys, The question is like this, need to write a C program that reads 3 integers and then print them in the order & reversed. require 3 function, 1 to re...
[10 replies] Last: @packetpirate : i use visual studio 2010 too ! but my school use Dev-... (by Conan)
getline(...) not pausing for user input
 
I'm trying to write a function within my class that I can call within the program to write questions from the running program to a file. My problem is that when...
[5 replies] Last: if you want to ignore new line you have to explicitly write that: cin... (by coder777)
by Jake94
Freeing an executable from .dll on netbeans
 
Hello all, I was making an executable, as normal, but then I got an error message saying that it couldn't find the cygwin.dll. I know why, because it was on a ...
[2 replies] Last: Thank you, and I'll try that. (by Jake94)
How does this look?
 
Hey guys, My assignment was to do this: Write a C++ program that prompts the user to enter an integer x at the keyboard. Your main function should store t...
[2 replies] Last: I notice that this code is exactly the same as the code someone gave y... (by anonymous23323124)
Question of template
 
Could template work with std::tr1::function and lambda? template<typename anyFunctor = printTxt> //printTxt is somekind of functor void testFunctor() { anyF...
[4 replies] Last: According to your conclusions, do you mean if I want to treat "templat... (by stereoMatching)
While Loop Vectors (Xcode)
 
I cannot access the vector created inside the while loop but I need the entire while loop to finish before coutting the vector. It couts backwards if I put the ...
[1 reply] : 1. use code tags 2. It couts backwards that's what your loop does -i... (by matsom)
by secret
how to creat a table using c++
 
i have written a program that when three integer is entered , it print their sum , product , average , smallest and a largest , so i want help on how can i make...
[2 replies] Last: // modify showpoint flag #include <iostream> using namespace std; ... (by secret)
Bowling Score
 
This actually isn't an assignment in a class. I am in Computer Science 1 where I am learning c++ and the other day I went bowling. I thought it would be cool to...
[8 replies] Last: Here is the start of my revisions... /********************* * Bow... (by stickfigure02)
Having trouble with strcat function
 
I'm having trouble my program to display whitespace between each namestring in the fullName array without the whitespace being included the string length. ...
[2 replies] Last: My main problem is getting the strlen function to count the concatenat... (by Brianzor)
Question about boost::accumulators
 
std::tr1::array<double, 10> alpha; std::iota(alpha.begin(), alpha.end(), 0); using namespace boost::accumulators; size_t const SIZE = 1000000; accu...
[2 replies] Last: Thanks, I got the answer from the other side(daniweb) include <iostr... (by stereoMatching)
Help!!
 
Hey guys, I am taking an intro to Computer Science and have been doing pretty well so far. Alot of the programming is getting tough as of late and my assignm...
[4 replies] Last: I can understand it's kinda stressful for a newbie to learn call-by-va... (by willyhsu)
Plotting data points
 
I need some help writing code for c++ to make a plot. I think im suppose to use an array but im lost after that. The plots are suppose to look like the pictures...
[no replies]
Copying string into char array.
 
Description: I have to pass a c string into a char array, but if the string is larger then the char array size then it would copy the string array to the just ...
[9 replies] Last: Thanks coder you helped me with your example. Sorry I am a week late o... (by Boltftw)
by vlad61
number Sorting algorithm
 
Damn guys, so ive been trying to work on this for quite some time now and just feel a bit stupid. I want the user to input 10 numbers, and my program to sor...
[12 replies] Last: @valad61 : your code have problem ! and i was edit it again ! #incl... (by Conan)
Question about file editing.
 
Hi, cpp forum. I need some help. I have an .txt file of dictionary words. How could I manipulate the .txt file line by line? Maybe put a line in a string vari...
[1 reply] : I'm not very familiar with it, but it does get a lot of good rep here,... (by matsom)
program that saves data
 
hello all, i am new in c++ programming, i can design some programs, but i can't make them save and retrieve data from the system. Please help me guys.
[1 reply] : fstream http://cplusplus.com/reference/iostream/fstream/ (by ultifinitus)
Reading file into array of struct??
 
Hi everyone. I have a homework assignment where I must create an array of a stucture consisting of a float member and a integer member with room for 10 elements...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ look under Text files ... (by matsom)
Debug assertion failed?
 
So I'm getting this error in my program. I have no idea what it means, and its a popup error. Picture of error: http://www.imageuploads.net/ims/pic.php?u=40...
[14 replies] Last: Well...I might feel like an idiot after asking this. Especially if thi... (by theholyfork)
March 2011 Pages: 1... 34567... 52
  Archived months: [feb2011] [apr2011]

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