49,757 Topics

Member Avatar for
Member Avatar for aberlynn

hi folks - i'm quite new to c++ and have written a program where i have used a linked list to simulate 3 printers working in a queue according to their priority. After much blood, sweat and tears I got that bit working. Now I'm onto the second "easy" bit...I …

Member Avatar for iamthwee
0
113
Member Avatar for scarface3288

Hi every one I have a big problem, I need help with creating a program which reads every third word in a text file and excludes puncuation like -,?.!'" etc.. so far none of my work need code or suggestions just plain help(newb) [code] #include <iostream> #include <fstream> #include <string> …

Member Avatar for iamthwee
0
4K
Member Avatar for wheelie

Hi, Im trying to make a sysmple program that plays different .wav files when an appropiate key is pressed. Its going to be keyboard drumkit kind of thing, anyway, ive got it to play the sounds, but they always seem to have a short delay, from when the key is …

Member Avatar for wheelie
0
89
Member Avatar for MukeshZ

hi All, I want to fit "10"(Integer) in format like 000001 00 i.e. first number in six bits and second in two bits so that finally i read it as 04 in Integer could anyone suggest how can i do this ? I am trying with struct number { UINT …

Member Avatar for vijayan121
0
140
Member Avatar for MukeshZ

hi I want convert Binary String to intger Format in c++. like "00000100" should give me as "04" or "4" could anyone suggest me the solution for it. thanks Mukesh:)

Member Avatar for vijayan121
0
158
Member Avatar for Lavitz

hey guys. i was given a project today in my C++ class. The directions are as follows: A. solicit from the user a positive integer n. B. Generate and display a list of all the possible permutations of the first n integers. in other words, the user inputs 3, the …

Member Avatar for Lavitz
0
158
Member Avatar for PancoMaan
Member Avatar for jhdobbins

Alright.. I have to rewrite a program. The thing is, I have to rewrite it using parent and children... With processes (pipes) or threads... How do you create the parents and children with either of these? I am basically asking for a tutorial on how you would create these with …

Member Avatar for ndeniche
0
307
Member Avatar for RaCheer

I am trying to write a program that will scan another file for comments only. It will scan for comments of both types, // and /* */, and then print these comments. The code I have written so far works, but it prints the entire code. I would really appreciate …

Member Avatar for RaCheer
0
137
Member Avatar for squinx22

I have these files in SOURCE folder: main.cpp header.hpp implement.cpp I want that when I compile these codes, the object files and the .exe files will be found on the different folder, let's say in folder EXECUTE that is outside the folder SOURCE. Like this: /home/usr/SOURCE * main.cpp * implement.cpp …

Member Avatar for Ancient Dragon
0
80
Member Avatar for jonnymac5987

Here is a program which finds prime numbers, but because the compiler i need to use for my class does not use a boolean variable i am having trouble figuring this out. Please help me find how to find prime numbers without using a boolean variable. [code=c] #include <iostream> using …

Member Avatar for Infarction
0
78
Member Avatar for dacs

:( please help me in my laboratory exams in c++ programming... please give me a source code and .exe file on the following program: FOR STRINGS Write a program that inputs 4 string that represent integers, converts the strings into integers, sums the values and prints the total of the …

Member Avatar for Madzts
0
139
Member Avatar for wallish

Well, I'm working on a simple project but I've hit a snag in my progress so far. I'd like to take a file that has text which will be something similar to: [code] Placemarker 1 = words/numbers Placemarker 2 = words/numbers Placemarker 3 = words/numbers [/code] so you'll have a …

Member Avatar for wallish
0
268
Member Avatar for adam37

Hi All, I have a question about the following C++ program: How does the C++ program know which of the sqr functions to use in this program? [code] #include <iostream.h> // This program illustrate the use of Function overloading int sqr(int x); float sqr(float x); double sqr(double x); int main(void) …

Member Avatar for thekashyap
0
116
Member Avatar for RossSCann

I have tried Beep() and MessageBeep() which compile fine, execute with no error but there is no sound. Are there better sound/tone generating fns avail for SDK? Ross

Member Avatar for RossSCann
0
87
Member Avatar for gabs

hi! In a GUI I'm making, I'm using a dialogbox, and I want the user to have an option to load a picture from file, and to see it on the dialog box. but here is where I need help. how can I display a picture on a dialog box? …

Member Avatar for ~s.o.s~
0
88
Member Avatar for revenge2

Hello there, does anyone know of any free beginner c++ videos on the net? . Thanks-:cheesy:

Member Avatar for qwertydid
0
83
Member Avatar for Luckychap

Hi, I am doing a project on finger print authentication. I am using finger print bitmap(4-bit). can any one help me with how to trace all the rigids on finger print so that i can find minutiae points for creating my template database. any links are also valuable.. Thanks.

Member Avatar for thekashyap
0
119
Member Avatar for zak2710

[B]Would u help me with this task, I am new in C++ programming, this codes have alot of errors, I have never work with graphs before, I am using Borlard C++ Ver 5.02. I was told u can not run a graph task using text editor. If that is the …

Member Avatar for Ancient Dragon
0
100
Member Avatar for virus.exe

How can I hide the C++ window that pops up? I used to have a the code the made it run in the backround or processes but I lost it. Please help im using Dev 4.9.9.2 and Windows xp. Thx guys.

Member Avatar for Ancient Dragon
0
55
Member Avatar for louis7370

[code=c] #include<iostream.h> #include<fstream.h> #include<conio.h> ofstream Ofil("ROW-COLUMNAR.DAT",ios::app); class application { private: int number; char application [20]; public: void accept_data { cout<<"enter application: "; cin>>"application: "; Ofil<<"application"<<endl; } void display_data() { char appl; ifstream Ifill("ROW-COLUMNAR.DAT",ios::app); while(Ifill) { Ifill.getline(appl); cout<<appl; } } }; class Calculator:application int mc(int x, int y) //Multiply two numbers …

Member Avatar for Ancient Dragon
0
319
Member Avatar for machspud

I was assigned to create a program that lets the user enter the total rainfall for each of the 12 months, into an array of doubles. Then it needed to calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and …

Member Avatar for WaltP
0
2K
Member Avatar for BarryKamp

Hi, Im a beginner at C, i just need some help getting something sorted where i can display information. I can add more to it for what i want to do, i just wanted to know why the error "ISO C++ forbids comparison between pointer and integer" comes for all …

Member Avatar for Aia
0
161
Member Avatar for addicted

hey, i just read about passing arrays to functions in C++ like this function modifyArray(arrayname, arraysize); i need help with sending an array and another variable to a function... since the array size is an integer and the second integer is also going to be in the argument... i dont …

Member Avatar for addicted
0
114
Member Avatar for hpzer0

HI, I need help in this project and I do not have any experience in C++. I have to creat a program that display the custumer record. it include a menu : · Add new Account · Deposit money to customer account · Withdraw money from customer account if balance …

Member Avatar for stymiee
0
80
Member Avatar for persianprez

[COLOR=Red]The problem is that i dont know where to put the array to keep inventory expanding...someone please help.[/COLOR] [code] #include <iostream.h> #include <lvp\string.h> #include <lvp\vector.h> struct rec{ long sku; String artist; String album; long quantity; double price; };//end struct struct inv{ inv();//constructer vector<rec>album; }; inv::inv() :album(0) {} ///////////////////////////////////////////////////////////////// void read(rec&rec);//reads …

Member Avatar for iamthwee
0
145
Member Avatar for wujianwei

[code] class HugeInteger { public: HugeInteger(); void input(); int setNumber(char []); void output(); void convertToInteger(); void subtract(); private: char a[41]; char b[41]; int *array1; int *array2; int result[41]; }; #include<iostream> #include<cstring> #include<cstdlib> using namespace std; #include "HugeInteger.h" HugeInteger::HugeInteger() { input(); } void HugeInteger::input() { cout<<"Enter the 1st Integer: "; cin.getline(a,70,'\n'); …

Member Avatar for iamthwee
0
140
Member Avatar for squinx22

Is anyone here uses subversion to keep the C++ header and implementation files to the repository? I need your help... Pls reply.. Thank you...

Member Avatar for jwenting
0
115
Member Avatar for guystangr

How do I make C++ save the names entered by the user into another file on the computer??? [CODE][COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<cstdlib>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<string>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<fstream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<vector>[/COLOR] [COLOR=#0000ff]using [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]struct[/COLOR] players { string fname; string lname; [COLOR=#0000ff]int[/COLOR] atbats; [COLOR=#0000ff]int[/COLOR] runs; [COLOR=#0000ff]int[/COLOR] hits; [COLOR=#0000ff]int[/COLOR] doubles; [COLOR=#0000ff]int[/COLOR] triples; [COLOR=#0000ff]int[/COLOR] hrs; [COLOR=#0000ff]int[/COLOR] rbi; [COLOR=#0000ff]int[/COLOR] sos; …

Member Avatar for Infarction
0
78
Member Avatar for bigben09

ok after all of the grades and first and last names are entered, what do i need to do to get it to print the grades with the names out in order from heighest to lowest? [CODE]#include "stdafx.h" #include <fstream> #include <iostream> #include <string> using namespace std; const int MAX …

Member Avatar for Lerner
0
90

The End.