General C++ Programming - October 2008 (Page 7)

by lipune
c++
 
can anyone tell me,,,,,,, 1-what is use of bit field in structure and why we use. 2-how we know our system is little endian or big endian 3-if i allocate mem...
[3 replies] Last: #1 - it is used to allow direct access to individual bits without havi... (by jsmith)
by g0dwyn
Pointer Madness
 
Hi forum, So the latest in my perplexing programming issues is this: I've got an integer pointer that points to a valid variable, like so: int bar = 0;...
[2 replies] Last: *x++ is shorthand for x->operator++(int)->operator*() Now the po... (by exception)
by Clauzr
How to do a parsing?
 
Hi guys. I'm a university student and I have a final project that need a parsing method. I have to check if there is any alphabet in the input. If there is, eve...
[1 reply] : Just use a stringstream, then you can check each character individuall... (by firedraco)
read .txt file line by line and convert to array
 
i am working on a text twist like program on visual studio 2008 c++ or devc++ and i'm trying to figure out how would i access the list of words from a text file...
[4 replies] Last: You could probably also just use getline() in this case to get everyth... (by firedraco)
save data on C++
 
Hello, I am setting up an agenda on C++ (use Borland Tubo C 2006), for to put my data I use a "StringGrid1", but I don't know save my data when I close my proje...
[2 replies] Last: thank you for the answer, I will try. (by viclaudel)
Addition with string
 
I've done my code for addition using string. I'd really happy if you guys can guide me with the optimization. It's not really necessary but if you are interest...
[no replies]
Can someone please edit my code and please place an ifstream on it?
 
Can someone please help me out with this code... I'm having a very difficult time with this one... so, I was hoping you guys could help me out... Thanks in adva...
[no replies]
Calculate by memory value
 
I'm doing my calculator and it's helping me until now. But in some cases, the rounding is not working fine. Ex: when the result should be 4, the printout becom...
[11 replies] Last: I found a simple equation: 0.01234-0.01334 gives you -0.00099999... (by chu121su12)
Session Tracker Application
 
I have been working with C++ in Unix environment for quite some time now. To learn in a broader perspective, i wish to develop some windows based application. ...
[no replies]
how to create a random number generator function till range of unsigned int
 
how to create a random number generator function till range of unsigned int
[3 replies] Last: rand()%(#) replace # with a number signifying the highest number you ... (by CTucci87)
erase() function
 
I am curious if there is another way to perform the erase function. In my code I have: readLine.erase(0,1) // erases the first position to get the next s...
[3 replies] Last: Erase is the most efficient way. you may try: readLine = readLine... (by chu121su12)
Problems With srand()
 
I tried to seed with time(0) and time(null) and it responds that time cannot convert into an unsigned int. I'm using Visual C++ and Vista.
[1 reply] : I worked it out all I had to do was cast time as unsigned. I just chan... (by CTucci87)
refreshing things (like progress bars) in the command prompt/terminal
 
Hello all, It's been awhile since I last posted and I have a new idea for a program. I am looking to find out how progress bars work in the command ...
[5 replies] Last: Hey thanks for all your help. I took the progress bar you gave me and... (by enduser000)
new syntax for associative array
 
Helo, here is the thing: i made an implementation of the associative array in C++. It works well, but i want to make it's syntax closer to that of the origin...
[2 replies] Last: Wow, it really works. I never tought that you can do this with operato... (by kanesoban)
Parsing XML
 
Hi, everybody! I'm looking for XML parser that fully supports XSDs and XML 1.0 . It should be able to report any errors found. And what's most important - I ...
[no replies]
by helios
Random errors with queues
 
I'm getting (luckily infrequent) errors at random while getting the top element from a queue. I don't remember the exact error right now (and I don't know the e...
[1 reply] : I would just go for a thread-safe structure, since it will also preven... (by firedraco)
Problem with Class Month
 
Hello guys, I need help with my C++ Program. I am writing a class called Month with a couple of constructor which will determine that the month name is valid, ...
[2 replies] Last: Thanks a lot Jsmith. What I did to solve the problems was to use the ... (by locorecto)
by Gonen
Calling to a function in the run-time
 
Hello , I want to call to a function(from a DLL) that I got a pointer to it , but I know its signature only in the run-time.. How can I do that?
[no replies]
C++ Progamme for linux
 
Hi , Im looking to programme something in C++ on ubuntu . Could you please recommened some programmes which are easy to install . Im looking for a developer...
[no replies]
Request for member error
 
I am working on an OOP project and I am stuck on the following error: |LINE: 28|error: request for member `clone' in `tleft->TimeValue::scale((1.0e+0 / drigh...
[1 reply] : Because scale returnes a pointer to a TimeValue, shouldn't it be : (I... (by guestgulkan)
October 2008 Pages: 1... 56789... 11
  Archived months: [sep2008] [nov2008]

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