49,766 Topics

Member Avatar for
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
210
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
4K
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
510
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
211
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
289
Member Avatar for daviddoria

Does anyone use boost program_options? What I'm trying to do is this: [code] --Files 1.jpg 2.jpg 3.jpg [/code] The only thing I know how to do is [code] --File1 1.jpg --File2 2.jpg --File3 3.jpg [/code] Does anyone know how to do this, and maybe store them in a vector<string>? Thanks, …

Member Avatar for maxgerlach
0
4K
Member Avatar for husres

1. Assume the bank has 3 clients. Assume every client has 3 accounts. Use a two-dimensional array to store the credit of each account for each user. The array should look like this: Amount in account 1 for user 1 Amount in account 2 for user 1 Amount in account …

Member Avatar for samwel mramba
0
220
Member Avatar for shahzrinsaid

Write a complete program that have two functions named CylinderVolume() and CylinderArea(). Both functions should receive diameter and height of cylinder as parameters. Each function should return the volume and area respectively to main program. Given formula: Cylinder volume, v=πr2h Cylinder area, a=2π2r+2πrh where π is pi, r is radius …

Member Avatar for <M/>
0
5K
Member Avatar for Auroch

Hello everybody! I'm trying to count the number of occurrences of each word in a text file. Problem situation requires to realize menu using "switch" statement (If file exist or not). There are following errors in my program ("case b" and "default" is not working): **[C++ Error] 03_int.cpp(61): E2126 Case …

Member Avatar for Auroch
0
982
Member Avatar for ashesh1708

I have downloaded the ftp library files from http://www.example-code.com/vcpp/ftp_passiveUpload.asp And set it in my code: #include "stdafx.h" #include "iostream" #include <CkFtp2.h> void ChilkatSample(void) int main(){ ChilkatSample(); return 0; } void ChilkatSample(void) { CkFtp2 ftp; bool success; // Any string unlocks the component for the 1st 30-days. success = ftp.UnlockComponent("Anything for …

Member Avatar for Moschops
0
443
Member Avatar for BERIHUN

hi programmer do a c++ project on library management system that enable search,update,add,delete and display data from it.

Member Avatar for BERIHUN
0
202
Member Avatar for BERIHUN
Member Avatar for Ganesh_7

I want to check the perticular cell of the grid is focused or not, Which method will help me?

Member Avatar for Ancient Dragon
0
104
Member Avatar for Auroch

Hello everybody! I'm trying to display the result of difference of two-dimensional vectors using friend overloading. Builder shows the following error after compilation (line 40). What should I change for in my code in order to find the problem? Thanks in advance. **[C++ Error] 05_Part.cpp(40): E2034 Cannot convert 'double' to …

Member Avatar for Auroch
0
247
Member Avatar for Krootushas

Hello. I would like to temporarelly store incomming win32 messages in a buffer. Then process all messages from that buffer manually. I actually have successfully stored and processed meesages in a buffer but I dont know if this is a best solution for my problem. LRESULT CALLBACK WinProc (HWND hWnd, …

0
163
Member Avatar for tania2011

Using POSIX thread library two threads are created by this program. Main program creates a file, let say, ‘alphanumeric data.txt’. The thread one writes some alpha numeric value along with system time in this file. Second thread reads this value from file and displays the following information on screen: Alpha …

Member Avatar for L7Sqr
0
150
Member Avatar for Lalise
Member Avatar for Alberto Bucur
0
116
Member Avatar for james2day
Member Avatar for vmanes
0
110
Member Avatar for moodyR

Write a class Date which consists of: Member variables: day, month, and year Member function DaysSinceFirstJan1() which returns the total number of days since 01-Jan-0001. Now write a main function which asks the user to enter 5 dates (day, month, year) which are stored in an array of objects of …

Member Avatar for ddanbe
0
226
Member Avatar for Awais ramzan

You have to develop an electronic lunch menu for UCP executive lounge. Dynamically create a character 2D list with the name , space and price of different items as shown below. Assume that your price do not exceeds Rs 255. Coke 40 Fanta 40 Cupcake 40 Tea 10 Coffee 40 …

Member Avatar for Akash_Soni
0
221
Member Avatar for RALTzzz

Can Someone help me to Create a program that receives a character and returns true if a character is a VOWEL and false otherwise.

Member Avatar for Avishek_1
0
314
Member Avatar for Youssef Mahran

Hello every one . . recently i have written this code to count letters and words in the phrase that the user enter , it worked once but when deleted (by mistake) and tried to rewrite it again it didn't work , so could you please help me to find …

Member Avatar for Youssef Mahran
0
122
Member Avatar for aanchal_1

this program is simply for recording data of various staffs.Inheritance has been used for taking additional data.Staff is the base class.the classes officer,typist and teacher are the derived classes.again the classes regular and casual are derived from the class typist. **now my problem is that whenever i call the constructor …

Member Avatar for aanchal_1
0
281
Member Avatar for aman.theman1

I would like to know how to search an array from a bunch of arrays. I would also like to know how I can search a close match to an array from a bunch of arrays.

Member Avatar for BogdanCov
0
202
Member Avatar for Avishek_1

Any idea for a simple C++ project for class 12 ? I thought of and also got many ideas like railway reservation , library management , tic tac toe game , book shop management . But those are too mainstream . Anything else by anyone ? I would be highly …

Member Avatar for Avishek_1
0
237
Member Avatar for sami9356

: Give at least two problems that we should check when we overloading assignemts oprater ("=") in string class?

Member Avatar for mike_2000_17
0
204
Member Avatar for sileshi nibret

#include<iostream> using namespace std; struct node int data; node*next; }; node*head=0; void input_at_end(); void display (); void del(); int main(){ for(int i=1;i<=3;i++){ input_at_end(); display(); } del(); cout<<"\nafter deleting"<<endl; display(); } void input_at_end(){ node*temp; temp=new node; cout<<"enter data"; cin>>temp->data; temp->next=NULL; if(head==NULL){ head=temp; } else{ node*temp2; temp2=head; while(temp2->next !=NULL){ temp2=temp2->next; } temp2->next=temp; …

Member Avatar for Ancient Dragon
0
279
Member Avatar for Masood_786

Hi All, **I have Gadmei UTV-382 USB Tv Tuner Card with XCEIV 4100 analog tuner, with cable Tv and Antenna(local Tv) support, no FM and no availability of I/Q samples**. In Directx GraphEdit i was able to run the device but on its default settings. **I want to dump the …

0
112
Member Avatar for Ankitha Nayana

I wanna start project or app which should help me in career... give me some tips I am studying engg. Final sem computer science

Member Avatar for David W
0
119
Member Avatar for muhammad.asim.5458

how can coded in c++ for a dice game which has below funcation 1) pop the message to user inter the number of plyer. 2) inter the name of plyer. 3) rooling the dice and outcomes be add in total secure of this plyer. 4) name of next plyer 5) …

Member Avatar for Avishek_1
0
178

The End.