General C++ Programming - December 2011 (Page 27)

Hey guys i need help with this!
 
Hi guys its kind of long but i've done most of it, i just need help i have functions and i need to pass the returns to other functions for the problem. Just as ...
[4 replies] Last: If you choose to pass the parameters by reference (&), the functions m... (by johnbob)
by GAD
Auto-start
 
Can I run a program on system background? (Suppose I have made a timer & I want it to start when computer starts & end when pc is shut down ,automatically)
[1 reply] : There is a dedicated API to get time interval from when computer boots... (by modoran)
Sorting a vector
 
Hi all, I'm having some trouble with sorting a vector that I have. That is to say, I've managed to sort it using std::sort, but I actually need it to be sort...
[6 replies] Last: Maybe it's just the technique i'm using that's wrong then, but the fil... (by ahoysailor)
by LB
Possible to both initialize and call a function pointer?
 
Just out of curiosity, is it possible to initialize a temporary function pointer and call it in one go? void (*)(int, short)(&SomeFunc)(3, 2); Or would I hav...
[2 replies] Last: Sure you can, you forgot some parentheses though Typedef version #i... (by Cubbi)
Help me with my ASSIGNMENT
 
UNI Quality Assurance department has decided to do Teaching & Learning Evaluation for every lecturer in UNI. In this evaluation, each student will have to key i...
[14 replies] Last: post your code, don't worry. we're not judges of Supreme Court! if you... (by Vins3Xtreme)
Good Style Sources
 
I'm looking for something to read on C++ style One of the top results on google is http://geosoft.no/development/cppstyle.html but I came accross this: "In ge...
[3 replies] Last: A great modern C++ style guide is the book "C++ Coding Standards: 101 ... (by Cubbi)
operator overloading problem (1,2)
 
i know its a big thing to look at whats wrong with my assignment or addition operator and here is the promblem In function 'int main()':| no match for 'oper...
[25 replies] Last: Hellooo mahinkhan...! yaar apni assignments to khud solve kia kro..... (by mudassar24)
Need help on displaying 4.0 instead of just 4
 
How do you output the decimals instead of the whole number? //Project last // 7 Decemeber 2011 // Demonstrates the use of an array of student structures ...
[1 reply] : http://www.cplusplus.com/reference/iostream/manipulators/fixed/ http:/... (by johnbob)
Poker Hand Eval Problem
 
I'm working on getting my Poker to evaluate the player hand. I can get the Flush and the jack or better pair to work but am running into problems figuring out h...
[4 replies] Last: Im sorting by value first so I can check. Its not done but this is my ... (by gardinerca)
by Phiru
What is this error???
 
I added a dialog and made a class of it, and complied my project. An error msg was shown up like blow. 1>c:\winddk\3790.1830\inc\wxp\comip.h(142): error...
[3 replies] Last: I forgave this problem. I just reloaded backup project file. Thanks ... (by Phiru)
linear search
 
Okay, now i've read in my data into an array and passed it properly to my display function I'm trying to search each word in my array to determine if that word ...
[1 reply] : int search (char array , int size, char key ) // kbw: If array is a ... (by kbw)
Open source library to save path
 
Hi, I'm trying to build a cleaning robot. (like 'Roomba') Right now, I'm programming the robot's brain. The problem I'm facing with, is how to save the passe...
[7 replies] Last: OK, It's seems, that I will use cgrid, as my library. This library con... (by aviplot)
by Hoc Vo
Input/output from file
 
Can anyone help me to tell what's wrong with this input output from binary file? template <class T> void RubberArray<T>::write ( ostream& fileOut ) { ...
[1 reply] : You haven;t posted all the code, but you don't seem to allocate _ra be... (by kbw)
by soranz
string.compare() from .txt file
 
Hi ! I am trying to compare two string which I know have to be identical but they are never equal...'strName' is read from a text file... if(strName.comp...
[9 replies] Last: Gosh! I was just scratching my head about that :p OK. nowwww it works... (by soranz)
Can't create new project
 
Every time i try to create a new project in Visual Studio it gives me an error saying "The project file cannot be loaded. Root element is missing. C:\Users\Nima...
[2 replies] Last: I already tried that :( (by Painguy)
Inconsistent results with find on map
 
I am trying to create a map with a custom key - I added some test code, after adding few records, I am able to dump the container contents. For some reason the ...
[2 replies] Last: Thanks so much for the response. I figured out the problem, wish to ... (by topgun007)
Help in combination program
 
Hi I just started learning C++ program last week and I was trying to figure out the C++ program code for a combination program. I did this and my logic seem to ...
[3 replies] Last: Thank you so much guys!! (by bluegenep)
Insert a C++ vector into Oracle
 
All, I am still a newbie to C++, but am forging ahead as best I can. I now have an issue with inserting the contents of a C++ vector into Oracle. I have trie...
[no replies]
by Oneday
Clear console screen
 
Hi all! I want to make a console game in C++ so I'm trying some stuff out with SetConsoleCursorPosition(); Now I've this test script to show the problem: ...
[8 replies] Last: http://www.cplusplus.com/articles/4z18T05o/#Windows (by Duthomhas)
NEED HELP WITH A PROGRAM! I will sacrafice my first born to you if you can solve this
 
I need help finishing a program. I have been working on getting this working properly for the last 6 hours, to no avail. The idea is that the program will take ...
[4 replies] Last: Seeing as rocketboy9000 has already given you the answer, the test for... (by mmay)
December 2011 Pages: 1... 2526272829... 39
  Archived months: [nov2011] [jan2012]

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