General C++ Programming - June 2008 (Page 5)

by obai
assertion faild in release mode
 
Hi verybody! I am trying to run my program in release mode but an assertion failure is reported., although it works well in debug mode but is very slow. When I...
[4 replies] Last: It's a bit hard to help in this sort of situation. The best I can s... (by closed account z05DSL3A)
by AAA
Operating Two programs within same program
 
Hello every one Is it posible to operate two programs within same program?? for example I have a program of competition and I want to add counter of time for...
[3 replies] Last: The way I see it you have two choices, the threading option as suggest... (by bnbertha)
Using a character string as a variable name?
 
Hello, I have a string-related question. If I have a character string, is it possible to define a double-type variable and name it after that character string? ...
[2 replies] Last: You cannot create variable or symbol names dynamically at run time, th... (by bnbertha)
by lipune
c++
 
Hi to all ,i am new to the c++,but i want to know where the use of overloaded assignment operator and copy constructor,as they both are very close as in copy co...
[2 replies] Last: thanx for giving replay,so can u tell me as in c if we want more memor... (by lipune)
Storing 3x 4bits to 12bits consecutive
 
Guys, I am in need of help of how to combine three 4 bit pieces of data read in by a function to one consecutive 12bit piece of data. the data would come ...
[3 replies] Last: Actually you have it exactly. int two_hundred_fifty_six = 1 << 8; ... (by Duthomhas)
Elegent way to use member function as callback?
 
Hi all, I'm using a library that takes a callback function of type (void (int)) for notifying the library user about an event. Is there a good way to use the ...
[2 replies] Last: Hi Duoas, Thanks for the tip, that looks like a great tutorial. Seci... (by JivanAmara)
need a guide to understand functions+looping
 
Can some one help me on understanding C++ funtions and looping in ncurses..i'm a I.T student and the exam is few weeks away...got to settle these things...if so...
[3 replies] Last: Have a read of this http://www.cplusplus.com/doc/tutorial/control.htm... (by bnbertha)
Creating dynamic function?
 
Just say I want to make a scripting language that support functions, and I want to implements WinAPI callback from user defined function in my script... W...
[3 replies] Last: #include <stdio.h> #include <stdlib.h> #include <string.h> int... (by audinue)
Arrgh! STL functional templates!
 
Sorry for the bad title, but I haven't a clue why this won't work. I've got a template class that is supposed to work like std::logical_and<> (in <functional...
[2 replies] Last: Yoinks! The obvious answer... Thanks a billion! I wouldn't have tho... (by Duthomhas)
by tsimmi
Classes and sub-Classes
 
Hi! I have a problem. I have this class and two sub-classes, something like this: class object { public: VecH *pos; float rgb ; float kd; float ...
[9 replies] Last: Sorry for the insistence. Now I have this: sphere* intObject = dy... (by tsimmi)
Making array into descending order with Loops or Sorting
 
Hey guys, I am new to this forum and I really need some help. I have looked at the information on sorting and I just can't get it. What I need to do, is to m...
[2 replies] Last: Or, my all time favorite, check http://en.wikipedia.org/wiki/Quicksor... (by dwk)
by Sever3
Reading offsets from a predefined text file
 
I want to know how to read an offset from a header file that is NOT included in the source code. For example if the header file was.. #define ...
[5 replies] Last: Alrighty, now for the stuff you want to know. I will assume that yo... (by Duthomhas)
memory crash _BLOCK_TYPE_IS_VALID(pHead -> nBlockUse)
 
Hello, and thanks for reading I have been struggling with a memory corruption/crash that causes the message in the subject and humbly ask for your help. I nar...
[3 replies] Last: Yoinks! I don't know what I was thinking when I wrote that. Fix i... (by Duthomhas)
problems the worlds
 
hi all i create a programme."Ececuve" worlde is error show.
[6 replies] Last: But did I help answer your question? (by Duthomhas)
Reading data from Text file in series!
 
I need to create a program of bank transaction where I would write following information in 'trans.txt' file. deposit 500 deposit 150 withdrawal 245 depos...
[1 reply] : If the code reads 'trans.txt' one line at a time into a string you can... (by Faldrax)
Code Comparison
 
Hello, I was given a source cpp that was modified heavily from another base cpp. Is there a fast way to compare the two versions of code side by side to hig...
[3 replies] Last: On the subject of diff tools, I use Beyond Compare 2 (http://www.scoot... (by Faldrax)
by Vatrox
Input validation in Class
 
I know, I've asked a lot in this forum, I apologize for that, but I'm really stumped with this program. if (choice == 1) { cout << "Enter your account name...
[5 replies] Last: if (choice2==2) { do { cout << "How much would you like to withd... (by Zaita)
by cdm319
Repetitive Loop?
 
Hello, I have what I think is a fairly simple question. I am relatively new to C++, and I know the basics of loops and of the language in general. However, ...
[9 replies] Last: You should avoid using scanf . It's the C way to do things. Get famil... (by Zaita)
by Vatrox
Do While Loop Won't End
 
char ans; cout << "Do you want to search for an account again?:"<<endl; cout << "Y/N or y/n: "<<endl; cin >> ans; do { **random code** } while((a...
[5 replies] Last: Thanks! (by Vatrox)
How to update information in c++ with passage of time automatically???
 
I am making a company database system using c++. I want that my information gets updated with passage of time. eg. if i enter an employee's basic pay his/her ...
[2 replies] Last: Actually you can do this. However, the relevance of C++ to this is non... (by Zaita)
June 2008 Pages: 1... 3456
  Archived months: [may2008] [jul2008]

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