49,766 Topics

Member Avatar for
Member Avatar for hamza233
Member Avatar for wael1sham

using turbo c++: write a program that converts the input dollar to its peso equivalent.Then display the peso equivalent.One dollar is approximately 45.119 pesos.

Member Avatar for NathanOliver
0
144
Member Avatar for writerervin

I was wondering how I would go about programming a gui toolkit from scratch. I would appreciate any and all help you could give me.

Member Avatar for Moschops
0
290
Member Avatar for exoruel

I thought I'm done doing mg activity, but my professor said that we need to use a Temporary Variable for Swapping and I have no idea where to put it. Mind giving me a hand, please? :( Here is his activity: Activity: Swapping Create a program that accepts a 10-element …

Member Avatar for exoruel
0
326
Member Avatar for asoud80

how can i Write a C++ program to display cities of USA using switch case newyork,virginia,texas,hollywood,chicago & newmexico

Member Avatar for wolfdragon
0
119
Member Avatar for alon4963

Hello I write down a bank program and I have a problem. I would be happy if you can help me. So I have two types of accounts each account in a different class. first one is limited account and yhe secound is over draft account also I have class …

Member Avatar for rubberman
0
150
Member Avatar for bjf1992

show the output of the following C++ code, (assume the adress of x is 0012ff44) int x=100; int *ptr; ptr= &x; ptr=200; cout<<x<<endl; cout<<ptr<<endl;

Member Avatar for rubberman
0
115
Member Avatar for cambalinho

i did these menu class: class Menu { private: static int intID; int ID=0; bool primeiromenu=false; HMENU MenuHandle=NULL; HMENU hMenu=NULL; int menuposition=0; string strCaption=""; public: Menu(string caption="&Menu",HMENU subtmenu=NULL, HWND MainHWND=WindowMain) { intID=intID+1; ID=intID; if(caption!="-") caption=(string)caption + " " + to_string(ID); strCaption=caption; if(GetMenu(MainHWND)==NULL) hMenu = CreateMenu(); else hMenu =GetMenu(MainHWND); if (subtmenu==NULL) …

Member Avatar for cambalinho
0
676
Member Avatar for pronob.roy.3110
Member Avatar for Lilgenski16

//BlackJack // Plays a simple version of the casino style game of blackjack; 1 - 7 players #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> using namespace std; class Card { public: enum rank {ACE = 1, TWO , THREE , FOUR , FIVE , SIX , SEVEN …

Member Avatar for Lilgenski16
0
234
Member Avatar for arjay.veliganio

I need help with a program that reverses the letters in a word without altering its order in a sentence. Sample Input: What a sunny day Output should be: tahW a ynnus yad Thanks in advance!

Member Avatar for NathanOliver
0
145
Member Avatar for Builder_1

Simulate a patient’s lines using queues with enqueue ( ), dequeue ( ) and printQueue ( ) operations. Define a queue node in the following manner: typedef struct queueNode { int patientID; // Unique identifier; starts at 1; after 24 hours should be reset to 1 int checkupTime; // Random …

Member Avatar for Builder_1
0
379
Member Avatar for Auroch

Hello. I need to write a program to evaluate a definite integral with Simpson's composite rule. 1. ![fb9ac9a01f247c8a0ed8a606b7c10f4a](/attachments/small/4/fb9ac9a01f247c8a0ed8a606b7c10f4a.png "align-left") I know there is a Simpson's rule available in Scipy, but I really need to write it by the following scheme. 2. ![239643044a08379e5fe3747e13b2834e](/attachments/small/4/239643044a08379e5fe3747e13b2834e.png "align-left") , where a, b - limits of …

Member Avatar for Auroch
0
2K
Member Avatar for Wajid sardar

Source File not comiled error message occures #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; main(){#include <iostream> #include <stdlib.h> #include <time.h> using namespace std; main(){ //declaraing and initialization integers int secretNumber = 0, UserNum=0; int UpperRange=0 , userMaxRand=0, LowerRange=0; cout<<"My Student ID Mc140402241 "<<endl; //Prompt the user to enter …

Member Avatar for Moschops
0
528
Member Avatar for AJones

Hi Folks: I just installed Dev-C++ 4.9.7 beta 7 and compiled a simple "Hello World" console app, I get a lot of error related to iostream.h file not being found. Dev-C++ is installed in C:\Dev-Cpp\ directory, Has anyone else have had this problem. Thanks AJ

Member Avatar for Wajid sardar
0
2K
Member Avatar for aluhnev

//Hi i do the delivery company project,this are my members of the base class //how do i create 2 constructors in base,one for sender and one for recipient? //I did one for sender ,but visual studio does not allow me to create identical for recipient //Can some one help to …

Member Avatar for rubberman
0
259
Member Avatar for redtribal23

Okay so first is I am confused with the void function. It is said that void function does not return a value. If for example I have a void function that gets user input, like price and month, how do I use price and month to do another function? int …

Member Avatar for redtribal23
0
148
Member Avatar for lewashby

When I compile the following two programs one of them compiles and one of themse does not but I don't see a difference. The smaller program is the same only I've taken out a lot of the code so that I'm left with only the minimum that I need to …

Member Avatar for mike_2000_17
0
4K
Member Avatar for magdaekeya

write a program that takes a four digits integer from user and shows the digits on the screen separately i.e. if user enters 7531, it displays 7, 5, 3, 1 separately.

Member Avatar for Maritimo
-2
78
Member Avatar for cambalinho
Member Avatar for cambalinho
1
214
Member Avatar for melisasimjiaqi

void ascending() { int i=0; const int SIZE = 20; DrinkRecord s[SIZE]; system("cls"); ifstream infile; infile.open("drinks.txt");//open your file if(!infile)//check to make sure its open before trying to initialize list items { std::cout<<"\nUnable to open file!\n"; } vector<string> list;//create your empty list while(!infile.eof())//while the input stream has not reached the end …

Member Avatar for Maritimo
0
204
Member Avatar for csnerd2020

So i have this class called Numbers and I want to be able to take in doubles or integers. I know i have to use templates but I'm confused can anyone guide me in the right direction. suppose i have private member functions set to int how can I change …

Member Avatar for Maritimo
0
191
Member Avatar for exoruel

Can anybody help me with my program? I can't get the example. Here's the question: Create a program that accepts an array of characters. And displays the converted array of characters into Upper case if it is given in Lowercase and vice versa. Don't use string, but char. Example: mychar …

Member Avatar for Maritimo
0
174
Member Avatar for dori24

I have to write a code on c++(dev c++ actually) that counts the number of each letter,and give a percentage of using for each letter....But i don't know how put a txt during the execution,because the txt is asked to be more than 1000 words.

Member Avatar for Maritimo
0
74
Member Avatar for DarkT

Hi everyone. I have a very simple question to which apparently there is no easy solution (I googled a bit but haven't found any yet). How can I force Visul Studio 2013 to install on a different drive so that it doesn't eat up my C: space? In our company …

Member Avatar for mike_2000_17
0
337
Member Avatar for Pyler

I can serialize an object if it's class definition has attributes. So if I have an object whose class does not have attributes, do I serialize the attributes importedi in it's class definition? For example; suppose I have the following class, #ifndef BREAD_H #define BREAD_H #include "EGGS.h"; #include "FLOUR.h"; class …

Member Avatar for mike_2000_17
0
278
Member Avatar for Lilgenski16

//BlackJack // Plays a simple version of the casino style game of blackjack; 1 - 7 players #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> using namespace std; class Card { public: enum rank {ACE = 1, TWO , THREE , FOUR , FIVE , SIX , SEVEN …

Member Avatar for Lilgenski16
0
237
Member Avatar for ashhhh

I'm a newbie in programing I've got this problem after I added timer on to the my program. I can't figure out what goes wrong. I just want to chekc if the timer can run or not. #pragma comment(lib, "SDL.lib") #pragma comment(lib, "SDLmain.lib") #pragma comment(lib, "SDL_image.lib") #include "SDL/SDL.h" #include "SDL/SDL_image.h" …

Member Avatar for Moschops
0
312
Member Avatar for schroaus

Does anyone know a way to remove the 0's from an integer? i.e 1320000 would be 132 and 540 would just be 54.

Member Avatar for schroaus
0
125
Member Avatar for diya45

hi everyone i have 1 question regarding array in c# application how i arrange numbers in ascending or descending order in array using c# software i do this int array=new int[1,2,3,4,5] furhter i cant processed plz can anyone tell me about this thankx..

Member Avatar for cronynaval
0
4K

The End.