General C++ Programming - March 2011 (Page 11)

Getting .exe to run on other computers.
 
This question has been asked many times, but all the answers I found on Google haven't helped. I compiled and built a program I wrote in Visual Studio 2010 in R...
[8 replies] Last: It works now. Thanks. (by packetpirate)
pure virtual function
 
#include <iostream> 2 3 using namespace std; 4 5 6 class base 7 { 8 protected: 9 base(int i){val = i;cout<<"base"<<endl;} ...
[5 replies] Last: my reply to fun2code: show() is virtual in all derived classes as in l... (by jackel7777)
Date arithmetic
 
Pls can someone help me with guideline on how to write a program to calculate date arithmetic (e.g. no. of days b/w Jan 6, 1990 and August 3, 1992. Am just a be...
[2 replies] Last: Thanks man. I appreciate it a lot. I'll just try it out now (by Emenyke)
Method that returns Object pointer
 
I have to use this header and I'm pretty sure it means that it returns a pointer to the object? Here is the header for the method I have to write. MenuItem ...
[1 reply] : // MenuItem Menu::*findItem(string code) I am a newbie, so just try: M... (by vencent)
by codist
tearing in opengl
 
My OpenGL application tears. I have no idea how to fix this, I have tried a lot of stuff. http://www.cplusplus.com/forum/general/38218/ - a thread I put up ear...
[3 replies] Last: I'm using the Win32 ways of doing things. this is my render function: ... (by codist)
overwrite text file data?
 
Can someone tell me how do I overwrite the first data on the text file? What function do I have to use? I have tried to use the ios::beg but there was an error ...
[5 replies] Last: Basically that is the idea. By the way, I find a way to overwrite the ... (by student 123)
Simple stream cipher - key generation
 
So I have a simple (read not very effective) "stream cipher" program, with the encipher function defined as follows: void encipher( const char* key, const c...
[6 replies] Last: Indeed - thanks for pointing that out. Previously I had been aware tha... (by closed account Lv0f92yv)
C++ book for Windows programming for a newbie.
 
Hi. I'd like to ask for a name of a nice book for a beginner. I'd like to learn C++ windows-based (not console) programming, and later on - game programming. W...
[1 reply] : 1. wrong forum 2. there's already topic(s) on this, e.g http://www.cpl... (by matsom)
soundex function question
 
This is my soundex code. It works great. My question is... In the soundexerize function, I create the soundex code for the name but also pad the name with ...
[4 replies] Last: Oh, thank you. Now that you point it out, stopping the loop at 4 seem... (by closed account zwA4jE8b)
by ty98
here is a motly color project
 
this is the best C++ project that I'v ever made. #include <iostream> int main() { while(true) { system("Color 1A"); std::cout << "\t\t\t Hello...
[3 replies] Last: what do you meen hanst99 ? ok onur then it is a good project. (by ty98)
function implementation outside the class
 
I have a class header with function declarations and want to implement these functions in a cpp file: class User { private: /* username is unique */ ...
[17 replies] Last: ok i will do it ultifinitus thanks for your reminder... (by zulfikar)
by gabyam
For loop error
 
I have to write a program in which you enter 20 characters and the program counts how many times each vowell is introduced. This is what I have: #incluof <std...
[2 replies] Last: And also, don't fflush() input streams! You get undefined behavior. (by firedraco)
Need help writing one member function in this code
 
Here is my code so far. I will bold the member function I need help with. If anyone knows what to write it would be greatly appreciated. Here are the instructio...
[4 replies] Last: I would suggest using a map of morse code "characters" to alphabetical... (by Zhuge)
Windows 7
 
i have installed visual studio c++ express on windows 7 , when i try to compile any thing it says to me " Visual Studio isn't installed correctly please re-inst...
[5 replies] Last: I have no re-installed it and it is working (by superman)
if statement do not work?
 
Why does my if statement do not work? void student::writeLongRecord_2() //add another student data { int i; float mark; int long number; ...
[7 replies] Last: thanks for replying guys. I already sorted out my problem. Many thank ... (by student 123)
Please help me!
 
I'm in class right now and I know I have a problem with my program because it won't build. Please let me know what my errors are. Here is the program: #inclu...
[1 reply] : 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 91; 92; 93; 94; 95; 96; 97; 98; 99; 1... (by ModShop)
Virtual String Function problem
 
So here is my very long (I apologize) list of classes. There are two things I need to do 1. Create the virtual string function whatami() for the Person class...
[7 replies] Last: All I really had to do was add virtual string whatami(); to e... (by f00tiefan)
Assistance with Code Please
 
Hi Everyone I am new to this coding and I am strugeling with a code that I am testing. Can somebody please review it and advise me what the problem mights b...
[2 replies] Last: Genius, thanks it is working. (by DeviantSpy)
Can someone help me
 
In a past life I could have knocked this out, but I've forgotten about 90 ercent of my c++ from college. I am trying to read lines, which are file names, from ...
[4 replies] Last: Thank you for your quick response! I will make that change. Hopefull... (by nmiltner)
3x3 by 3x2 Matrix Multiplication?
 
Hey guys, I'm working on a little project and I need to do a 3x3 by a 3x2 (3 rows, 2 columns) matrix. I've worked out that I'm going to need 3 for loops, bu...
[5 replies] Last: Oh crap I forgot you're doing the dot product. (by benjelly)
March 2011 Pages: 1... 910111213... 31
  Archived months: [feb2011] [apr2011]

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