49,761 Topics

Member Avatar for
Member Avatar for shahab.burki

Hi, I make a try again on Link List in Visual C++ but got an error. The code is looking right but when I debugged the source, then I realize that when the LINKLIST constructor is called then the two Node type pointers *start and *last creates trouble. Please do …

Member Avatar for computercobra
0
273
Member Avatar for emiller7

This is not a complete program, I have comments to omit the incomplete portions. After "Player One" enters a row (see lines 54-5), the program ends. It outputs the "Enter a column" and the board and ends. I don't see why. Any help would be greatly appreciated! (Output after runtime …

Member Avatar for emiller7
0
80
Member Avatar for JAGgededgeOB172

Hi all, I'm just asking for help for my linked list sort function, I'm not including my entire program, as I'm sure my problem lies in my sort. I need to sort the linked list by rearranging the pointers, I was fairly sure I got the function correct. When I …

Member Avatar for JAGgededgeOB172
0
102
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
170
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
181
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
227

The End.