48,985 Topics

Member Avatar for
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
149
Member Avatar for Lalise
Member Avatar for Alberto Bucur
0
114
Member Avatar for james2day
Member Avatar for vmanes
0
97
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
223
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
220
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
215
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
121
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
278
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
201
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
234
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
201
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
277
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
109
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
116
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
173
Member Avatar for can-mohan

Hi, I am getting below error after executing below code. **Error**: In function `main': undefined reference to `Point2D::Point2D(int, int)' class Point2D { public: Point2D(int,int); int getX(); int getY(); void setX(int); void setY(int); double getScalarValue(); bool operator< (const Point2D &right) const { return x < right.x; } protected: int x; int …

Member Avatar for Moschops
0
259
Member Avatar for Davincie

write a c++ program to impliment a class named display. the class should contain a function member to output the following. (use a for loop structure) 3 6 6 9 9 9

Member Avatar for Avishek_1
0
154
Member Avatar for mcodesmart

I have a base class called Matrix which has a function transpose. I also have a derived class Matrix2 which is inherited publicly from Matrix class Matrix { public: Matrix(); ... Matrix Transpose(void); ... }; class Matrix2 : public Matrix { public: Matrix2(); ... }; In my main code, I …

Member Avatar for pappu.thakare.5
0
296
Member Avatar for Prince.Questiorina

Greeting Guys .. I'm Asked to make the Hangman Game using C++ .. Acutally I'm stuck in how to put a dictionary of words ( each 5 letters ) inside an array .. and how to compare the input from the user to the word chosen from the dictionary.. I …

Member Avatar for David W
0
116
Member Avatar for moaz.amin.37

i know that in polymorphism when we not use virtual function then the compiler is execuite member function according to pointer type and when we use virtual function then compiler execute member function according to the type of object My question is that WHY it is happnes what is the …

Member Avatar for mike_2000_17
0
289
Member Avatar for Auroch

Hello everybody! I'm trying to display the result of addition of vectors. But Builder shows the error after compilation (line 29). What should I change for in my code in order to find the problem? Thanks in advance. #include <iostream.h> #include <iomanip.h> #include <conio.h> class CVector2D { public: CVector2D(double x0 …

Member Avatar for Auroch
0
259
Member Avatar for Vasthor

#include <iostream> template <unsigned, unsigned> class Screen; template <unsigned H, unsigned W> std::ostream& operator<<(std::ostream&, const Screen<H, W>&); template <unsigned H, unsigned W> std::istream& operator>>(std::istream&, const Screen<H, W>&); template <unsigned H, unsigned W> class Screen { friend std::ostream& operator<<<H, W> (std::ostream&, const Screen<H, W>&); friend std::istream& operator>><H, W> (std::istream&, const Screen<H, …

Member Avatar for tinstaafl
0
168
Member Avatar for uonsin

I'm getting a compiler error when trying to initialize a geometry shader using OpenGL. I'm using VS2013. Here is how I initialize it on OpenGL myCgContext = cgCreateContext(); cgGLSetDebugMode(CG_FALSE); cgSetParameterSettingMode(myCgContext, CG_DEFERRED_PARAMETER_SETTING); CGprofile gpProfile = cgGLGetLatestProfile(CG_GL_GEOMETRY); if (gpProfile == CG_PROFILE_UNKNOWN) { if (cgGLIsProfileSupported(CG_PROFILE_GLSLG)) gpProfile = CG_PROFILE_GLSLG; else { fprintf(stderr, "%s: geometry …

Member Avatar for uonsin
0
323
Member Avatar for nanomedo

I need a solution to this problem The idea of the project is about to draw a small village where we can change the weather by using (swich) function>> The problem is that when I Write a function to draw a rain was the raindrops scans colors that appear above …

0
144
Member Avatar for afnan Qureshi

an online ATM machine, connected to the server (another computer). All the data is stored on the server. The ATM client will only be used for cash withdraw or some other basic ATM functionality.

Member Avatar for TrustyTony
0
135
Member Avatar for Jimin

Could you tell me what problem this code has? This is a simple ATM code. (Menu: openAccount, deposit, withdraw, displayAccount <-display All Account). There is no noticed error(red line). Code was running. But I can't store information on Object.. (It maybe my fault thought) class Account{ private: string accNum; string …

Member Avatar for tinstaafl
0
341
Member Avatar for zulqarnain02

Can anyone please eleborate this project.I have to make a console application of it. Please tell me what is knap-sack and whats the concept behind its programming.

Member Avatar for Hiroshe
0
98
Member Avatar for cambalinho

i'm reading these page: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775951%28v=vs.85%29.aspx but see the Remarks section: Remarks For illustrations of the principal button styles such as BS_CHECKBOX and BS_GROUPBOX, see Button Types. The appearance of text or an icon or both on a button control depends on the BS_ICON and BS_BITMAP styles, and whether the BM_SETIMAGE …

Member Avatar for cambalinho
0
295
Member Avatar for abdiqani

C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything you need to do. The creator of C++, Bjarne Stroustrup, …

Member Avatar for Hiroshe
0
226
Member Avatar for total90

Write a C++ program that asks the user to enter the price of a car (real), the down payment (real) and the number of years for the loan (integer). Calculate and output the monthly payment (real) of that car. Assume the sales tax rate is 7% and an interest rate …

Member Avatar for Suzie999
0
306

The End.