General C++ Programming - February 2010 (Page 15)

construct 2D array using void pointer
 
Hi guys. This time i want to ask something about generate 2D array using void pointer. I've search...
[5 replies] Last: I find these kinds of things to be very much helped when I use type al... (by Duthomhas)
by zelta
How to delete 2D Array? Thanks!
 
Hi guys! I've absolutely no idea why my delete codes inside the destructor won't be able to function...
[9 replies] Last: Glad to be of help. 24 years. I do not like Java, to put it mild... (by Duthomhas)
wait for 5 mili second
 
hi i`m searching for a way to wait 5 mili or similar values like that in my program. sleep()doesn`...
[4 replies] Last: thank you everybody. If on unix, try usleep(). it`s exactly the th... (by ali zi zeperto)
by zelta
Urgent! Please! How to use void pointer to generate 2D Array?
 
Hi guys! I'm absolutely no idea and frustrating due to I really cannot figure the way to generate a ...
[10 replies] Last: Unless you want the container to have non-homogeneous types, there is ... (by closed account 1yR4jE8b)
Can't use SYSTEM('CLS');
 
Dear guys, SYSTEM('CLS'); I can't use the clear screen function in my code. I have tried eve...
[8 replies] Last: it can be disturbing when the screen is with full of shit. It sure c... (by cnoeval)
sprintf question
 
if I do char b ; sprintf(b,%-5s","A"); cout << b << "X" << endl; I will get A X W...
[4 replies] Last: stringstream is what you want. #include <sstream> std::ostrings... (by PanGalactic)
by w0ot
C++ Calculation solution
 
hi, Was thinking whether will it be able to match employee salary + bonus = total ? Eg, i have 5 emp...
[3 replies] Last: I don't really understand you question. What is the output of your cod... (by hamsterman)
Segmentation fault anyone know why???
 
nothing was ever posted here i don't know what you were talking about
[3 replies] Last: before you need to check if (infileA != NULL) { while (fscan... (by Denis)
by maga
problem with keyboard events
 
hi, i use Visual C++ 2008 and i got a problem.. i want to create a program, which detect user keybo...
[2 replies] Last: Usually, event handles are provided by GUI toolkit, of course, as I t... (by Denis)
using in class
 
1 #include <iostream> 2 3 using namespace std; 4 5 class B { ...
[1 reply] : When class D is derived from class B and both class have same function... (by vijaysaluru)
by seyidi
String convert in Date
 
Hello Everybody, I have a CString and it is like " ......27.12.1999" and I would like to convert st...
[4 replies] Last: you need to pass the right flag (VAR_DATEVALUEONLY, ..) as well. else... (by vijaysaluru)
Decision && Repetition
 
Hello, I am completly new on C++ programming. Fri we got handed our first project with decision, re...
[1 reply] : char givenVal = 'A'; char output = 126 - givenVal - 32; here's a... (by blackcoder41)
Can't Find Error
 
This is a program which takes info from a movie website. The program complies but for some reason wh...
[3 replies] Last: No that's not the problem. It was the while loop. But now I have modif... (by Suzanne)
Sorting an array?
 
Hi guys, I need help sorting a multidimensional array. I am trying to write a code that lets a user...
[9 replies] Last: Here is another way to perform a sort by age. struct SortByAge {... (by jsmith)
Text formatting
 
Hey guys, i am having a problem formatting my text in a file. what i did was to extract some informa...
[3 replies] Last: What does the program that extracts the data from the HTML file look l... (by PanGalactic)
Passing shared_ptr to a function
 
Hi Guys, I have a function, func1 , which manages the data read from the socket. I am planning o...
[6 replies] Last: Actually I wanted to use pointer in recv function. So should I stick... (by kevinchkin)
embedded GUI Framwork
 
Hello all, is there a c++ gui framework which is completely free of dynamic heap allocation and e...
[5 replies] Last: PEG GUI Development Tools ? http://www.swellsoftware.com/ (by closed account z05DSL3A)
by CGBS
Accessing private data members directly or using another private method?
 
Or is it better use another private utility method to access private data members rather than direct...
[11 replies] Last: [quote=PanGalactic]@moorecm: your example has a couple problems. 1) v1... (by moorecm)
randomizing array with strings and appearing only once
 
I'm completely stumped. I can initialize my array and randomize it using the names that I have in my...
[2 replies] Last: Thanks Pan That solved my Problem. Part of this C++ is that I don't k... (by soulshadow)
by carib
Constructor issue
 
Hello all, I have an issue with constructors... I've put up the first code snippet here: ...
[3 replies] Last: Yes, though it is usually referred to as "member-wise copy" and "membe... (by jsmith)
February 2010 Pages: 1... 1314151617... 21
  Archived months: [jan2010] [mar2010]

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