49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
[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 … | |
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 … | |
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& … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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) | |
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 … | |
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 … | |
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 … | |
hello, can somebody tell me where i can download a free c++ video tutorial.....i really need it badly | |
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. … | |
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++) { … | |
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? | |
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 … | |
how do i find methods in a .exe so i can create a dll injection that uses those methods? | |
Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave | |
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 … | |
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 … | |
error correction codes how to write a progam for error correction codes. | |
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 … | |
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 … | |
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 … |
The End.