49,761 Topics

Member Avatar for
Member Avatar for fakhruddin.fiqri

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. …

Member Avatar for tinstaafl
-1
112
Member Avatar for s11086050

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 …

Member Avatar for tinstaafl
0
103
Member Avatar for ztdep

*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 …

Member Avatar for ztdep
0
175
Member Avatar for victoria.lim.773124

#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<<" …

Member Avatar for victoria.lim.773124
0
258
Member Avatar for nick.rechtien.5

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 …

Member Avatar for NathanOliver
0
149
Member Avatar for Zevoxa

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 …

Member Avatar for Zevoxa
0
109
Member Avatar for KhizarIqbalEngr

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 …

Member Avatar for KhizarIqbalEngr
0
2K
Member Avatar for غادة

**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 …

Member Avatar for owenransen
0
154
Member Avatar for CHOCHOCHO

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 …

Member Avatar for tinstaafl
0
161
Member Avatar for GaryWazHere

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 { …

Member Avatar for tinstaafl
0
486
Member Avatar for moataz_elghoul

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.

Member Avatar for rubberman
0
60
Member Avatar for Vasthor

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 …

Member Avatar for Vasthor
0
425
Member Avatar for sherubdorji
Member Avatar for jmareth

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[]); …

Member Avatar for jmareth
0
304
Member Avatar for kshahnazari

Is there any command in c# to make a c++ program run (no need to return a value and ...) ?

Member Avatar for Ketsuekiame
0
69
Member Avatar for nick.rechtien.5

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 …

Member Avatar for <M/>
0
284
Member Avatar for aqidis

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 …

Member Avatar for flankechen
0
638
Member Avatar for ztdep

#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 …

Member Avatar for ztdep
0
229
Member Avatar for robert.speciale

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, …

Member Avatar for deceptikon
0
149
Member Avatar for robert.speciale

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 …

Member Avatar for robert.speciale
0
186
Member Avatar for shrina

how to read from txt file to array & how to omit heading in the txt file and store it to array

Member Avatar for tinstaafl
0
251
Member Avatar for zahrak

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 …

Member Avatar for mohammad110
0
852
Member Avatar for dmanw100

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 = …

Member Avatar for hassan.ahmad
0
478
Member Avatar for GaryWazHere

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 …

Member Avatar for GaryWazHere
0
1K
Member Avatar for ירון

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 …

Member Avatar for ירון
0
494
Member Avatar for zenooo

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 …

Member Avatar for Liuqahs15
-1
130
Member Avatar for Elixir42

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. …

Member Avatar for Elixir42
0
510
Member Avatar for saadi068

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 …

Member Avatar for saadi068
0
283
Member Avatar for benshums

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. …

Member Avatar for sakthilolita
0
336
Member Avatar for terran1

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 …

Member Avatar for DeanMSands3
0
931

The End.