General C++ Programming - August 2010 (Page 7)

How to find to the Max Repeated value in an array?
 
How to find to the Max Repeated value in an array in shortest time. The Value inside the array are random, but the size of the array is fixed. Is there is an...
[3 replies] Last: New version, it is more easy to debug and it's faster #include <al... (by Denis)
by Muneeb
problem with cin
 
int main() { again: // a label int i; cout<<"enter i "<<endl; cin>>i ; if ( cin.fail()) { cin.ignore(256); goto again; // if fail then goto a...
[4 replies] Last: You're right it can. By would you when you have other more contollable... (by mcleano)
I have difficulties with my project!
 
I m having some difficulties with my project and i would appreciate some help. The program is to simulate a simple version of a poker game. The team is requi...
[10 replies] Last: Thanks for the advice!!! :D Some questions from my group is that we... (by LexenZ)
warning: multi-character character constant
 
Hey im just trying to make a simple game to impress my dad because i want to but i get this error "warning: multi-character character constant". Any help? (btw:...
[9 replies] Last: int is an integer. Unless the user inputs the numeric ASCII code for ... (by Disch)
Freelance Programming
 
Hi, I am a very new beginniner, but I was just thinking ahead... Is programming a good career to get into? What would a freelance programmer do? Would he ma...
[4 replies] Last: I would be tempted to do whatever interests you most at college. No po... (by Galik)
Problem to overload base methods in derived ?
 
There are three classes should inherit two overloaded functions here. The problem is that derived classes call one function from second only against the class...
[9 replies] Last: warrant wrote: What C++ class for? warrant wrote: What your soluti... (by LB)
My program don't add up ? Eg 0.5+0.2+0.2+0.1 not equal to 1
 
Problem Solved!!! Thanks for helping guys
[2 replies] Last: Also avoid using goto. main must return int. when posting code, pl... (by ne555)
D3D linker errors
 
Linker errors. They always seem to stop me in my tracks. Any help with this one? I have no idea what to do about it. I've checked the folder, the file is in it....
[2 replies] Last: Huh, it works now. I had to copy the entire Include directory and a li... (by Hilo890)
Design problem
 
I'm trying to figure out how an instant messaging program that I'm writing will work. I don't want the program to simply connect to one computer and then allow ...
[9 replies] Last: It's not the software, it's the hardware to run it on. I won't be able... (by chrisname)
Using C++ dll in C#
 
Hi. I wrote a dll in C++ and I want to use it in C#. I have some questions: 1. Can I declare a global array in dll? if yes, it's syntax should be C++-like ...
[4 replies] Last: Dudester meant that if you use VisualStudio and use C++ .NET to create... (by ainsoph)
_matherr does not get called when built into a DLL
 
I have a basic solution file (.sln) where I was able to reproduce a problem I have been facing recently. It contains 3 projects: 1.) MathTest.lib - containin...
[no replies]
by xabnu
On fread() and arrays, big/little endian integers.
 
A function in my program is intended to read a file for integer values. The values may take up 1 to 4 bytes, as indicated by parameter. My issue is with fread()...
[5 replies] Last: Hi, Glad I helped out in some way and sorry I can't help. Endian... (by rwan)
Memory Compaction....
 
hey, I am basically writing a simple program which asks like 100KB from the system and then, we have to do the memory management of this 100KB. like writing ...
[1 reply] : A highly useful book in general would be The C Programming Language by... (by xabnu)
GUI with SDL or OpenGL?
 
Hello, I'm looking for some opinions and advice. I'm working on learning SDL and OpenGL and using them to build small games. The code is being written from s...
[1 reply] : SDL is easier for 2D applications, which are used for most interfaces.... (by NGen)
A C++ program to convert roman numerals to English ones
 
Hey, everyone. I wrote this C++ program to convert Roman Numerals into Ordinary English ones. It works fine - but I have a few questions. 1. Can it be made mor...
[3 replies] Last: #include<iostream.h> #include<conio.h> char input ; int a... (by qabil)
by thokra
Class design choices. class with static methods only and nested structs?
 
Hi folks! I'm working on an Wavefront OBJ loader written entirely in C++ and try to figure out the best design choices for the involved classes. Specific...
[2 replies] Last: First of all, thank you for your quick response! I'll leave the class ... (by thokra)
How come? error LNK2019
 
I had searched through the Internet and could not find a correct solution to solve my problem. It shows the error: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019...
[3 replies] Last: SDL.h has a macro called main that renames the user's main() to SDL_ma... (by helios)
by Vexer
Writing an LED Matrix display driver
 
I was hoping you guys could give me a few suggestions on how to write a display driver. As I have mentioned in several other posts, I do a lot of work on embedd...
[4 replies] Last: Ok, thanks alot. Are you sure you need such compression? Yes. Th... (by Vexer)
setting value of a constant in the constructor
 
Hi guys. In my program, the value of a variable in a class of mine is defined in the constructor and is never changed afterward. Is there a way places that ...
[8 replies] Last: thank you, thank you, thank you. that worked perfectly. thank ... (by yotama9)
by Null
friendship and inheritance problem
 
class MainClass { friend class Base; protected: int x; public: MainClass(int x) { this->x=x; } // ... }; class ...
[2 replies] Last: OK, thanks. (by Null)
August 2010 Pages: 1... 56789... 20
  Archived months: [jul2010] [sep2010]

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