General C++ Programming - October 2009 (Page 15)

Need advice/clarification of while loop problem. DUE IN 1 HOUR
 
Ok so I have homework due in 1 hour. Im not asking you guys to do it for me, but to help me understand the problem and point me in the right direction. So her...
[11 replies] Last: Thank you all. My program was right. It would have been a lot ea... (by ljrobison)
PDCurses Extended Ascii Problem
 
I am unable to get PDCurses to draw any extended ASCII character in color. Here is code that compiles fine: #include <curses.h> int main(void){ inits...
[no replies]
problem reading big flat file
 
Dear Friends, I have a flat file that has 219789 lines(each line has 5 records separated by Pipe). I have a C Program that reads that flat file and inserts...
[4 replies] Last: Thanks guys.... The real problem was different. There was a hiden weir... (by kinchan)
getchar?
 
Okay, so I'm trying to modify a class project where we find our way through a maze (essentially a 2d array) using recursive programming, and now I'm trying to a...
[3 replies] Last: Alright, still looking into this, but I really think you guys have poi... (by JLFord78)
string question
 
It's possible ?(str , str are strings) // string str; cout << str << str ;
[4 replies] Last: thanks! (by blucrosoft)
Problem with GetMessage
 
Hi folks I was hoping you guys can give me a quick example on how to use this function i have done subclassing in vb6 but doing it in c++ is new I googled for ...
[2 replies] Last: GetMessage() is irrelevant for subclassing. See the old MSDN articles... (by george135)
Staticly Linking DLLs to the .exe?
 
From memory I can't remember what this is called or how it'd done. But I'm trying to figure out how I can pack the DLL files into the exe. I know it'll make the...
[3 replies] Last: If you are in DIRE need of statically linking a DLL to your program I ... (by mackabee)
by Darqam
output style
 
Hello, I was wondering if there were any different ways to visualize a C++ program other than the regular "command" box. I have never completed a full course...
[3 replies] Last: You can also use Qt, GTK+ and lots of other GUI libraries. All these ... (by Bazzy)
Determine The Web IP ??? Possible ???
 
Hi folks , in my application it is required to display the user IP and the web IP.Since i am developing a networking application I know how to obtain the IP add...
[1 reply] : You need to do a DNS lookup. See gethostbyname. (by kbw)
Should I be worried?
 
I have the following (simplified) code. gQuickChatTree is a global vector of QuickChatNodes, which are themselves simple structs of 7 fields. function alloc...
[13 replies] Last: Great, thanks. The thing of it is that I just create the items, then ... (by chuckECheeze)
Need advice with coversion program.
 
Hello all this is my first post here. I just started my first semester at Penn State for Software Engineering and I have a class on C++ right now. (Don't worr...
[8 replies] Last: Yes that`s right............ But if you think about it there is no ne... (by buffbill)
by gnugu
using rand()
 
hi in http://www.cplusplus.com/reference/clibrary/cstdlib/rand/ and in some thread of this forum there is are examplea for using the function rand in a way tha...
[1 reply] : It is true that LCRNGs have patterns in the low bits. One can offse... (by jsmith)
by PkD
Refreshing a thread
 
Hi people! I'm working in a project where there is 2 threads and I'm using QThread, but when one of them is working, the other need to be refreshed. But I ha...
[1 reply] : I also tried with usleep(1), method from QThread, but the loop is too ... (by PkD)
Segmentation faul
 
in the main the call is: int main() { TwD<int> TwoD2 TwD2.swap( 2,4 ); return 0; } template <class T> TwoDimArray<T> TwoD<T>::swap(T r, T c ) { ...
[1 reply] : You are not checking for substricting boundaries (by Bazzy)
C++ Map with multiple data types?
 
Hi everyone! I'm doing a C++ problem that I'm a bit stuck on. I'd like to be able to store multiple data types in a C++ container with a key (such as a Ma...
[6 replies] Last: Using the derivation thing with a template subclass seems to work nice... (by MisterEd)
by s2xi
time struct using CLASSES
 
Hi, I'm trying to create a program using nothing but classes as a homework assignment. (yes another help me on my homework post) so far i've pulled this s...
[3 replies] Last: The tm struct has various pieces of time information within it that yo... (by Zhuge)
multiple definitions error
 
im writing a program for the knights tour.i have one file that lists the definitions for a function in another file and thus get multiple definition error. ...
[6 replies] Last: Don't #include source files - Never, Nowhere - , use your IDE's projec... (by Bazzy)
Strange problem with if statement
 
I'm pretty confused because I've written a plug in for a program before and when i wanted to remake pretty much the same plug in it won't work. This is the c...
[3 replies] Last: You are looking at a packet filtering in to the game Diablo II, it's a... (by ogelami)
Query Regarding File I/O
 
Hi .. I want to read a file... its easy to read.. but i have to read and put the data it into a seperate variable..for that i have to separate the commas and b...
[1 reply] : Duplicate post. Please see response in Beginners forum. (by jsmith)
Explaination of type def
 
i decided to take a deeper look into typedef First The thing i know about typedef is typedef short SmallNumber; //now short can be substituted with SmallN...
[1 reply] : typedef unsigned long DWORD, *PDWORD, *LPDWORD; is the same as: ... (by firedraco)
October 2009 Pages: 1... 1314151617
  Archived months: [sep2009] [nov2009]

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