49,761 Topics
| |
I'm developing a videogame themed hangman game right now for class and I was wondering how to put spaces in the word they were supposed to guess without making it where the player has to input a space (Makes the game impossible to win by the way.) EX. string SecretWord; … | |
I have a small problem with adding some items to my linked list....the code compiles with no errors but when run it doesnt complete...it looks like it is still waiting for some input but i dont know where my loops are going wrong.. [CODE] #include <iostream> using namespace std; struct … | |
Hi all, I m doing one c program for serial communication.In that i want to send request to one hardware module, after receiving my request that h/w send me one frame with predefined format. CPP / C++ / C Code: [code] /* Program SERIALCOMMUNICATION.C is used for PC to PC … | |
hi i am asad and i have given a final semmester project on making a programme of budjet of an office in c++ reply plz plz in two days i have to submit it in 4days | |
Can any1 help me with printing out the student record when the user inputs the information? i wrote a for loop statement to print out the user input and set the width to 60, but it doesn't print it out... [code=cplusplus] #include<iostream> #include<iomanip> using namespace std; struct Record { char … | |
This is the header file for a Recursive Binary Search Tree - I have never used recursion, not sure if I'm, using it right... If you could tell me if this is the correct algorithm for recursion for this code, that would help alot. -- also, I am not sure … | |
I trying to change the edit box (filepath) of the "Save As.." Dialog of the Internet Explorer, on run time. The problem is when using the method: [code] GetDlgItem(hwnd, 0x0470) [/code] The file path control in Windows XP is'0x047' and in Windows 98 is '0x480'. I found this in the … | |
I research into code c++ for multimedia. It's audio and video transmission. I really need some books or sample to understand multimedia operation Could you help me? Thank for advanced. | |
I am working on this assignment, compiler is giving me 2 errors but I couldn't find any mistakes. [CODE]#include<iostream> using std::cout; using std::endl; class opOverload { public: opOverload(); opOverload(int,int); opOverload operator+(opOverload); void show(); private: int sub1; int sub2; };[/CODE] [CODE]#include<iostream> using std::cout; using std::endl; #include"opOverload.h" //default constructor opOverload::opOverload() { } … | |
just a small issue with my program...I am finishing it up and the issue I have is I need to make me decimal points line up...the array is up and perfect just need some assistance in setting up the widths [code=c++] #include <iostream> #include <fstream> #include <iomanip> #include <string> using … | |
hi [B]Is there any function in vc++ do the same thing as the Input (int,int) function in vb?[/B]and is there one ...[B] would someone please tell me what is it?[/B] thanks in advance lahom | |
can someone show me how to code the median if it is an even number [code=c++] #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; void Fill_Array(double Size[], int& count); void Print_Array(double Size[], int count); double Calc_Average(double Size[], int count); void Sort(double Size[], int count); void Swap(double& v1, … | |
am looking for some info not just code for hardware detection in linux like: cpu description (athlon, intell ecc) cpu speed ram # of hd's / size i just need someone to point me to the right direction Thanks | |
2 questions first did you guys get hacked yesterday or something and 2nd: Not sure what I am doing wrong but have an issue with a program...i am to input a file name that i have in my project and it is not doing it right... This is what my … | |
| Hi. The idea is to create a base classed called creature with 3 derived classes called phoenix, giant, and centaur. I've already implemented all the functions, but my code still doesn't compile. I get errors that say [code]"error C2664: 'Phoenix::Phoenix' : cannot convert parameter 1 from 'const char [9]' to … |
Hi, I have made my tic tac toe game that allows two people to play the game. Everything works properly, but now I would like to make the game using a two dimensional array. Here is my original code: //tic tac toe game #include <iostream> using std::cout; using std::endl; using … | |
I have the text file (in1.text) <<<start>20>>everything going fine or not<start>i do not know but I am trying<end><start>Trying is but we can do<startabcdefghijklmnopqrstuvwxyz<end> <<<start>20>>Trying to do things<end><<<start>20>>well try try and try again<end> I have to extract tag <<<start>20>> from file.My code is [code=cplusplus] #include <vector> #include <fstream> #include <sstream> #include … | |
I know the & operator means address-of, but what's it do when in a function prototype? Example: [code=c++]void foo(std::string& str)[/code] or [code=c++]void foo(char& c)[/code] what's the & for in that? | |
Hi guys, I'm not sure if this can be done or not, but I'm writing code for a C++ course at uni and my main starts as follows: [CODE]cout << "Do you want to start a list of shapes? [Y]es or [N]o?" << endl; cin >> c; switch(c){ case 'Y': … | |
Hey, I was just thinking and came across this idea and wanted to know if it could be done, say if the user enters 321, my program would output 123, 450, 054 etc etc Could you please show me how this could be achieved thanks. | |
I make x,o game between two players and it is run but, please i want to know how i make this game between one player and the computer? please i want an urgent reply.. | |
i'm working on the "removesong" function. i need to check the vectors that already have the data separated and stored in them, and i need to see if the entered song title and artist name exist. if they do, i need to replace that same vector location with an empty … | |
Hello to all, I need to know how to read the space bar as a character (or string) rather than as a separator, and I also need to know if the same can be done with the enter key. I am grateful for all contributions. :icon_mrgreen: | |
hello i made this black jack game its showing few bugs and stuff , spent a long :sad: time and i cannot figure out what to do . please help correcting :cry: i would also appeciate a smaller version of this progrm. :surprised thank you :cry: this is for "tc.exe" … | |
Hello, I am trying to load data from a testfile.txt file which contains ten records and 3 fields with numbers into a 2 dimensional table and then print it. I am not sure if I am accesing the data correctly and placing it into the array. I get no output. … | |
Hello: [code=cplusplus] #include <stdio.h> // for printf #include <D:\Programavimas\Naujas Darbas\SQLAPI\include\SQLAPI.h> // main SQLAPI++ header int main(int argc, char* argv[]) { SAConnection con; // create connection object try { // connect to database // in this example it is Oracle, // but can also be Sybase, Informix, DB2 // SQLServer, InterBase, … | |
I'm new to C++ with MFC.. I want to do something like this [code] long longvar = 0; return _T("The value of longvar is " + longvar + "!"); [/code] But of course, is not allowed by C++.. Please! HELP!!! I'd really appreciate it!! | |
Hi I created a code which reads data from user, processes it and write it back in to a file in .csv format so that user can see it in excel. Although the program is running fine from the tc for any set of data, the exe file when i … | |
Hi to all, it been a long time since my last time I write/ask in the forum. I have the problem I hope you can help me: I’m using the guide: [url]http://www.codeproject.com/KB/shell/iesaveas.aspx[/url] (Automated IE SaveAs MHTML) I have the problem when I’m running the code in Windows Vista In the … | |
hey every body, in my project-Emergency room Simulator- i should open file for all patient if he didnt have one, so, when the patient come, i will ask him if he has a file, if yes, i will read his information and add some more in it, if not i … |
The End.