Beginners - April 2010 (Page 16)

by tysonc
Another for loop question...
 
Ok, how to I get something to output on a certain iteration of my loop? Lets say I have: for (numLoops = 0; numLoops < 10; numLoops++) What what I do if I ...
[2 replies] Last: yes, if statement can help you to output something on any iteration yo... (by Maimaje Bello Abdullahi)
quick question
 
I am trying to display some data onto a windows form from a project I am working on. How do I take the values calculated from my code and put them on the form....
[3 replies] Last: MSDN, use it. (by firedraco)
by tysonc
In.ignore question
 
I have an input file: 3 Name1 X9/X9/90X-9XF99/9 Name2 XXXXXXXXXXXX Name3 7/9/X80XX71--XFF But how would I get it to ignore everything up unti...
[no replies]
About read file and store in an array of linked list
 
_I have a txt file with the content like this : 5 1.2.10.5.15. 2.1.10.3.17. 3.2.17.4.20. 4.3.20.5.19. 5.4.19.1.15. _My code is try to read from the f...
[no replies]
Adjusting to a new level (1,2,3)
 
Hi everyone, I'm new here, I'm Arkie by the way, a 1st year college student taking up Information Technology shifting from Hotel and Restaurant Manageme...
[43 replies] Last: ok then i defently will look into those forums and i understand that t... (by MSkillet)
by lewdie
Looping Back to Beginning
 
Hello, I am working on a project which I would like to loop back to the beginning of the program upon bad cin. The code is not complete but around line 30 is ...
[4 replies] Last: in line 43 you're saying that it should loop back to the beginning onl... (by akunselm)
Conversion of Roman Numerals
 
Hey guys for my assignment i have to write a program which checks the information inside a text file to make sure it is all integers and then convert the intege...
[2 replies] Last: hello, i am doing this as an assignment too. can u post your latest co... (by whyearth)
by cmccmc
Howdo you download a file using c++?
 
how do you make a program download a file using c++?
[4 replies] Last: No. (by closed account jwC5fSEw)
I need to make a seating chart showing if seats or taken or empty.
 
Ok so I have a boolean array - seats I need to make a 15 by 30 seating chart, each empty seat will be represented by a # and each full seat will be a *. ...
[13 replies] Last: Ok thanks a lot for all the replies so far , I'm going to try that out... (by whitesnow)
Implementing Constructs
 
I just want to say first that this is a lab exercise and I am in no way asking for an answer, I just need a little bit of help getting started. I missed my lab...
[no replies]
by Nelo87
'mySize' undeclared (first use this function)
 
I'm getting an error (topic title) for apparently not declaring the private members. The error is found in the last function (resize function). Three errors a...
[2 replies] Last: Thanks a lot man...how could I miss that? =S (by Nelo87)
A question on C++
 
Hi folks, C++ and Java are platform independent. It is for sure. Java is a resource hog. The learning curve of C++ is quite steep at start. What I'm goin...
[no replies]
Trying to figure out how to write something in a function
 
This is a homework assignment that I finished. I am trying to find a way to improve it to become a better programmer. The point of the project is to read two ...
[no replies]
Program with a class containing 2D vector throwing 'std::bad_alloc'.
 
This is a program to create and play the classic 15 puzzle. This is a homework assignment, with a required puzzle class and a method to play the game. The pro...
[2 replies] Last: Ok all I needed was to change the puzzle type to void for my class fun... (by Torched)
question about to delete the pointer
 
My example : double* test () { const double TAX = .08; double* total = calTax(); // calTax return pointers for (int x = 0; x < SIZE; x++) total ...
[1 reply] : Probably, since calTax() probably uses new to allocate it's pointer an... (by firedraco)
by tysonc
Altering existing code
 
I posted a topic on here a few weeks ago about a program I made that takes an input file (which is supposed to be a bowling score): John Doe X9/XXXXX9/XXX...
[3 replies] Last: I'm so lost now... I've been fooling with this forever and I can't get... (by tysonc)
Searching through an array of structs.
 
The basic function of my program is that it should get the user's input for the name of a movie, the director, release year, and run time. It then stores this i...
[no replies]
Retrieving return data in another function
 
Hello, I'm new to C++ and this forum, but have avidly used this site for a few months now because I've been learning C++ at school recently. I just have come to...
[no replies]
by Tomdon
White Space problems
 
Hi everybody, Just wondering how to remove white space from a string. I have to take input file and use comma as a delimiter to create a new line, well the wh...
[1 reply] : Alright so I added another else if to say when it sees a ' ' to make i... (by Tomdon)
Stuck with a file IO problem
 
Hey, I am writing a small program that saves the text the user enters and then displays it when they choose the load option next time they run the program. My p...
[4 replies] Last: To be honest I am still learning about iterators. I don't fully unders... (by Blitz Coder)
April 2010 Pages: 1... 1415161718... 35
  Archived months: [mar2010] [may2010]

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