General C++ Programming - October 2010 (Page 5)

File output
 
Hey, I was just having a little trouble with the file output in c++, i'm converting a program from c...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ http://www.cplusplus.com... (by Null)
String from a file
 
I have a text file that reads like: Mike Thomas 100 Main Street 1009 456 199 John Smith 2...
[2 replies] Last: To get a full line and not just up to a space do this: #include ... (by OHGxLeetGamerxOHG)
by cric
stringld function can someone do it?
 
Problem A: String LD Stringld (left delete) is a function that gets a string and deletes its leftmo...
[7 replies] Last: Hey now, I wasn't actually trying to give him(or her I suppose) a viab... (by ultifinitus)
by chee
Using Queue/Stacks with classes and Nodes
 
so basically this programs works, but with 1 problem and i know how to fix it, but don't know how to...
[1 reply] : template <class T> class Node1{ public: int data1; Node1<T> *ne... (by ne555)
by wtf
control skipping over switch statement, and following code within function.
 
This is baffling me. inline void upper(char & ch) { cout << "ok in upper ch = " << ch ...
[13 replies] Last: copy = yada; This doesn't copy what's in yada to the memory point... (by filipe)
Multiple Iteration Schemes
 
Displayed are 2 Categories each with 5 slots. I am able to Click slots and change there color in thi...
[1 reply] : Efficiency is my concern here. I broke everything up so it is easier t... (by lampshade)
ifstream ubuntu doesn't read
 
Hi! I have a very simple question for a simple code. Why doesnt it read the content of my file? I ...
[no replies]
try catch creation style
 
I'm trying to make a decision with respect to creating objects inside of try blocks. At work we h...
[9 replies] Last: +2 moorecm the harm we're concerned about with putting entire mo... (by jsmith)
The end of my loop is not working right
 
Okay i am doing a program for class and when it goes to end the loop the last parts come up. How do ...
[2 replies] Last: thank you very much (by PrincessProgram)
by balteo
Beginner needs guidance with basic C++ syntax
 
Hello, I have the following class, "ApplyFoo". Can anyone please tell me what this means: App...
[2 replies] Last: I see... Thanks. (by balteo)
ncurses - creating an array of windows
 
Hi all, I hope someone here has enough exprience in ncruses to answer my question. I have defi...
[1 reply] : Declare an array of pointers to WINDOW ( WINDOW *array_win ; )... (by Bazzy)
cout statment after a do-while, within an if-else
 
Hey! I've got a C++ program due in about an hour! I need help! I've got a 'do-while' within an ...
[1 reply] : Compiled it. It worked. You just have to pause the program (for exampl... (by hamsterman)
linux redirection program solution?
 
The Green Tree Service Company offers the following services to its customers: * tree planting - ...
[3 replies] Last: is this a good start? #include <iostream> #include <iomanip> ... (by xeroskye)
by Ulvain
Window sizing
 
#include <iostream> //the following line is necessary for the // GetConsoleWindow() function to...
[2 replies] Last: I cannot think of any practical reason why you'd need to move/resize t... (by Disch)
Procedure that returns list<MyClass> cannot compile
 
Hello all, I have a class called MyClass defined in C++. And I have a procedure that wants to ret...
[5 replies] Last: Thanks, std::list solved the issue! =] (by Ana Developer)
overloading operator+
 
So what i'm trying to do, is add a number to an array in my object, and if needed, allocate more mem...
[1 reply] : Why would you want to change the original "right" (which is actually t... (by Zhuge)
operator<< problem
 
Hello everyone, I'll get right to it... I get this error: date.cpp: In function ‘std::ostre...
[3 replies] Last: But somehow that was really it, can't believe I looked that over... Th... (by gamerkruger)
Good day everyone!
 
Hi everyone I'm new here, I'm using English but not so good. Hopefully I can share my few experience...
[2 replies] Last: @Bazzy: woah..it works! just now I compiled your syntax and it does g... (by rozzaaq)
Read File (possibly image) as binary?
 
I want to read an image file as binary, then save it again in its binary form, however i am having s...
[14 replies] Last: sorry for asking... may i know the final coding? (by redzwan)
Simple tree template class using vectors
 
Hi: I would like to make a really simple template class using vectors, something like the foll...
[6 replies] Last: Hi kbw: After thinking about why I needed the tree in the first... (by alexmbcm)
October 2010 Pages: 1... 34567... 23
  Archived months: [sep2010] [nov2010]

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