49,761 Topics
| |
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 … | |
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; | |
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) … | |
| |
//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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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 | |
//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 … | |
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 … | |
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 … | |
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. | |
i know move the mouse for where i want. but how can send a click message to another program? | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
//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 … | |
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" … | |
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. | |
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.. | |
What kind of softwares will a bank or financial company ask a programmers to create, and what programming language is best for creating such softwares. thanks to any answer | |
I'm trying to read 2 files each has aprox 1MB but when I check for memory usage i get 2MB (this still persist for more file f*1mb) It is possible to read each file with minimum memory usage? | |
199 C:\Users\Gaming-PC\Desktop\C++ Files\Tic-Tac-Toe.cpp expected unqualified-id before "if" {//Tic Tac Toe //Plays the game of tic tac toe agaienst a human opponent #include <cstdlib> #include <iostream> #include <string> #include <vector> #include<algorithm> using namespace std; //global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' … | |
**{"title":"iamtitle","icon":"","urlHistory":["http://google.com"],"lastUsed":123}** I have tried in c++ and using json-glib. I have tried using this: g_type_init(); JsonParser *parser = json_parser_new(); json_parser_load_from_data(parser, temp.c_str(), -1, NULL); JsonReader *reader = json_reader_new(json_parser_get_root(parser)); json_reader_read_member(reader,"urlHistory"); JsonNode * value = json_reader_get_value(reader); JsonArray * value1 = json_node_get_array(value); const char * urlhistory = json_array_get_string_element(value1,0); tab.history = urlhistory; json_reader_end_element(reader); cout << … |
The End.