49,761 Topics
| |
Develop a C++ program that uses a while statement to determine the gross pay for each of several employees. The company pays 10 RM per hour for the first 40 hours worked by each employee and pays 20 RM per hour for all hours worked in excess of 40 hours. … | |
You have been hired by a school management to design a software program which will act as a Math Tutor for the students. The following are basic guidelines as to how the program should function. “Two unique random numbers in the range 0 to 99 are to be generated each … | |
*Dear friends: I need a quick algorithm to find the common faces of polyhedrons meshes for the finite volume computation. Each plolyhedron is recorded with the indexes of its six vertices(hexahedron) or four vertices(tetrahedron). Each polyhedron has only one common face with its neighboring polyhdrons. The common face can be … | |
#include<iostream> #include<cstdlib> #include<string> using namespace std; class Menu { public: Menu(); virtual void showMenu(); private: }; Menu::Menu() { } void Menu::showMenu() { cout<<"\nFood Selection:"<<endl<<endl; cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*\n"; cout<<" Food Category "<<endl; cout<<" __________________________________\n"; cout<<" 1. Appetizer *"<<endl; cout<<" 2. Main Course *"<<endl; cout<<" 3. Drinks *"<<endl; cout<<" 4. Dessert *"<<endl; cout<<" … | |
In this program I am writing for class, I have to make a Paper Rock Scissor game using functions. I got everything written and everything seems to work until I quit the program and it's supposed to display the stats. It seems that the variables arent storing and being passed … | |
Hello, I'm trying to create a program that installs a directory and then runs some commands in a console of that directory that is installed. I think I could manage doing running the console commands, but I'm having a real hard time in trying to make my program install the … | |
Hi Everyone...!! Last Week, I Was Assigned A Project Of Building A Mine Sweeper Game In Console.!! I Start Working On It But I Don't Have Any Idea From Where Should I Get Started..!! I Want To Add Some Simple Graphics In My Game, But First I Want To Make … | |
**Write a C++ program that will make use of the following structure and The typedef Statement: typedef int ArrayType[MaxSize]; The structure is the OneDArray structure, which contains the following data items: a- Name of array. b- Size of array. Use dynamic memory allocation (dynamic one-dimensional array) for storing positive numbers … | |
I got this assignment from my teacher the other day and i am having a hard time understanding it. I asked him for help and im even more confused. **I AM NOT ASKING FOR YOU TO DO IT. I AM ASKING FOR ADVICE AND HOW TO DO IT** Write a … | |
Hello, I'm trying to make my maze game object-oriented. The problem is my mazeArray. I'm a bit confused on how to use it correctly to draw out my maze. Map.h: #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <process.h> #include <cstdlib> #include <ctime> using namespace std; #pragma once class Map { … | |
Write a code by if statement that inputs five numbers and determines and displays the number of negative numbers input, the number of positive numbers input and the number of zeros input. | |
map<string, vector<int> > // 42 xref(istream& in, // 43 vector<string> find_words(const string&) = split) // 44 error: [errorPic](http://s13.postimg.org/3y4vgjdev/compiler_error1.png) this is a cross-ref program that's written in the book, the exercise told me to create an improved feature for it. So, before I start with my work, I need to organise … | |
reason behind gaining popularity of c++ over other programming languages | |
NO ONE SHOULD COPY THIS PROGRAM, ITS PLAGIASISM AND IF COUNT WILL RESULT IN AN AUTOMATIC ZERO FOR YOU AND I, so dont be stupid. #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> using namespace std; void occurrence (char[], int[]); void initialize (char []); void sorts( char[], int[]); … | |
Is there any command in c# to make a c++ program run (no need to return a value and ...) ? | |
Hey folks. I'm hoping I can get some help here. I have to make this program to play the game paper, rock scissors. I am having a few issues with the program. 1.) I dont think i am using the rand() correctly 2.) After entering your choice for Paper Rock … | |
Write a program that performs the least mean squares optimization. Given a large collection of data of the form (x0 x1 x2 x3 d), your task is to determine w0 w1 w2 w3. The LMS technique finds these weights by starting with some assumed weights, such asw0=w1=w2=w3=0, and finding the … | |
#ifndef TINYVEC_HPP #define TINYVEC_HPP #include <iostream> #include<iomanip> using namespace std; template<typename T_numtype, int N_length> class TinyVector { protected: T_numtype data[N_length]; public: ////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////// TinyVector() { } ~TinyVector() { } TinyVector(const TinyVector<T_numtype,N_length>& x); TinyVector(const T_numtype & initValue); TinyVector(const T_numtype x[]); TinyVector(const T_numtype & x0, const T_numtype & x1); TinyVector(const … | |
I'm still a bit of a newbie and have what is probably a minor issue, but for some reason I can't wrap my mind around it. I have a program that does a whole bunch of stuff to text from an input file. The input looks like this: MArch 9, … | |
So I am working on a problem and have a bit of an issue that I can't seem to figure out and would like some guidance. I have string input coming into my program via fstream. Its a bunch of sentences where I have to cout it in such a … | |
how to read from txt file to array & how to omit heading in the txt file and store it to array | |
hi. i work on image processing.how can i convert my mfile to c++ code? i try with : mbuild -setup mcc -B cpplib:mfile a.m and matlab compiler give me cpp code but i can not run it. how can add lib & header file that it can run? is there … | |
I'm learning how to use the SDL libraries but I'm having a small problem playing the sound. The program appears to load the sound but either not play it or play it too low for me to hear. Here's my code so far: [CODE]#include "SDL/SDL.h" #include "SDL/SDL_mixer.h" Mix_Music *play_sound = … | |
Hi, I need help with my c++ maze game. The problem that I'm having is my keys and doors. I don't really know how to unlock a door after obtaining a key. Heres my code, its a bit messy: #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <process.h> #include <cstdlib> #include … | |
i wrote some program in c++ that open csv file and do somthing and copy the resault to new CSV file after compile i get exe file. when i run the exe file, its working well (create the new CSV file) but if i try to run the exe file … | |
Hello ...I am a student in the second year engineering,,, I find it difficult to solve some questions in C + + anyone knows solve these questions, please help me, and I would be very happy These questions: Q1- Write a c++ program containing a loop to print all the … | |
Hi , Please can anyone help. I have a window(1280x768) that contains a resolution(1920x1080). I am trying to use ScreenToClient to obtain the mouse coordinates while in windowed format. I am drawing a line from a subject to the mouse cursor which works fine in fullscreen but not in windowed. … | |
I am working on NoC simulator in ubuntu 12.04 c++ is supported, I want to make a script that call my whole program multiple times (for loop= e.g 10) and want to take average value from the functions that were called from other files. Should I create a new file … | |
Hi, I'm having trouble getting this linker bug to go away. I have 2 files: Socket.cpp and Socket.h. I know that these files are legitamite because my professor gave them to me during last semester. When I remove socket.cpp, everything compiles just fine. But with Socket.cpp, I get these errors. … | |
Hello guys I have an application for face detection and recognition using OpenCV library and Qt (for multithreading and to handle XML files). When I run the app, it detects face and there is possibility to save it as a picture to a file. It happens after I click on … |
The End.