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

by Thanz
please help on urgent basis
 
Please check the following program why it's giving the 2nd largest value wrong.If I enter 5 values 140,125,150,170 n 160 respectively it shows the largest valu...
[8 replies] Last: whitenite1 This Program is working well now tyx. (by Thanz)
Help Please!
 
Hey I'm kinda new a C++. I have an assignment due tomorrow... and I don't even know how to start. Could someone please help. here is my assignment. Write a ...
[1 reply] : Hm? you solved that already. Why do you post that assignment again? (by coder777)
by Docido
Why does he use CDECL
 
Hello everyone. Not too long ago I got started learning to program in windows. The book I am learning from had a program that made a message box which displayed...
[2 replies] Last: ah ok, thanks for the explanation. (by Docido)
So much to compile, so little time...
 
Hello. I haven't quite mastered dealing with compiling lots of functions that all call each other in sophisticated fashions. Let's say that I have a few fun...
[4 replies] Last: This makes it a little clearer. You can have as many functions as yo... (by Stewbond)
My frustrating experience with C++ (please help).
 
I got a very frustrating experience with C++, realized it's not the tool I'm looking for but now I'm left without knowing what that tool is. So I came here to a...
[8 replies] Last: I guess the moral of the lesson is there is no *THE* programming lan... (by sohguanh)
can someone help me with this
 
#include <stdio.h> #include <conio.h> int main() { int a,k,t; printf("Insert limited number="); scanf("%d",&t); printf("Insert number="); scanf("%d...
[no replies]
by Xuzion
Need Help making string uppercase
 
This is the code I have so far but for some reason, it doesn't output the inputted name uppercase. #include <iostream> #include <string> using namespac...
[1 reply] : Of course it doesn't. Look at it carefully again. (by Athar)
by tmso
Simple B+ Tree Help
 
Hi, I'm given a B+ Tree that has: M = 3 = Number of children L = 2 = Number of int each node holds We are to insert a series of numbers, and match this o...
[no replies]
class Queue with customers
 
template < class DT > void Queue<DT>:: enqueue ( const DT &newDataItem ) throw ( logic_error ) // Inserts newElement at the rear of a queue. { ...
[7 replies] Last: Never mind I keep making simple mistakes don't reply to the class thin... (by ledzepdoors1)
Loop to read through .txt file??
 
Hey guys I'm trying to read the data in a text file using a loop. The text file is has 2 unique columns - a bank account id and the balance for each account. Ho...
[2 replies] Last: Such as request would involve structures. You would use the structure ... (by closed account zb0S216C)
"undefined reference to"
 
thanks guys! when trying to build these files im getting "undefined reference to" errors. heres a screen shot of what i mean..http://imageshack.us/photo/my-i...
[3 replies] Last: Don't #include source modules. Add your source module to your projec... (by closed account zb0S216C)
Callbacks
 
Hello ladies & gentlemen :) I'm currently developing a GUI system for the SFML library. Consequently, I will need to provide a way to bind functions to certa...
[3 replies] Last: Wow, I could not have expected a better answer to this question from m... (by Computergeek01)
Using variable from main in class
 
How do you access a variable that has it's assignment in main accessible to other classes without passing the value as a parameter? For example, if I want ...
[1 reply] : You would have a data member in side the class that you could assign t... (by Computergeek01)
by ChrisH
struct type conversion
 
A current project using multiple libraries has at least two definitions of essentially the same struct struct CvPoint { int x, y; }; struct Vector2i...
[5 replies] Last: Both are unsafe. The only safe way to do it would be to convert by co... (by Disch)
Game of Life (I know its been done)
 
Hi, I'm in a beginning c++ programing class, and I'm having trouble getting my game of life program to work. It works on some cases, but not everything and I'm...
[no replies]
Need general advice.
 
hey, I recently started learning c++, finished some tutorials and I feel I have some kind of understanding of c++ basics, and now I'm stuck. I was wondering if ...
[8 replies] Last: 1. Make a Calculator That Does All Operations (Multiplication, Divisio... (by Code Assassin)
Override template function with polymorphic one
 
Hi there! If I have template<class T> TalkyBuffer& operator<<(T const &object) { // Template ... } TalkyBuffer& operator<<(TalkySerialisable const &object);...
[no replies]
LNK errors
 
Hello, I am using multiple files and getting LNK errors. here is the error list: 1>driver.obj : error LNK2019: unresolved external symbol "void __cdecl good...
[1 reply] : The linker cannot find an object (compiled file) containing the follow... (by Moschops)
Age- year
 
can anyone help me with this? please its urgent :(( cout << "Mr. "<< Name << " you were born on year " << Age - Year; I had problems on the last part...
[3 replies] Last: const char * const pszCurrentYear = 2011; int main() { int iYear =... (by ceruleus)
by masgas
New Object every 15 seconds
 
Hello everyone! thank you in advance for your help. I am starting my first game in C++ using the Allegro library. I have created an object which I want to a...
[2 replies] Last: Thank you. I realize now that the name leads to confusion and will ta... (by masgas)
October 2011 Pages: 1... 2021222324... 36
  Archived months: [sep2011] [nov2011]

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