49,761 Topics
| |
i have to get 2 numbers (each of length 20 digits) from user and have add them and display the result (using arrays) . i have no idea how to add such a long digit number...please tell me how can i add both numbers. your quick response will be highly … | |
I have an assignment to output contents from a .txt file to html. I'm able to output the information from the .txt to the console but how would I output it into an html page? The txt and html files are in the same folder as my .cpp file. #include … | |
i want to search a record in a file and get its size in c++ and fstream, thanks in advance | |
>I need help! >is there any body can help me with it? 1. write a C++ program that will ask the user to keep entering numbers until a number between -20 and 20 is entered, find how many negative and positive numbers were entered, also the smallest negative number and … | |
Hello everyone! I have created an editable list control (report style) with numbers. I want to save the content in a text file (each number below the other) and I used void CDataDialog::OnBnClickedOk() { CStdioFile file("test.txt", CFile::modeCreate); int nCount = m_List.GetItemCount();//m_List is control variable declared about list control for (int … | |
Hi, i have seen a lot of ppl say things like, 'this piece of code is more efficient than the other', 'this gives better performance' or 'more efficient memory wise' etc.. but i fail to understand that how in a normal coding scenario can i find out the efficiency of … | |
First I was on that console window, and everything seemed easy because I could break everything down and knew EXACTLY what I was doing to get what I wanted done. However, that boring text-window got tiring. I decided to move on, but that was the biggest mistake ever. For over … | |
Hi all, I have to solve a tripple sudoku. The program is supposed to solve the enlarged sudoku. We load 21 rows, each with 9 integers in the range <0.9>. Rows 1-9 (numbered so that the first line is numbered 1, etc.), 7-15 and 13-21 are to create a classic … | |
I have been trying to write a program of c++ of function of array for summation of odd numbers could I please get help on how to do it? | |
i got the following error when compiling a word count program, **error: expected unqualified-id before '.' token*.*; this error is at line 5 //class Split_file.hpp. #ifndef SPLIT_FILE_HPP_H #define SPLIT_FILE_HPP_H class Split_file.hpp { Split_file.hpp(); virtual ~Split_file.hpp(); protected: private: }; #endif // SPLIT_FILE_HPP_H | |
I am trying to sort the scores in ascending order but I do not have any idea to do sorting in class. Any help will be appreciatd. | |
very new to c++ . have an assignment when am to input some information about an item and write to a file . Have succesfully done that but now i i dont know how to delete a line of entry from the text file and save it . look at … | |
Ok I need to make a 3 part program thats made with c++. The first part is to write 10 number, and then program ask to ether repeat the number or to reapeat them reverse. Second part I need to make a program that ask for a word and later … | |
I need to make a spin coater machine. It spins in 3 stages and each stage have different speed(servo value) and time ( how long for it to spin). A lot of people recommended that I use FSM. I have decided to do the programming in FSM. I manage to … | |
This is a rock, paper, scissor, lizard, spock game. The computer's decision making is set up in the class and all input/output must take place in main. I am struggling with a few things: Setting up a score keeper - unsure how to keep score by comparing the output of … | |
I have translated many numerical math programs from FORTRAN into C++ and JavaScript. The original FORTRAN source code listings are posted on the NETLIB site and have been in the public domain for 20, 30, years. The C++ and JavaScript translations that I write are hand-coded, line-by-line, and repeatedly tested … | |
Hey, I would some assitance, I wrote this code to find the average between the max and the min and assign that value to the nan, nut i have to chnage up my code, to assign the NaN to the previous non-zero value. Example 112 113 114 116 NaN would … | |
Write a function write with variable number of arguments that takes a string first argument followed by any number of arguments of type double and prints on the screen a string formatted by the rules described below. The first argument may contain formats in curly braces of the form {index[:specifier]}, … | |
Write a C++ program to help the Administration of a football league to manipulate the list of players registered in different teams. There are 26 teams participating in the league, each is denoted by a letter in the range A to Z. Each team can have 11 players at most. … | |
Hi, I am trying to learn OOP with c++ with the help of Turbo C++ version 3.0 and "C++ Primer Plus" by stephen prata. according to the book, the NEW convention for including the iostream header file in c++ is in the following way: #include<iostream> but it causes an error … | |
Hello. In my assignment, I must use nested loops to write to and read from a file. We have not yet learned functions or arrays. The program should calculate and display total rent collected, average rent collected, the highest paying complex, and a warning if zero paid by a complex. … | |
#this program calculates the area of a right triangle #ask for input b=input('Enter the triangle base:') h=input('Enter the triangle height:') #Calculate and print area Area=(b*h)/2 Print '\n The base is '+str(b) + 'units' Print 'The height is 'str(h) + 'units' Print '\n The area is 'str(area + 'units' | |
hi guys ... this is a bubble sort program that i made [code=cplusplus] #include<iostream> using namespace std; #include<iomanip> using std::setw; int main() { const int arraysize = 10; int Bubble[ arraysize ]; cout << "Please enter 10 integers: " << endl; for ( int i = 0; i < arraysize; … | |
/* #include<iostream> #include <iomanip> using namespace std; int main() { int r=12,i,j,k; cout<<setfill(' ')<<setw(18); for(i=1;i<=r;i++) { j=r-0; if(i==12) { cout<<j; } } for(i=1;i<=r;i++) { j=r-11; k=r-1; if(i==1) { cout<<endl<<endl<<setfill(' ')<<setw(10); cout<<k; } if(i==2) { cout<<setfill(' ')<<setw(15); cout<<j; } } for(i=1;i<=r;i++) { j=r-10; k=r-2; if(i==3) { cout<<endl<<endl<<endl<<setfill(' ')<<setw(6); cout<<k; } if(i==4) … | |
I'm new to c++ and the programming world, I'm currently trying to write a code to find the max and min values and their average and assign the average obtain to a zero within a text file. Data.txt 110 109 109 109 110 111 112 113 115 112 0 103 … | |
you have been contracted as a software develper to design a point of sales system, the system is to work in a way that ,if a customer purchase an item on credit and it cost more than or equal to $100 the system should alert the sells personnel that sells … | |
**please help me i want to make a circular clock** Write a program to simulate an analog watch (number 1 to 12 to be arranged in circular fashion with all the three pointers for second minutes and hours ) on the screen. Use nested for loops. Use (.) dot for … | |
Please, i need a teacher to help me out...i am at the intro stage and i was wondering if someone would walk me through this please..i would appreciate it. Mr. Clark employs students who are exempt from taxes and others who are not. Write a program that will calculate and … | |
* * * * * * * * * * * * |
The End.