General C++ Programming - November 2011 (Page 22)

get information from listboxes(need help)
 
hi I have a list box that it has a text in itself and I need to get every letter in one arrey for example c . for example: the text is: hellow world ---...
[1 reply] : are you doing it in simple C++ or are you using VC++ for coding as you... (by bluecoder)
by Wings
the second part of the blackjack program
 
//when the user didnt want one more card if((res==2)||(res1==2)||(res2==2)||(tou3<=21)) { //Dealer didnt need any card //compare with non-added us...
[1 reply] : what are you trying to ask (by bluecoder)
by jackie
Loop Exit
 
OK I am Trying to Get this to Work, But the Problem i am having is that the N_STUDENT Loop Works fine, and the N_MODULE Loop only seems to Loop Once, if i ente...
[4 replies] Last: I dont know if this work myFile.write (reinterpret_cast <c... (by bluecoder)
by Bojan
C style type casting impact on program perf.
 
Hi, I am wondering if a C style type casting has an impact on program performance or anything? I know casting is done at compile time and thus it shou...
[6 replies] Last: thanks helios .. that is the thing to remember . thanks a lot (by bluecoder)
Whats next?
 
Im fairly new to c++ and ive learnt conditional branches and now ive learnt strings. What would you guys recommend i do next?
[2 replies] Last: there is lot more to learn .. try pointers and reference and class and... (by bluecoder)
simple pointers question
 
Hello, I have a class with some member fields that are pointers. I'm trying to set the pointer member fields with mutators (setters) but I'm getting memory acc...
[5 replies] Last: They're definitely not uninitialized, I did actually noticed I'd set t... (by codejunky99)
How could I manipulate the "Additional manipulate Directories" of visual C++ by C++?
 
Sometimes, when I want to move the project from path A:/B/C to path A:B/C/D/E, the relative path of the project have to be changed. I think I could write a sma...
[1 reply] : where are you stuck .( what have you written ?) ? (by bluecoder)
plz explain the code
 
hi actually i have seen this code in a program can any one plz explain me wht is happening in this code......i am new to c programing and i am still learning......
[3 replies] Last: one more quick question , Why is far pointer used ? (by bluecoder)
by GAD
Running program in VC++
 
I am using Microsoft Visual C++ 2005 for the very first time. I have written a small code.But I am not getting how to compile & run it.there is no direct optio...
[4 replies] Last: if you are writing the simple c , or c++ program . you can select the... (by bluecoder)
Wrong CODE?
 
What is wrong with this code i always get an error while debugging it in visual c++ it can't read question 4 PLEASE HELP #include <iostream> using namespa...
[5 replies] Last: too much if--else , u can fix it more simple (by googleking)
Puzzle Solving
 
Hi, I have to write a program which will solve the puzzle. THe question is as follow. Any help would be appreciated. Write a C++ program which solves...
[no replies]
loop to find the sum
 
I want to ask the user to input a number . After that ,the programme ask if he want to input a number again .i know how to make the loop. However, i don"t under...
[2 replies] Last: @youichi I think you can do it like that: while (cin >> number) { /... (by cdlang)
reinterpret_cast?
 
hi, is it possible to use reinterpret_cast operator on "non class" objects both pointers and non-pointers. if so what kind of operations may be useful to do? I...
[1 reply] : reinterpret_cast is just like the casts found in C language, so yes, i... (by modoran)
const class "strange behavior"???
 
consider folowing code: const class x { public: static float s; }; float x::s = 4.00999f; int main() { x object; cout << x.s; return 0; } that compiles ...
[4 replies] Last: thanks, so it look that MSVC++ has some compatibility issuses with C# (by codekiddy)
by ivansl
char or string issues
 
My code is shown below char buffer 10000] while(x != 1) { buffer =buffer[x-1]; x--; Fout_buffer = fo...
[1 reply] : If you have an array, "char foo ", "foo" is a char* to it's first elem... (by hamsterman)
by Wings
I cant run it as a blackjack game
 
Well... this is the blackjack game i have to turn it tomorrow.... but it still not finish yet!!! can someone plz tell me how to do the suit!!! and the J Q an...
[no replies]
by Giri89
Defining a variable in a loop
 
Hi Guys, Does defining a variable in a loop cause issues when you refer to that variable outside of the loop? In the following code, it appears to... T...
[3 replies] Last: Sorry, missed this! You could put it inside a loop and keep asking for... (by WilliamW1979)
by Gldnbr
Program to calculate compounded interest
 
I'm trying to create a program that will find the final balance using interest rates. For example, if a person has an initial balance of $2.19 and its interest ...
[16 replies] Last: Am I missing some vital information here? Like all the details of the ... (by jim80y)
If Statement with Three Strings?
 
Ok, I am somewhat new to C++ but I should be getting by now. I am having a syntax problem (I think). I am getting input from a file located in the same director...
[3 replies] Last: Thank you Jim80y, God bless! (by oudavid1)
Objective array question.
 
So I have this array: int alpha My question is, how can I output alpha to print five components per line? I'm brain farting over here. Thanks
[2 replies] Last: Thank you. (by Ralphus629)
November 2011 Pages: 1... 2021222324... 47
  Archived months: [oct2011] [dec2011]

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