Beginners - November 2008 (Page 9)

reading next line of input file
 
Hey guys, Stan here. I am fairly new to c++ so take it easy on me. #include<iostream> #include<iomanip> #include<fstream> using namespace std; int ...
[2 replies] Last: You are not saying what is not working.. so we readers need to guess ... (by anders43)
by Foe89
Structure confusion
 
A program that I'm creating in a c++ intro class is confusing me. The question is this, and right below is the main function it gives me Write a program tha...
[11 replies] Last: why don't you move the display function into the struct, then you don'... (by anders43)
by digi35
c++ linked lists
 
Hi: I'm new to c++ programming, I nee to write a code for a linked list. To be more specific I need to write the removeItem, displayList and the sort functions....
[2 replies] Last: //remove item from list void linkedCircle::removeItem(string item) {... (by anders43)
by srlunx
Project's 3 folders.
 
OK, here's the problem. When i create a project, the 3 folders is missing!?! I saw all those tutorial videos & books, when a project created...there must be 3...
[4 replies] Last: Problem fixed, thankyou (by srlunx)
Defining an end of input stream
 
Hi, mates! I have to defina a pattern(template) manipulator with one argument, with several functions. One of them is to make it accept not just ' ' or '\n' f...
[11 replies] Last: Thank you, Douas. It does help, although its not exactly what i need.... (by MrProfit)
Getting two .cpp files in one .exe
 
I am needing to get two cpp files to run one exe. I know one of them is supposed to be the "driver". I am using a self made header file and I know one of the cp...
[4 replies] Last: also i think this is a small mistake but you also need #include "head... (by simply thunder)
printing a pattern
 
for an assignment i have to use nested for loops to print this: * *** ***** ******* ********* *********** ************* this is t...
[8 replies] Last: ... (by simply thunder)
How to combine strings?
 
Ok, so problem as following: Program will read disk letter from file and the create path to another file depending on that input (e.g. if input is C it shall be...
[2 replies] Last: Are you using C++ strings or C strings? for C++ strings: string... (by Bazzy)
largest and smallest #
 
My assignment is :Write a program that displays a menu with the following choices to the user. A - Find the largest # with a known quantity of numbers ...
[11 replies] Last: Thank you all for helping me out got 44 out of 45 on this assignment .... (by hoosierguy7669)
using input and output files to print two arrays
 
Hi can anyone help?. I want to create a program that will call a series of functions to process a set of data. One function will read data into two arrays. A se...
[3 replies] Last: Please use the # button when posting for code. Or put your code in cod... (by Zaita)
Does C++Builder GUI Skins Look Better! When Can I Find Them?
 
I read some articles that C++Builder IDE got more elegant skins than .NET skins. Right? Where can i find them? Is building Windows Program (GUI) under VCL ma...
[1 reply] : These are questions best asked on the C++ Builder forums. (by Zaita)
random number guessing game
 
I need help with an assignment for a class.Im supposed to write a program where the program picks a number between 1 and 1000 and you have to guess the number.A...
[13 replies] Last: However, you may want to rename your variable since continue is a re... (by Zhuge)
by Mogget
a string to an array of characters
 
I need help with some things. Could someone give me an practical example on how to convert a string to an array of characters in "void listUsers()"? Also ...
[2 replies] Last: Use .c_str(). (by firedraco)
by pino
EXIT_FAILURE
 
While studying the primer,I found the following example: #include <cstdlib> int main() { if (some_failure) return EXI...
[4 replies] Last: OK, it is clear now. Thank you. (by pino)
Problem with getline
 
Here is my code. The second time that i use getline, it doesn't work. The variable is not given the value that the user inputs. But the first time i use it, it'...
[10 replies] Last: #include <iostream> #include <string> using namespace std; int... (by Scipio)
Product class - whitespace in first input causing problems
 
I am having some problems and I would appreciate some help if someone could tell me where it is that I am going wrong. I am trying to create a simple class that...
[5 replies] Last: Using both cin.getline() and cin>> in the same code often gives proble... (by Scipio)
Not understanding conversions...
 
There's two programs I'm stuck on for my intro to C++ class for the same reason. Every time I go to compile, I get an error about not being able to convert a va...
[9 replies] Last: isalpha(char) returns true if the char given is in ['a', 'z'] or ['A... (by Bazzy)
by xonara
Compile error that doesn't point to right line?
 
[I read the sticky and I'm trying to give useful information so someone can help me but I'm a little frustrated so if I'm overlooking something tell me] I've...
[8 replies] Last: When a class D inherits from a class B, D can access all of B's publi... (by jsmith)
two .cpp and one .h
 
I need this program to run and it includes the header and both .cpp files needed. I am having a really bad time with this one, completly lost with this one. Any...
[1 reply] : Without errors, I am basically guessing...but I think the problem is y... (by firedraco)
by des
text cutting?
 
How do i cut a very big text file by line? Does Fscanf function scan the entire line? example: "ab cd" 1234 "ed fg" 5678 "hi jk" 1234 "lm no" 5678 ...
[3 replies] Last: Thanks a lot! That's really helpful. :) (by des)
November 2008 Pages: 1... 7891011... 19
  Archived months: [oct2008] [dec2008]

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