49,761 Topics

Member Avatar for
Member Avatar for kuchick32

I'm working on a project and I have to extract each word of a line that the operator just entered in the program. I'm not sure how to do that. Any help with be super appreciated. Here is my code... [code] #include<iostream> #include<string> using namespace std;!! class StringModify! {! public:! …

Member Avatar for jonsca
0
117
Member Avatar for aquario20

[COLOR="Red"]HI IM STUDENT THAT NEED YOU HELP TO SOLVE THIS PROGRAMATION..PLEASEEE CAN YOU HELP ME TO SOVE IT ? THIS IS MY ASSIGNMET:[/COLOR] THE LOTTERY WINNERS The purpose of this exercise is to give you practice with searching and sorting algorithms. A lottery ticket buyer purchases 10 tickets a week. …

Member Avatar for SgtMe
-5
96
Member Avatar for Martje

I am trying to set a value in string for dateTimePicker1 but when i try dateTimePicker1->Value=System::Convert::ToDateTime("18/11/2010"); it doesn't change anything, the old value stays thesame. How do i change the dateTimePicker to a string value?(for example : "18/11/2010") Thanks in advanced.

Member Avatar for Martje
0
77
Member Avatar for tvand7093

Hi, I am relatively new to c++ and DW so this may sound a little stiff. I recently learned about classes and I was wondering if there is a way to take user input and set that input to a private variable. I know it would require accessors methods, but …

Member Avatar for tvand7093
0
75
Member Avatar for pgr_DW808

I am new to C++ programming and I'm having a little trouble. I have to create a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with …

Member Avatar for pgr_DW808
0
114
Member Avatar for yongj

Hello, forum :) Does anyone know a c++ code that performs the same actions as a "tee" command does in linux? Basically what the tee command does is read an input from an input stream and directs it to two places: 1) Displays the input stream on the screen 2) …

Member Avatar for yongj
0
1K
Member Avatar for Nandomo

Okay. I have a program I am writing similar to the lottery, my input file provides 10 combinations and my rand() produces 5 random numbers which I want to compare them against using binary and linear search. I know how to compare them 1 number at a time, but don't …

Member Avatar for Nandomo
0
788
Member Avatar for glenc70

OK im not sure if this is a programming or pc problem but please read on ok i made a program to display playing cards in random locations using cards.dll just for a bit of fun but on my main PC which has 2.19 GHZ processor and 1 GB ram …

Member Avatar for glenc70
0
169
Member Avatar for steve_Student

Hi i am a total beginner and studying for a FD degree in C++. My assignment states Assignment Details a telephone company requires a program to calculate call charges for their customers. The regular charge rate for long distance phone calls is £1.50 for the first 3 minutes (or part …

Member Avatar for steve_Student
0
177
Member Avatar for lochnessmonster

Ok....so here is my problem. I want to release a library where with my dllInjection class, whenever the user instantiates an object, it will automatically perform the injection for the user. The only arguments they need to provide will be the processName, and dllName. Anyways my question is, i understand …

Member Avatar for mike_2000_17
0
271
Member Avatar for eagles39

I cant display a board for some reason I added a catch statemnt but there is something wrong with the if statment inside the for loop but i dont what is wrong thugh with the if else statement. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; const int size …

Member Avatar for eagles39
0
130
Member Avatar for aznlitomik3

[B]Problem:[/B] Write a program which reads a stream of integers from a file and stores them in an array. The array is then analyzed to compute the average of all the values in the array and all of the values that are above the average should be printed out to …

Member Avatar for aznlitomik3
0
286
Member Avatar for sahil1991

hi to al i was doin some programming till i encountered this problem in the followin code... i am nt able to find anythn wrong with the code bt it's nt showing the right result. #include<iostream> #include<conio.h> using namespace std; class person { char* name; public: void get() { cout<<"enter …

Member Avatar for fmadsen
0
110
Member Avatar for VasquezPL

I wrote small proggy..and I dunno why it doesnt work...can you help me? [CODE] #include <string.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <cstdlib> #include <sstream> #include <iostream> using namespace std; int main() { string option[] = {"option1.txt","option2.txt","option3.txt","option4.txt"}; string token; string filename_token; string line,filename,filename1,c0,c1,c2,c3,c4,c5,c6; int i=4; …

Member Avatar for VasquezPL
0
155
Member Avatar for kelechi96

I don't understand why my code crashes when the variable "dicerolls" exceeds 15 [CODE]#include <iostream> #include <fstream> #include <string> #include <stdlib.h> #include <iomanip> using namespace std; int main() { string a_or_b; string aorbreverse; unsigned short int dicerolls; string y_or_n; double ab = 0.5; double aa = 0.5; double ba = …

Member Avatar for kelechi96
0
131
Member Avatar for Mellopv13

Given positive intergers a and b, find their greatest common divisor, their least common multiple and intergers s and t such that sa + tb = gcd(a,b)[CODE][/CODE]

Member Avatar for mlesniak
0
86
Member Avatar for Emmitt310

Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i was taught to set up graphics: #include <graphics.h> int …

Member Avatar for musawir
0
896
Member Avatar for bigman91

I'm new to programming (only 4th week) and i am supposed to try and create a program that will... well ill just post what it wants as its alot. I'm just not sure how to get started on this as im drawing a blank on what to do. it is …

Member Avatar for Purrenhage
0
1K
Member Avatar for maverick405

Hi, I wounder if anyone can help me start a program which takes "USER INPUT" for any 10 numbers and then print them in reverse order using arrays what should I need to do to get started with this. Please help. Thanks, Maverick

Member Avatar for Rootz
0
142
Member Avatar for BimBam

Hi guys :) I'm stuck with same compiler messages since yesterday, and thought it might be helpful to aks for help :) The prog I'm developing is relatively big, so I'll post just snippets in order to describe what I'm doing. So, I have a class with a few subclasses. …

Member Avatar for alwaysLearning0
0
214
Member Avatar for SVSU_Student

I have read a file to an array successfully. However, when I attempt to pass the array to the function calcAvg(calculate average) and return the average, I get a zero. //Function prototype double calcAvg(double [], int); //Function call calcAvg(score,SIZE); I set a variable called score_length (in main) to get the …

Member Avatar for jonsca
0
221
Member Avatar for bookmark

For lines 23 and 22 it says "you cannot assign to a variable that is constant." anyone know how to fix this? thanks in advanced, bookmark. [CODE]#include <iostream> #include <string> #include <algorithm> using namespace std; void print (const string & s); string reverse(const string & s); int main(){ print("blah"); reverse("blah"); …

Member Avatar for alaa sam
0
150
Member Avatar for alaa sam

Hi I'm asked to write two functions to find the factorial one using recursion and the other using loops. the range of numbers which if have to output their factorials is 1 to 500(N) after some time the computer won't be able to find the factorial .I have to output …

Member Avatar for alaa sam
0
101
Member Avatar for yoyo59

Here's an assigment I was just emailed. After being ill for some time with mono I've been forced to teach myself the material. I have no idea what this assignment is asking for. "You are to write a program that reads in one integer first indicating the digits in length …

Member Avatar for WaltP
0
105
Member Avatar for Spiffy P Mcgee

I've gotten stuck on my assignment. The compiler says that the code is fine, but the program doesn't work properly. [CODE]#include <iostream> #include <iomanip> #include <fstream> using namespace std; void display_days (int []); void total_days (int []); void average_days (int []); void maximum_days (int []); void minimum_days (int []); int …

Member Avatar for jonsca
0
143
Member Avatar for slychronic

hie guys I am creaating a program employee data base its a simple c++ program tht should allow a user to input employee details view search edit and delete......now the prblem am having is i want to creat a function that will give an employee a num when entered i …

Member Avatar for slychronic
0
378
Member Avatar for lochnessmonster

im curious if there is any type of standard....or if anyone could help explain what all should be placed in .H files? (prototypes/etc) -thx

Member Avatar for mike_2000_17
0
286
Member Avatar for Rootz

This is my first post and I am just starting with arrays, but I am still stuck on how this function is suppose to work. I had to make two void functions and two-value returning functions. Main should call the getTestScores and get three test scores, then it should call …

Member Avatar for MasterGberry
0
133
Member Avatar for syok

i need answer for my asingment,please.....please using two dimentional arrays, write a function which multiplies an mxn matrix of integers by an nxr matrix of integers. Use global constant declarations before the main program to give test values for m,n and r, example input/output mingh be INPUT FIRST (2x2) MATRIX: …

Member Avatar for Ancient Dragon
0
82
Member Avatar for babaidebnath

Hi, I compiled the sample provided by Microsoft which created 3 files. Those are instlsp.exe, nonifslsp.dll, ifslsp.dll. So I installed it with instlsp.exe -i -o 1002 -o 1003 -o 1004 -n "Foobar" -d nonifslsp.dll Well its installed perfectly. But when now I tried open any web page, not opening. 1) …

0
50

The End.