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

Don't close the program?
 
What code would I add to a program to make it so that the X in the top-right corner does not work, and is EDIT: I don't need it invisible to task manager.
[15 replies] Last: Also may i ask what does your program do cos i can't think of any oth... (by mcleano)
C++ GUI and graphics programming
 
Hi, please help me to form an understanding of C++ GUI and graphics programming. Is it true that C++ has not built-in graphics and GUI library? Using internet ...
[4 replies] Last: GTK is more C than C++ I believe GTK+ is for C and GTKmm for C++ QT... (by Bazzy)
by kako
OCV
 
I search after ocv toturials
[1 reply] : You shouldn't have any trouble finding that info if you're searching. ... (by cnoeval)
by mantu
how to get end of the line
 
hi... i hav a ASCII file in which, at the beginning there is a header lins. and then there r numerical lines, then again header llines with numerical lines....
[6 replies] Last: have a look at boost::regex have you some example data? (by bigearsbilly)
by ttx336
can't understand Bloodshed Dev C++ debugger
 
I am using Bloodshed Dev C++ 4.9.9.2 but I am having a tough time understanding how to use their debugger... I can't get it to single step most of the time. It ...
[3 replies] Last: I downloaded wxDev C++ and I am checking it out now... the debugger wo... (by ttx336)
When is a declaration a reference?
 
My boss reviewed some code I wrote that used a list of structs: typedef struct {...} MY_STRUCT_T; std::list<MY_STRUCT_T *> myList; void funcA() { M...
[9 replies] Last: Rule #1, don't argue with the boss. Rule #2, if you do have to argue ... (by Galik)
syntax error : identifier 'cout'
 
I have the following code: #include<iostream> using namespace std; class Animal { public: Animal(int); Animal(); ~Animal(){} int GetWeight...
[6 replies] Last: That's OK, its a subtle difference in shape :-} (by Moooce)
Why atof(1.8) returns 1.79999
 
char str ; double retVal = atof(str); str value is "1.80 ; some_text". Why atof returns 1.79999? Visual C++ 2008 Express, Windows 7/64 Best regard...
[2 replies] Last: Obligatory link: http://docs.sun.com/source/806-3568/ncg_goldberg.h... (by jsmith)
Squarewave signal with different sample lengths
 
I have to write a C++ program to generate a square wave with amplitude from +1 to -1 and with following sampples: 65536 32768 16384 8128 4096 2048 1024 ...
[19 replies] Last: thnx galik. i opened the file before the loop and entered them each ti... (by mathew086)
by jkigen
any
 
any yet
[2 replies] Last: Yes, as a matter of fact. Thanks for asking. (by helios)
Binary Tree Printing (Heap Sort)
 
I am having a ton of trouble using a heap sort to print from a binary tree. Can anyone help me? This program is supposed to: 1. fill an array with 41 random...
[1 reply] : Heap sort is: 1) To make a heap from a set of elements. You do this i... (by melkiy)
Asking about static variable construction.
 
I want to find a way to add some codes to execute before main when any executable program link my library, which may be a static library or dynamic, shared ...
[1 reply] : To have a portable solution, add a function called yourlibrary_init ... (by Bazzy)
Problem
 
There is an array A of N numbers. You have to compose an array Output such that Output will be equal to multiplication of all the elements of A except A . F...
[4 replies] Last: Yes Mr Frunze1983, You are absolutely right. I will try to give mor... (by harsh4u89)
by Jesuss
exception handling
 
I will be very grateful for any help. Write a program to enter your first name using an array of size 10. If the name entered is more than 10 characters, the...
[3 replies] Last: hello Jesuss you should not ask people to write code for you, you ... (by vivmen)
filestream
 
I tried to open a file in input,output and binary. However it gives me trouble.Look at the test code below: int main() 11 { 12 fstream data; 13 con...
[2 replies] Last: Where do I begin? 1. Don't create a stream, then open/close it. So... (by kbw)
by NGen
End Process
 
What happens to resources in video memory when you end the process of a Direct3D or OpenGL application through something like the Task Manager? Do they still ea...
[7 replies] Last: [quote=NGen]I noticed that using Alt+F4... I think Alt+F4 just sends... (by m4ster r0shi)
throwing exceptions on success
 
I'm wondering if there is a way to throw and exception inside the constructor for an object while still resulting in the creating of that object. I have a to...
[2 replies] Last: [quote=ischuldt]I'm wondering if there is a way to throw and exception... (by PanGalactic)
Malloc ; memset ; new
 
hi guys, what essentially is the difference between Malloc, Memset and new.. is it true that memory allocation with malloc/memset doesnt invoke co...
[17 replies] Last: But that doesn't overwrite the pointer. memset(&memSetGreeter,0,sizeo... (by helios)
by sgl
Function pointer list.
 
Is it possible to create an array or list of function pointers so that not all of them accept the same type of parameters? Like double F1(int x, int y) {re...
[7 replies] Last: Which is exactly what I did... I made the derived class a template so ... (by m4ster r0shi)
How to create a simple list?
 
Hello I very much ask to help me with the decision of one problem. There is a sample of a code. You can describe a simple list as follows: • The simple ...
[4 replies] Last: void isfull(const Item & it) { if(top == MAX) cout<<"Lis... (by Kangaroux)
July 2010 Pages: 1... 910111213... 20
  Archived months: [jun2010] [aug2010]

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