General C++ Programming - August 2011 (Page 26)

solving equations
 
how to solve scientific equations using c+++??is there any predefined function or syntax?? ex:1.54*T^4 + 0.38*T^1.25=250.....this type of equations????
[2 replies] Last: What you need is some version of Newtons method, I dont know if there ... (by holzdolph)
template functions in header (1,2)
 
So I understand that template functions need to be declared and defined in the same file. My question is, in the following code, for example, do I need to bo...
[22 replies] Last: Fine by me. (by m4ster r0shi)
by h9uest
C++ language feature: virtual destructor
 
Hi all: class Base { public: Base(){ cout<<"Constructing Base";} // this is a destructor: ~Base(){ cout<<"Destroying Base";} }; ...
[12 replies] Last: I'm actually glad the the post triggered a heated discussion. @Xander... (by h9uest)
textcolor() and BLINK not working
 
I need to know about two functions which I used in Borland C but i cannot use it in Code::Blocks. 1. textcolor() 2.BLINK can you tell me the replacement of t...
[1 reply] : http://www.google.com/search?btnI=1&q=msdn+SetConsoleTextAttribute S... (by Duthomhas)
creating n number of objects using for loop
 
hi, i'm trying to design a program for book inventory. i've defined funtions such as getdata(), search() and display() in a class. now i have to create objects...
[2 replies] Last: well never used them before so can u show me how?? (by aniscool9)
Mutex tutorials.
 
Hi, can anyone point me in the direction of a simple, Mutex tutorial or example? I've found a few on the net but they're not very verbose. CMutex (M.F.C.)...
[2 replies] Last: Thanks for the link, I'm reading it now :D (by lnk2019)
HELP! Desending order
 
Hello! I have the following code; #pragma endregion // Instance variables Pen^ blackPen; Graphics^ g1; Graphics^ g2; Brush^ blackBrush; ...
[7 replies] Last: this is one exm how can do this : ref class my : public System::Coll... (by ahura24)
Passing Memory by reference to different functions
 
Hey Guys I am new to programming but from what I have done so far I really like it. I had a question about memory that you pass by reference.... more or les...
[2 replies] Last: Don't worry as you do more C/C++ programming you will be able to figur... (by sohguanh)
How can I remove the repeat solution of 24 points game?
 
Hi all, I made a program that can obtain all the solutions of four numbers ranging from 1 to 13, but there are always repeat solutions such as: (3+(3...
[1 reply] : It's not hard to tell (write a function which can tell) that all of th... (by hamsterman)
Double Length
 
I have a double read from an input file. I'm not sure if it is bigger than 10 or less than 10, but I always want it to come out as five characters (including th...
[6 replies] Last: i can't understand what are you mean ! but i think your solution is pr... (by ahura24)
new itoa function ?
 
itoa function is not defined in cygwin so i need to define one manually listed below"found in net" but I have an error saying 'can not convert std:basic-string...
[7 replies] Last: For the second solution, try ifstream myfile ( filename.c_str() ); . ... (by shacktar)
Unicode with std::exception
 
I would like to use Unicode with the std::exception class (deriving from it). The problem is that the what() message is char*, not wchar_t*. I don't usually wor...
[3 replies] Last: Either encode the string in UTF-8, or cast a wchar_t * to char * and m... (by helios)
odd or even integers
 
I need to write a program that prints out all the odd or even integers between any two integers (inclusive) entered by the user. The user should be able to sele...
[11 replies] Last: or, for the lazy typer... for(; int1 <= int2; int1 += 2) ... (by andywestken)
by bkelly
opengl function CreateWindowEx exits
 
Environment: Windows 7, 64 bit, Visual Studio, Console application, C++ I am following the openglbook.com and this web page: http://openglbook.com/the-book/ch...
[3 replies] Last: The problem is resolved. My video adapter was an on the motherboard b... (by bkelly)
Reading from a binary file.
 
Hello all I'm trying to read information from a binary file (employees.bin), into a struct. However, I'm unsure on why my data is not being read correctly. ...
[15 replies] Last: :-) The advantage of mistakes is that they help to "burn" facts int... (by andywestken)
Problem inserting into vector and map of class with elements
 
(main) Quashtest.cpp http://codepad.org/dvPdYL9C Quash.cpp http://codepad.org/cnuEuAeg Quash.h http://codepad.org/q0Mjhk9u Hashtable.cpp http://codepad...
[1 reply] : bump? (by MasterShihoChief)
by madjas
help please in stack
 
im trying to add more memory space to this stack code using this: temp = new(nothrow) StackElement[myCapacity + 10]; for (int i = 0; i < myCapacity; i++) ...
[4 replies] Last: tanks.... that's for learning purposes!!!! im just trying to swap to a... (by madjas)
not your typical interview question
 
I know this is directly c++ related, but I figured since it is OOP related, I would ask anyway. I am looking for some UML practice problems, not just exam mu...
[1 reply] : Here you can find UML based questions about desing patterns: http://ho... (by agile)
What is the equivalent while loop for the code below?
 
int count = 1; for ( ; ; count++) if (count < 3) cout << count; else break; 12 this is what i got While(int count = 1) If (count < 3){ ...
[4 replies] Last: I'm aware of that. You already answered his question, my problem is wi... (by Athar)
counting letters
 
need help in understanding what this code does frequencyArray[tolower(ch - 'a')].frequency++; it is part of a while/if statement while (ch != '.'){ ...
[5 replies] Last: Thank you for the explination hamsterman i know get what it does. (by archie0H)
August 2011 Pages: 1... 242526272829
  Archived months: [jul2011] [sep2011]

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