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 searched through this forum and i found this topic which is relate...
[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 functionally well. I hope u guys can help me for this. Thank you...
[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`t works with flaot numbers.can somebody help me?
[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 2D array by using void pointer. For example, I was given ...
[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 everything what i could, but it doesn't work at all. I inclu...
[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 With 4 spaces place holder for the output. How can I create a...
[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 employees that has salary AND bonus more than 1000, the final o...
[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 keyboard ( also all combination with ctrl, alt and shift ) or mou...
[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 { 6 public: 7 void f(char) { 8 cou...
[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 string (27.12.1999) in Date , because I need 27.12.1999 for ...
[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, repetition. I have no idea where to even start, and I am kind...
[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 when executing, the search function goes into an infinite loop...
[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 put in several pieces of information and then uses a specif...
[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 information from a html file and i would like to format it. Current...
[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 on taking a shared pointer to point to the received data. Now...
[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 exceptions? Thx|regards,
[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 directly accessing the variables? Just wondering if it's one of th...
[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 array, but I cannot error check it so that it appears only ...
[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: class Animal { private: char _name ; public: ...
[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.