49,761 Topics

Member Avatar for
Member Avatar for hema.adel3

iam need to complete this game with ( jumping function - hero - enemy - the fire of enemy ) please ... iam really need your help ‪#‎include‬<iostream> #include <conio.h> using namespace std; void Disp(char X[][80]) { system("cls"); for (int r=0; r<24; r++) { for (int c=0; c<80; c++) { …

Member Avatar for David W
0
4K
Member Avatar for whitebloodcell

I am trying to create a tennis tournament simulator. There are 128 players in the tournament, and 32 seeds. I have a vector filled with 'Player' objects named 'Players'. Each 'Player' object has three member variables, Strength, Ranking, and ATPPoints. When the vector 'Players' is first declared, the default constructor …

Member Avatar for David W
0
275
Member Avatar for Dan_3

there is string of 0 and 1. The goal is to sort it. 2 pairs can be switched on each step. For example the mentioned above string can be sorted in following steps: 0. 00010111010 1. 00001111100 2. 00000011111 help please....

Member Avatar for Hiroshe
0
304
Member Avatar for whitebloodcell

I am trying to install the boost libraries for a project I am working on. I extracted the archive to C:\boost_1_55_0, opened a command window and typed bootstrap.bat mingw as indicated on this site. In response, I receive the error message "\MikTeX was unexpected at this time". The only solution …

0
106
Member Avatar for sami9356

Can we create an array of objects for a class having default constructor?. Justify your answer.

Member Avatar for tapananand
0
704
Member Avatar for Ploutarchos

Hello Guys Well I'm working on a lottery game and I would like to ask something because I don't know how to test the sequence of numbers before to print out!! All I need is to check the series of numbers in the arrays before the program prints out a …

Member Avatar for Ploutarchos
0
2K
Member Avatar for yaldoo

Hey people! Can you please help me with this problem? I am so stuck on it and my instructor gave me hints on what I should do. No arrays or anything crazy yet, I'm still a beginer. 1.) Write a program that will compute average word length (average number of …

Member Avatar for yaldoo
0
4K
Member Avatar for piikun

we were given a task to create a for loop with where the user gives a number and became this output and we dont know if there is a sequence or an algorithm to it like fibonacci anyone recognize this pattern? input: 3 0|2 --- 0|2 Nice window. Thanks! input: …

Member Avatar for David W
0
149
Member Avatar for Learner010

hello i decide to first learn about file streams before learning oop concepts in c++. want to read single digit from the textfile. actually text file contains numbers from 0 to 9. And these are 9 in a row and 3 row are there. you can think of its content …

Member Avatar for NathanOliver
0
379
Member Avatar for huseyinnkadir

Detect keyloggers and delete Keyloggers used code : GetAsyncKeyState function

0
87
Member Avatar for tapananand

I know that in case of virtual inheritance, a vptr is needed to access the base class members, so I looked at a program that involved virtual inheritance but I was amazed at the size of the class. The code is below: #include<iostream> using namespace std; class Base { public: …

Member Avatar for mike_2000_17
0
1K
Member Avatar for Saranika

Consider the following class hierarchy of preschool teachers of ABC school, to answer the questions from i to iv. *Preschool teachers full time teachers part time teachers All Preschool teachers have a teacher ID, name, age and Highest qualification. A full time teacher has a fixed monthly salary. He/She has …

Member Avatar for Nick Evan
-1
224
Member Avatar for Avishek_1

To all those who use C++ and to the creator of C++ . I want to ask a question . What is the use of the default case in a switch statement ? It is actually to be executed when no case is satisfied , but it is executed even …

Member Avatar for jwenting
0
318
Member Avatar for Vasthor

the program is about Blob<T>, where shared_ptr<std::vector<T> > as its data members. be noted that the real problem here is about shared_ptr of my own version (simple one) but atleast (should) worked with the Blob<T>, which is the std::shared_ptr did, but not with mine. [Error Msg](http://postimg.org/image/krwflmyhx/) the error msg above …

Member Avatar for mike_2000_17
0
883
Member Avatar for Masood_786

Hi, I have run tuner from DirectX filter graphs. My Tv Tuner Card does not provide I/Q samples(Low frequency) as Realtek RTL2832u based USB Tuners so i need to get RF samples directly from TV Tuner Analog Audio out pin and store it in hard disk for digital signal processing …

Member Avatar for Masood_786
0
348
Member Avatar for Jsplinter

So, I've gotten myself in a bit of a pickle. I have been serializing data I collect with: vector<myClass> mVec; ... // mVec is filled with the data to collect for (auto it = mVec.begin(); it != mVec.end(); ++it) { myfile.write(reinterpret_cast<char*>(&(*it)), sizeof(*it)); } I've wrapped this code in a templated …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Vasthor

[program error](http://s11.postimg.org/okbmkhwkj/Untitled.png) this code, which is directly copypaste from the book itself, is appended to Blob.h., producing the above error. template <class> struct std::hash; class Sales_data { friend struct std::hash<Sales_data>; // other members }; // specialization namespace std{ template <> struct hash<Sales_data> { typedef size_t result_type; typedef Sales_data argument_type; size_t …

Member Avatar for mike_2000_17
0
1K
Member Avatar for Saranika

“Magic Video Center” is a video rental company which rent outs Movies and Music videos to its customers. The rental fees for the Videos are calculated as follows.  For Movie Video:- Rental fee = (Number of Days * Fee per day) + Extra Charge  For Music Video:- Rental …

Member Avatar for pritaeas
0
142
Member Avatar for Suzie999

I've never really tried MFC and this excercise is nothing more than trying it out. I found what seemed like a simple spoon fed tutorial to get me started [here](http://courses.washington.edu/css450/2008.Fall/web_contents/from_students/450Hints/mfc_tutorial/tutorial_2.html). Step 6 of the first part in that link says... > Inside 'Tutorial.h', change enum value of IDD to "IDD_ECHOBUTTONEVENT_DIALOG" …

Member Avatar for Ancient Dragon
0
191
Member Avatar for king Daniel

> Hello everyone i need c++ program which is made on library management as a sample for my project..thank you for your cooperation ! i am waiting !!!!

Member Avatar for Ancient Dragon
0
145
Member Avatar for Saranika

A file is required to record the daily temperatures of a city for one week from Monday to Sunday. Write a C/C++ program to enter the daily temperatures along with the name of the day, read the file, compute the average temperature for the week and display it. The final …

Member Avatar for ddanbe
0
153
Member Avatar for anar.bataa

Hi guys this is really important i searched an example code about "Username and Password Validation between Server and Client" through internet a LOT and i couldn't find anything... so please guys if any of you guys have anything about this topic please show me here thanks a lot guys!!!

Member Avatar for anar.bataa
0
539
Member Avatar for MasterHacker110

I need to copy modified data that is stored in an char* to another char* but I get an access violation error. Here is the code int EncryptData(char *data_source, char *data_cipher, size_t sizeofdata) { char *tmp_data; long long int digit; tmp_data = new char[sizeofdata]; /* Do some calculations here with …

Member Avatar for MasterHacker110
0
6K
Member Avatar for tomeika.griffith

create a program that will: (a) accept the name, basic salary and years of servive of an employee. (b) use an appropriate construct to calculate the bonus due. (c) output the employees's name, years of service, basic salary and bonus in a labelled format. (d) the program must allow for …

Member Avatar for Suzie999
-1
214
Member Avatar for Subhasis giri
Member Avatar for Auroch

Good day, I've realized hierarchy of classes: Point -> LineSegment. It's necessary to realize the following methods of the class: moving, stretching, rotating, turning, change on an axis. I'm trying to realize moving at a some distance on this code . What should I correct for in my code that …

Member Avatar for Auroch
0
209
Member Avatar for asia_6969

#include<iostream> #include<fstream> #include <sstream> #include<string> using namespace std; void main() { std::ifstream fin("romanian.txt"); std::ofstream fout("output.txt"); std::string line; int i; int count=0; string word; while(!fin.eof()) { getline(fin,line); for(i=0;i<line.length();i++) { if(line[i]==' ') { break; } cout<<line; } } system("PAUSE"); } the prog get crashed ... can any one please give me help …

Member Avatar for NathanOliver
0
3K
Member Avatar for ChrisP-C++

**Question 1:** I want to create a save file for a game im creating in C++ problem is i can only use the vanilla headers in dev-cpp (which spawns another question id like to have answered/suggestions), my main problem id like to get past, is how the easiest format/way of …

Member Avatar for ChrisP-C++
0
503
Member Avatar for annonah

Hi can u please help me with my assignment I need to create new type using new class -Myint- which is tepical to int type but the new one must be 10 bytes long insteade of 4 bytes so the quesion is how to set the size of my new …

Member Avatar for Hiroshe
0
210
Member Avatar for Stavros_1

Hello guys I have to make a test enviroment with two computers that both have VS2010 and Intel MPi installed. I finished installing the system today and I am trying to test it. Specifically I am trying to integrate the MPI library to VS. I have added the lib and …

Member Avatar for Stavros_1
0
287

The End.