General C++ Programming - May 2008 (Page 8)

by jobuny
This is a simple question I think
 
I need to set a variable to be a space. I'm using this keyboard type of program so I need the space ...
[3 replies] Last: I guess another way to put it would be, how can I make the output skip... (by jobuny)
Slightly confused
 
Hey i've been programming in C++ for two days son my problems here are expected for newbs like me, m...
[6 replies] Last: #include <iostream> #include <string> #include <sstream> using nam... (by Avignale2)
Finished application, please rate
 
Ok, so I just finished a flashcard application that takes input from the user, saves it to a flashca...
[11 replies] Last: Better yet, pass by const reference: void foo( std::string const& ... (by jsmith)
creating outfile name, comparing array values
 
Hello again! In a battle against my own insanity, I decided to do some extra stuff for my final prog...
[4 replies] Last: To do it yourself, the algorithm goes something like this: // ps... (by jsmith)
Having trouble deallocating a multidimesnional dynamic array of pointers.
 
What I have is a pointer to an array of pointers to arrays of pointers. // global int*** pppI...
[no replies]
no compile errors but not working properly
 
I saw the forum and thought maybe i could get some help. I'm kind of new to programming and I've bee...
[no replies]
Overloading operators
 
Hi Guys, Just got a quick question on over loading the les than < operator. I'm trying write som...
[2 replies] Last: Correction: The draft implementation above is wrong, it should be: ... (by ropez)
i got a program here
 
code a proagram that has individual string functions to do the following: return the string len...
[17 replies] Last: thank you i got it now. 1 more thing, what about the occurences functi... (by micah1983)
[] operator overloading
 
Hey. i have a class with 2D array inside. I'd like to overload operator that will allow me to acce...
[7 replies] Last: "this" is the address, so line 11 should actually be Proxy opera... (by ropez)
Sorting multiple vectors
 
In my program i have three sperate vectors that store the students last name, first and score. I ne...
[2 replies] Last: You probably want a vector of structs, eg struct student { ... (by jsmith)
Error with strings in constructor
 
Hi, a little help please! In addition to the constructors below there are also default constructo...
[1 reply] : Hi In the Book Constructor The parameters are string where as while ... (by DiptenduDas)
array
 
i've been up way to long but i have to have this done tomarrow I kno the error is on the lettersneed...
[2 replies] Last: You select the text you want to make code (while posting), and then cl... (by firedraco)
Program encouters a problem a needs to close everytime i run my program
 
Everytime i run my program after i enter my first value for the number of students, i get the window...
[5 replies] Last: Because you are storing your first name, last name and score separatel... (by Zaita)
system() call with paths containing spaces
 
I am having trouble performing a system call where the path to the executable and the paramter to th...
[5 replies] Last: ok - finally got it, so I will post my solution. for(std::vecto... (by SteveTheProgrammer)
problem with declaring
 
I'm having a few problems with this, it's a program to get a list of words and have a running total ...
[3 replies] Last: nevermind I think i found another way (by bcurry1)
Sorting a Linked List
 
I have the entire program written, but I can't figure out a way to sort the data structures by time....
[2 replies] Last: I'm a bit of a newbie. Can you give me an example of how to write the ... (by sgtledbetter)
Conainers and sub-classes
 
Hi, I need a bit of help, I have a program with 3 sub-classes derived from the same class. I n...
[11 replies] Last: For the -> operator look at Pointers to classes here: http://www.cplu... (by closed account z05DSL3A)
by jobuny
Adding characters
 
This may be hard to explain but I'll do my best..... I'm using an HTML based form that displays a k...
[2 replies] Last: right should have been string output sorry 'bout that thanks ... (by jobuny)
Class definition in header file
 
Hi everyone, Is it bad to put the class definition in the header file (for non template classes)?...
[3 replies] Last: Yes I used to do this all the time, but in my current project I had a ... (by enixi0s)
Grade book program using vectors
 
I am writing a gradbook type program. It first allows the user to enter the number of students they ...
[6 replies] Last: Class and struct are interchangeable. I used a struct to show simplici... (by Zaita)
May 2008 Pages: 1... 678
  Archived months: [apr2008] [jun2008]

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