49,761 Topics

Member Avatar for
Member Avatar for dispatcher

hi dears how can i use parallel processing or other meaning which comment or header is useful in c++ to access to dual core of cpu in inverse of bulk matrix dimention for decreasing time execuxion , i know fast method as same as L.U , ... . but i …

0
24
Member Avatar for knellgust

#include <iostream> #include <iomanip> using namespace std; int main() { char item, code [5] ; double number, money; const double itemA=50, itemB=60, itemC=70, disc=0.8; const int size = 10; cout <<"Enter the item you would like to buy: A,B, or C: "; cin >> item; cout <<"Enter how many you …

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for plex_Rominus

I am still new to C++, I've tried drawing a horizontal line but i keep messing up and instead end up drawing a vertical line. could you kindly direct mev on how to go about it.

Member Avatar for mrnutty
0
37
Member Avatar for PrOwr!+3r

I am working on a grading program and I am having trouble passing the structure by reference and by pointer. I am also trying to convert the total numeric average into a letter grade? Should I use a loop or an array?

Member Avatar for mrnutty
0
35
Member Avatar for emko

Hi, I need to make a program that counts the frequency of characters in a file, then outputs how many times each character appears in it. I am trying to make a class for it, but I am having difficulties figuring out how to do the definitions for each method. …

Member Avatar for mrnutty
0
254
Member Avatar for WargRider

Dear Community, So I am making a 3D game using UDK and I have implemented / scripted everything I have wanted in the same so far. Then it occured on me today, why not have some cool speech recognition, so for those that dont know UDK (Unreal Development Kit) gaming …

0
86
Member Avatar for cogitoergosum18

hello, i need to write a program that computes an equivalent resistor value if it is in either series or parallel . (in c++). how will i write this in c++ : [TEX] R_\mathrm{eq} = R_1 \| R_2 = {R_1 R_2 \over R_1 + R_2} [/TEX] (parallel) [TEX] R_\mathrm{eq} = …

Member Avatar for mrnutty
0
138
Member Avatar for aaronmk2

I am getting this error message error: expected primary-expression before 'enum' I can't figure it out. [CODE] #ifndef ROCK_H #define ROCK_H enum RockName {BASALT, DOLOMITE, GRANITE, GYPSUM, LIMESTONE, MARBLE, OBSIDIAN, QUARZITE, SANDSTONE, SHALE, ROCK_OVERFLOW}; class Rock { public: Rock() {myName = BASALT;} Rock(enum RockName) {myName= RockName;}//here is where I am …

Member Avatar for mrnutty
0
137
Member Avatar for parrishnewbie

#include <iostream> #include <string> using namespace std; int main() { //Declaring values. string oneWord, twoWord, threeWord, fourWord, fiveWord, fullWord; //Assigning values oneWord = "One"; twoWord = "Two"; threeWord= "Three"; fourWord = "Four"; fiveWord = "Five"; // Now we will define the full word fullWord = oneWord + ", " + …

Member Avatar for Fbody
0
100
Member Avatar for miznogud
Member Avatar for TinhornAdeniyi
0
69
Member Avatar for ayoitzrimz

Hello all, I am having an issue with ifstream. Short explanation: 1. I ask the user for the filename and read it via cin 2. I store the input in a c++ string 3. I use the input as the filename Here's where it fails: When a user enters something …

Member Avatar for VernonDozier
0
241
Member Avatar for binoo0324

I'm a beginner (3wks into C++) Payroll program is due in 1hour. I can't figure out what is wrong with my program. it compiles, builds, and runs but when I enter the name, it goes straight to the end of the program. heres the code <code> #include <conio.h> #include <iostream> …

Member Avatar for burcin erek
0
290
Member Avatar for |hex

ive been able to make this simple else if statement work, the problem is, i keep getting the same message when i call the showcase. i want the user to enter a name or object after the word 'show', if they dont, i want a mesage to display stating so. …

Member Avatar for Fbody
0
175
Member Avatar for parrishnewbie

Hi everyone, I am very new to C++ I have never done any type of programing also. I am really having a hard time learning how to write programs. I am using a book called C++ programming by larry ullman and Andreas Signer. The problem is I am following the …

Member Avatar for Fbody
0
149
Member Avatar for madmaze
Member Avatar for muze

hello guys...I want to learn the above mentioned topic. Can you suggesst some book or forum to learn this?? thanx

Member Avatar for Ancient Dragon
0
122
Member Avatar for shabir_24

heyy guys wats up !?? i am trying to convert a list(c++) in qt list... i have no idea how i can do that.... the list is a list of employee objects.... (id , name, rate) i want a list of qtlist which containts the employee objects or at least …

Member Avatar for Banfa
0
116
Member Avatar for ehsantl

Hi guys I'm trying to finish my assignment, I stuck in a weird situation. I'm trying to create a pointer a linkedlist. This linkedlist contains pointer to a user-defined objects (City) and I'm trying to add City to this linkedlist and then iterate through the linked list to find and …

Member Avatar for ehsantl
0
169
Member Avatar for TinhornAdeniyi

I cant figure out what is wrong with this code These are the instructions [ATTACH]17304[/ATTACH] [ATTACH]17305[/ATTACH] [ATTACH]17306[/ATTACH] and this is my code [CODE]#include<iostream> #include<fstream> #include<iomanip> using namespace std; void Get_Info(string[],int[][3]); void Get_Average(int[][3]); void Prt_GradeBook(string[],int[][3],int[]); int MakeUps(int[][3]); int Grades[5][3],average[5]; string Students[5]; int main() { Get_Info(Students,Grades); Get_Average(Grades); Prt_GradeBook(Students,Grades,average); cout<<"There are"<<MakeUps(Grades)<<"Makeup(s) to arrange. …

Member Avatar for VernonDozier
0
189
Member Avatar for samuel_1991

Ever since the "disatrous" Adobe Encore (CS4 and 5 does not matter)'s way of storing the installation directory details in Sqlite database file and some uninstall string in the registry, I would like to create dll to get the install directory from Sqlite database as per recommended by the Inno …

Member Avatar for samuel_1991
0
717
Member Avatar for rena0514

I have to create a program that uses a class that adds, subtracts, multiplies, and divides fractions....and then reduces them....I did the program to make sure calculations worked and they did....I just began trying to reduce the fraction but I'm stomped. I have many errors concerning my get and set …

Member Avatar for StuXYZ
0
192
Member Avatar for flowerzink

Hello, I have a problem, and I'd be grateful if someone could help me solve it. It's divided in two parts: 1. Record a sound using only code (Doesn't have to be in c++) 2. Being able to use the sound of a hanclap and use it to trigger an …

0
91
Member Avatar for ana_1234

Hi everyone, I have an assignees that I've been working on and I'm stuck on the last function. use the function void Increment(int numDays = 1) This function should move the date forward by the number of calendar days given in the argument. Default value on the parameter is 1 …

Member Avatar for brandonrunyon
0
240
Member Avatar for VBNick

Hi. I was wondering if someone could offer a bit of advice on this. I have made a web server, and everything seems to be done correctly as far as I can tell. It works and loads web pages just fine. The problem is, that when big files are requested …

Member Avatar for VBNick
0
279
Member Avatar for Peter_morley

Ive pasted the code for actor.cpp, date.cpp and the main function. This is alot of stuff I pasted but I believe it is necessary to show my problem. At first I get the date of the individuals birth and that gets displayed and everything turns out as it should. When …

Member Avatar for Peter_morley
0
151
Member Avatar for TheWolverine

Hi all, I am currently working on a large software project for scientific computing for my PhD research. I am working on the architecture for part of the project now, and I am struggling with how to working with a polymorphic pointer as a function input parameter, by reference. The …

Member Avatar for TheWolverine
0
299
Member Avatar for vjekob

I've been give a task to write a short C/C++ program to extract files from a .deb file on windows platform I know there are tools like 7zip that do it but I need to code it). Could someone please give me a push in the right direction (too much …

Member Avatar for Aranarth
0
219
Member Avatar for LevyDee

When creating a resume for a programming job, you want to include some source you have written right? I am updating my resume and have added 4 pages of source, is that to much? THanks

Member Avatar for VernonDozier
0
93
Member Avatar for coolboym99

I'm writing up a program for a class I'm taking where I need to make a linked list stack & queue. Right now I'm not quite done, but I'm having problems calling the functions from the .h file. What's happening is in the while loop, I'm trying to get data …

Member Avatar for coolboym99
0
200
Member Avatar for Fadam360

Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 …

Member Avatar for VernonDozier
0
79

The End.