General C++ Programming - February 2009 (Page 14)

how to use get() ?
 
I have managed to break down line by line of a file containing several lines of datas. Using string x; getline(abc.txt,x); however, if i would like to f...
[2 replies] Last: THX Bazzy !!! (by aisderu)
using struct items
 
string load_data(string filename) { ifstream InFile; //used for bringing stuff in from the file animalCount = 0; string results; InFile.open(filen...
[2 replies] Last: So, it appears that your animal structure stores the age and weight as... (by seymore15074)
by MrCode
How to create project template in Visual C++ 2008?
 
Hello, all. I've been looking for a way to create a self-made Windows project template (other than just doing a Ctrl-C Ctrl-V from another existing project) in...
[2 replies] Last: Well, I looked at it, and it appears that the menu choice "Custom Wiza... (by MrCode)
by djzmo
[urgent] Filling a table (multidimensional array) with spiral datas..
 
Hello I need to create a table (using multidimensional array/vector) that contains datas in a spiral form. if you dont know how spiral looks like, http://ima...
[4 replies] Last: as kbw said, you need to run it by hand, get the values(rows,columns) ... (by lightlord)
by kabuum
encode wave to ogg vorbis
 
Hello, i would encode a wavebuffer to the oggvorbis. My actually code is like this: HWAVEIN hWaveIn; WAVEHDR WaveHdrIn ; BYTE BufferIn ; DWORD WIN...
[2 replies] Last: hmm, i cant see a coherence between the winapi and ogg but i am ignora... (by kabuum)
plug-in style code
 
Hi my fellow experts, may be you guys could help me and feed a food for thought. I am designing a complex application that requires some thing to be executed on...
[2 replies] Last: I forgot to mention that the library (or Rulex class) would be supplie... (by satm2008)
by Uqbar
ring list?
 
Hi all! I need to implement a ring list that should be much like a STL list (doubly linked) with the plus of having the two ends linked each other. In this wa...
[2 replies] Last: Why don't you just create a circular_iterator? (by jsmith)
Objects like std::cout and std::cin
 
Hi everyone. I'm new in this forum. I'll try to help anyone I could. I wanna create 2 objects like std::cout and std::cerr. I've been constructing a log syst...
[3 replies] Last: No. The extern keyword tells the compiler that the symbol being declar... (by helios)
Circle of pointers
 
I have a class which contains references to other classes by storing their pointers as variables. This all works great with the exception of one class. One of t...
[7 replies] Last: Cool. Have a good one. (by seymore15074)
stream_iterator discussion
 
I was playing around with the STL and wrote a CSV file istream_iterator-like class. It is a template so that it can read strings, ints, doubles, etc. Its cons...
[3 replies] Last: Here is a refinement of the Formatter unary function object that accep... (by seymore15074)
by bots09
Troika::BOTS-AI Programming Challenge
 
Hello everyone, The wait is finally over! The problem statement of BOTS: AI programming challenge event of Troika'09 - The annual technical fest organised...
[no replies]
by zxyong
Questions about fstream
 
Hi everyone, I am a student currently doing a project that needs to add, edit, find, delete phrases and word from a .txt file. But i cant seem to figure out ...
[9 replies] Last: I got the searching for phrase part already, thanks alot. Now for ... (by zxyong)
Cant seem to get loop to work right
 
I am using this style of loop void print_label::labelWork(string gameName, double gamePrice, string usedOrNew, int count) { int input; int num; ...
[9 replies] Last: @Helios Thank you for the link, it makes a lot of sense when I am e... (by William McHugh)
compare and data counters for bubble,selection and insertion sort
 
hi, Here is my code on the three sorts. I've place in the counter called icompare&imove for insertion sort; bcompare&bmove for bubble sort and scomare and smov...
[no replies]
Sqrt Problem Here
 
I've posted where the problem in my code is; really don't know what the problem is with it. Sorry if my code is a little confusing, I made it like this first so...
[6 replies] Last: Ok I'll include that in the next iteration of it. Anything else wrong... (by bananae)
by jrok
using string arrays in constructors
 
hey I had this program written without using classes, but I wanted to manipulate it to do the same thing using classes. Everything seemed to be alright until I ...
[1 reply] : string questions = {"famous person", "country", "number", "plural nou... (by helios)
February 2009 Pages: 1... 121314
  Archived months: [jan2009] [mar2009]

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