49,761 Topics
| |
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:! … | |
[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. … | |
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. | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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; … | |
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 = … | |
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] | |
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 … | |
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 … | |
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 | |
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. … | |
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 … | |
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"); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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: … | |
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) … |
The End.