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

by polo87
Inputting N number of lines into a buffer
 
Hello, I am trying to input 1000 lines from a file at a time into a buffer ,do some processing on it and then refill the buffer ,process again and so on ...
[4 replies] Last: Keep in mind that if you do a block read as satm2008 suggested, you ... (by Duthomhas)
by obai
simulation clock
 
Hello everybody, I need an urgent help. I am using visual c++ 2003 and I am using a network simulator .In my program there is a function ----simulate(int no_ev...
[1 reply] : The standard ctime routines (http://www.cplusplus.com/reference/clibra... (by Faldrax)
'for loop' for character in C++
 
Hello, I need a piece of code that uses 'for loop' or 'arrays' to output words in series such as: First Second Third Fourth and so on... Everytim...
[2 replies] Last: It's alright now! It's working fine! (by jaimil27)
by sky
c++ compiler windows vista
 
Help the compiler install on windows vista, but it don't want to compile. What can i do ?? Thanks sky,, I bought the book c++ for dummies by stephen randy ...
[3 replies] Last: What you need to post are the messages the compiler prints out when it... (by bnbertha)
design datastructure for parsing the text file.
 
Hi, This is srinivas, i am new to this forum,i need help from our forum. I stuck up with my code to parse and Extracting the information from the text file an...
[1 reply] : I would suggest a data structure that holds the information about one ... (by bnbertha)
How would i get this to start again?
 
hey guys... I wanna know how i would get a "would you like to start again? Y or N?" message to pop up at the end of my program and have it start from the beginn...
[4 replies] Last: Thanks so very much! I GOT IT! Great to see someone who helps without ... (by matthew798)
Undirected acyclic graph creation algorithm
 
I have been trying to get this most difficult part of my Network Backup Simulator to work for over 2 months and now have a functional network simulator. The par...
[6 replies] Last: Working with Qt4 that I aquired from the www.trolltech.com website. Th... (by awhite1159)
by Robson
reading string from file with blanks, why?
 
Hi I'm reading from the file filled with: cplusplus do it well using getline(data_file, string_line); next cout << string_line; and in con...
[2 replies] Last: I would be tempted to go along with Faldrax . Just out of interest... (by guestgulkan)
Rice Decoding running time problem
 
Hi all, currently, I write a little program with Rice coding. When I Encode, it runs quickly, but when Decode, it runs very-very slow. Can some one help m...
[3 replies] Last: Ah, well, the code is fairly verbose. You might want to use a C++ Prof... (by Duthomhas)
by chabo
problems with numbers and loops
 
Hello, I've been using loops for a while, mostly small loops, but today i decided to try to make something a little bit bigger, but there was some problem, and ...
[5 replies] Last: Glad to help. When I was initialy learning I would write everything t... (by Faldrax)
program arrange names of students and there grades
 
Hello, I want to write a program thats Arranges names of students and there grades, the arrange of the 1st array (names) will be arranges by Alphabetical arra...
[5 replies] Last: Hi, you still have the array in the structure as two dimensional whic... (by Faldrax)
by tortt
problem with header file
 
hello,in my main program i can see 3 mistakes in .h file: #ifndef AC_H #define AC_H class Student; class Address; class Group; class Depart; class...
[1 reply] : I'm not quite sure what you're asking but I'm guessing that you've cre... (by bnbertha)
enums galore
 
This question can be applied equally well to C but maybe there is a unique C++ solution to this. The problem I am having deals with using hugh enumeration struc...
[7 replies] Last: Yeah, this is one of my pet peeves about C++: that enums aren't "real"... (by jsmith)
Overloaded assignment and addition operator problem.
 
Hello, This is my first time using this forum. I have ran into a hitch recently using some overloaded operators and cannot figure out why I am running into t...
[1 reply] : You are returning references to temporaries in operator* and operator+... (by jsmith)
by xabnu
Passing pointers by address
 
I think I must be losing my mind because I thought that passing a pointer to a function would be passing its address, but I can't get the function to alter the ...
[5 replies] Last: Thank you Bertha, :) it works now (by xabnu)
Dev-C++ allegro compiler
 
i copy simple code from a tutorial web site into Dev-C++ and when i compiled it, it came up with several errors, it included allegro.h . this shouldnt be hap...
[2 replies] Last: Yeah i already linked it heres the code i copyed into it #inc... (by noey699)
problems with a project concerning common data for more programs
 
so, i have to do this project using C++ and flash. so my project emplyies introducing names and grades in a data base, deleting that, modiying that etc.very ea...
[no replies]
Skip whitespace
 
Hi Guy's, I was wondering if there was a string function or cin function to remove all whitespace from a string. ie convert 1 2 3 4 to 1234 regards Bren...
[1 reply] : Sure. Use the following: #include <algorithm> // for remove() #i... (by Duthomhas)
by Ossory
return a pointer to the first element of a dynamically allocated (c-style) array
 
I need a little clarification on the following matter - I need to create and modify a dynamically allocated character array inside a function and then return it...
[3 replies] Last: Thanks a lot for suggestions, in fact what I am going to do is, as Ber... (by Ossory)
for loop behaviour
 
Hi Guys, I've built a function (well nearly) to accept a text string of numbers and depending on the value switch the corresponding Enumerated Colour to an ...
[3 replies] Last: Thanks alot for that Faldrax, I made the changes it it's looking alot... (by boneill3)
May 2008 Pages: 12345... 8
  Archived months: [apr2008] [jun2008]

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