49,758 Topics

Member Avatar for
Member Avatar for r0flc0pter

Hello there, I'm creating kind of a GUI system, and I found myself in trouble when inheriting my base class in my other classes. This is the gui header: [code] #ifndef _GUI_H #define _GUI_H #define WIN32_MEAN_AND_LEAN #include <windows.h> #include <vector> #include <string> #define GUI_VERSION 1.0.0.1 #define TRUE 1 #define FALSE …

Member Avatar for ArkM
0
151
Member Avatar for Acis

Ok, im making a Text Based RPG and well just look at my problem. [CODE=C++]#include "Library.h" using namespace std; //Constant Integers //Functions void StartGame(); void LoadGame(); void Berkshire(); void Game_Menu(); //Integers int Gold = 0; int Health = 20; int Energy = 20; int Mana = 10; int numItems = …

Member Avatar for nucleon
0
72
Member Avatar for blahblah619

[I]Modify the program so that it reads input temperatures from a text file (named temps.txt) instead of the keyboard. The file should allow one temperature per line. The program should end when the end of the file is reached. Modify the screen output statement so that it includes the input …

Member Avatar for vmanes
0
103
Member Avatar for Ellisande

As part of a project I'm working on, I need to develop a program that can take in a sentence and convert it somehow (I'm choosing to convert into Pig Latin). At first I thought this was going to be a piece of cake, until I realized that after [code]#include …

Member Avatar for Ellisande
0
116
Member Avatar for molomoss

How would i go about converting this from dynamic to static, all me attempts so far have failed. [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; struct Student { string name; int exam; int assignment; }; string readLine(istream& fin); string getPassOrFailString(int m1, int m2); Student* loadStudents(string filename, int& …

Member Avatar for Narue
0
199
Member Avatar for fx7202

greetings everyone, i seem to be having an issue with a function that has a reference n a value to do a loop. the nature of the prog, is to roll a dice (n) times n then count the number of time srand rolls an even num. for the most …

Member Avatar for fx7202
0
117
Member Avatar for emiller7

Compiler errors: (In main) Line 9:cannot convert char (*)[3] to char* for argument 1 to void showboard(char*, int, int) (in showBoard) Lines 16, 17, 21, 22, 26, 27:invalid types char[int] for array subscript I don't understand these errors. I am trying to make a tic tac toe game, I have …

Member Avatar for emiller7
0
3K
Member Avatar for Spanki

hy can anyone help me out with this code plz [CODE] #include <iostream> //Declarations #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; double SaleSlcdDep(); double SaleALLDep(); double AveSaleALLDep(); double HighestSaleALLDep(); double alphatest1(); double alphatest2(); double menu(); int main() { double sales[12]; // Sales Input for the 12 departments double …

Member Avatar for ddanbe
0
91
Member Avatar for eviocg

This progran is a frontend for the windows "taskkill". If i type the output directly into a command window, it works, but it will only kill taskmgr.exe from this app. Any thoughts appreciated. [CODE] #include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) { string computer,domain_user,password,imagename,command,force; int …

Member Avatar for mitrmkar
0
116
Member Avatar for sid78669

For the last 3 days I have been trying to compile m assingment on visual studio 2008. Its giving me error: [QUOTE]Error 2 error C2143: syntax error : missing ';' before 'using' screen.cpp 27 Assignment_2[/QUOTE] This is the same error its giving me in my main: [QUOTE]Error 1 error C2143: …

Member Avatar for sid78669
0
226
Member Avatar for replic

hi everyone, how can i react on a plugged in usb drive? (e.g. show a messagebox or whatever when a usb drive is plugged in) The whole thing needs to run under windows only (xp and maybe vista)

Member Avatar for William Hemsworth
0
78
Member Avatar for Mike22

Hi, I am new to programming with Visual C++ and have been trying to get a simple program running - and having difficulties. What I want to write is a program which: - Can download an XML file from the web - Parse it to retrieve information held in specific …

Member Avatar for marco93
0
81
Member Avatar for sophia77

Hi everyone, I am new to this programming and I was wondering if someone, well anyone can help me. I have this assignment due in a few days and I don't know where to start. The challenge is: Evaluate if the word or sentence entered by the user is a …

Member Avatar for sophia77
0
181
Member Avatar for DCvonB

Hi, I would appreciate any help with the problem I am having. I am trying to read text from a file (currently just 'yes' or 'no') and print the out the results in this format: 1 yes 2 no 3 no etc. I have been able to write a some …

Member Avatar for Ancient Dragon
0
169
Member Avatar for shevy24

hello, can somebody tell me where i can download a free c++ video tutorial.....i really need it badly

Member Avatar for Spanki
0
209
Member Avatar for delifion

Hi, I'm trying to work on a program to reverse string input upper case to lower case vice versa. I got that part working but the second thing is I have to count the number of graphical character from user input. I'm a bit confused about using pointer as well. …

Member Avatar for MrSpigot
0
107
Member Avatar for saimaz

greetings everyone, i try to use ProgressBar from other class, i think the solve would be to create TForm1 object. But i dont know how to do it. [ICODE] void Array_class::mix(int a) { int b,c,d; //Memo1->Lines->Add("Array is now mixing...."); TForm1 obj; obj.ProgressBar1->Position = 0; obj.ProgressBar1->Max = (a); for(int i=0;i<a;i++) { …

0
51
Member Avatar for Acis

Ok im making a Text based RPG and its going to take quite a while to be able to beat the game. So i want to allow the person to save and load games, how can i make this happen?

Member Avatar for dmanw100
0
91
Member Avatar for sabian4k

Hey guys i need help. I need to write a program that computes all of the following statistics for a file and outputs the statistics to both the screen and to another file: the total number of occurrences of characters in the file, the total number of nonwhitespace characters in …

Member Avatar for sabian4k
0
300
Member Avatar for nschessnerd

how do i find methods in a .exe so i can create a dll injection that uses those methods?

Member Avatar for nschessnerd
0
77
Member Avatar for daviddoria

Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave

Member Avatar for Narue
0
100
Member Avatar for toadzky

I like really clean code so I want to pull all of the common includes into a separate file and then include that single file in all my other files. Also makes it easier if I start using a new or different library cuz I only have to change it …

Member Avatar for toadzky
0
180
Member Avatar for billgone

hi everyone..ok here's my problem i have this program [CODE] #include <iostream> #include <string> using namespace std; int main () { string s1; string s2; string s3; cout<<"Enter first string: "; getline(cin, s1); cout<<"Enter second string (to remove): "; getline(cin, s2); int indexhere = s1.find(s2); //the starting index (zero-based) int …

Member Avatar for Ancient Dragon
0
88
Member Avatar for dharanidaran
Member Avatar for Ancient Dragon
0
133
Member Avatar for moveshhh

I have a binary tree with find and print functions. Only problem is I have no idea how to copy a binary tree, while overloading the = operator. Any help in the right direction is appreciated. My code is below. Only for the header file though. Didn't know if the …

0
52
Member Avatar for carlosrowlett

Hey guys, I m making a program that selects questions from an array numbered 1-40. I put in a random functions so the questions are chosen randomly. But i want to have it so that theirs no duplication in the questions like if the number is already chosen skip and …

Member Avatar for nucleon
0
82
Member Avatar for losh177

Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the …

Member Avatar for losh177
0
225
Member Avatar for Robtyketto

Greetings, I study C++ at college using one of the earliest versions of Code::Blocks (version 1.??). If I write any programs (all build and run succesfully and use the same GNU C compiler) from home with the latest version (8.02) and open the project and compile/run with earlier version used …

Member Avatar for kenji
0
171
Member Avatar for Icebone1000

The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By …

Member Avatar for nucleon
0
205
Member Avatar for eviocg

how can i pass a variable to command? ex.. [CODE] #include <iostream> using namespace std; int main(int argc, char *argv[]) { string ip cout << "Enter an ip"; cin >> ip; system("ping ip"); //// this is the problem. how do i enter the value of "ip" here? system("PAUSE"); return EXIT_SUCCESS; …

Member Avatar for eviocg
0
91

The End.