General C++ Programming - March 2010 (Page 11)

by jhapk
Writing Binary data files
 
Hi, I am supposed to read and write a data file. Right now I am using ASCII format, but I need to considerably reduce the size. Someone suggested me to read ...
[5 replies] Last: I don't remember the details, but some guy told me about his raxor-ube... (by imi)
Some server/client questions
 
How do servers maintain their userbase of clients? Is it in a single text file with a list of username's and passwords? Or is it kept where all the other ...
[2 replies] Last: different. Often, the authentication data as passwords are stored some... (by imi)
Is this sort of fast casting still relevant?
 
http://www.stereopsis.com/FPU.html#prec I stumbled upon this page while looking for faster ways to cast types between each other (and floor/ceil). The artic...
[3 replies] Last: Just drop him an email and ask? (by imi)
Pointers
 
Hello Everyone! I am having a problem copying a dynamically allocated array from one pointer to another. The error in my program comes after I enter the valu...
[4 replies] Last: Oh ok so I was just assigning it backwards...thanks. (by ohsnap1319)
classes
 
we are learning about classes in my c++ class and we are currently assigned to work on a class that will basically output the area of two rectangles. We are req...
[7 replies] Last: thank you imi and mcleano....it works perfectly now. thanks to everyon... (by butterflyze)
binary Tree class
 
This is a bit long, sorry about that but I've been writing this tree class and I can't get it to construct properly. I've run the debugger and believe the probl...
[no replies]
executable format development
 
One of my many pet projects I've had over the years is developing a C++ shell. I'm good on shell development, but a feature I'd like to implement is it's own ex...
[no replies]
by odysei
read doubles-containing file with sstream, optimization
 
Hi everyone, I have a really big speed problem here. I read a file of let us say 1 million lines with 16 doubles per line. UserClass works as a data containe...
[2 replies] Last: That's right. I wanted to do that in the first place. However, I am un... (by odysei)
syntax problems:(
 
So i want to write a program that reads in the arithmetic expression and encodes the expression as a binary tree. After the expression has been read in, the var...
[2 replies] Last: Ha Ha HA thanks a million. That fixed it, this is just my second progr... (by Kakashi)
Where vtable get stored in memory ?
 
For a process containing classes, having inheritance and virtual functions. I want to know that in which memory region does vtable get stored. Like local ...
[2 replies] Last: Thanks for your reply. Its not for any evil plan my friend, its just ... (by tajendra)
multiple inheritance question
 
Hello, I would like to have your help about a small problem I am facing right now... I have the following code: class alpha { public: alpha() { }; ...
[7 replies] Last: I can understand that the copy constructor of gamma is run but I can ... (by imi)
Banking Transaction Code: Errors
 
I'm pretty begginer at c++ but i've started to make a code which i need help in. I'm trying to make a simple banking transaction where you can deposit or withd...
[4 replies] Last: yeah i think that was my problem thanks ( I had another file in a pr... (by metalnos)
by janica
MergeSort
 
Merge sorting... Can anyone give me a sample code for a merge sort with ascending and descending outcome. I need a problem with a simple code... need respo...
[3 replies] Last: thanks for the information. imi.. and sorry about the exclamation mark... (by janica)
2D Arrays
 
So i'm in a C++ class and we need to use a array of things to make a rip off of conway's Game of Life. Normally when yoy ask a person(user) for input to set th...
[4 replies] Last: Oh, another one: If you don't care about performance, there is a very ... (by imi)
do-while confusion
 
I have some trouble with the do-while statement. The program is supposed to be some kind of interactive shell, e.g. if you press ' h ' you get help options, if ...
[4 replies] Last: Thanks, that explains it. (by StdError)
by Laichh
Writing a MS VC++ Compatible DLL with Borland C++ Builder
 
Hi, I need to write a DLL with Borland C++ Builder 6, where the DLL is intended to be called by a program (already) writen with MS VC++. I tried several atte...
[1 reply] : Apparantly it is not entirely my problem... I've contacted the guy who... (by Laichh)
c++ swap programe
 
i need c++ swaping programe without using temp. variable. please i need help.
[10 replies] Last: A compiler would probably do that anyway. Or turn it around, if "mo... (by imi)
Command line prompt doubt
 
Hi I need to read a string from command line prompt and split it into two.. How can i find the length of the string...?
[1 reply] : well if it's a c style string, as in char *chZ; then you'll have to ... (by Seraphimsan)
Cross platform networking libs
 
Yea I'm tackling networking for the first time in c++, any one know of a cross platform library? I hate windows but have to use it and don't feel like installin...
[1 reply] : Boost asio I think has some networking stuff (but it's tutorial is hor... (by firedraco)
How to find open and closed interval in c++
 
Hello. I want to find numbers lies in between (x, y) and [x, y]. I Googled for this and saw that it can be done using boost library. But I can not understand th...
[no replies]
March 2010 Pages: 1... 910111213... 23
  Archived months: [feb2010] [apr2010]

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