49,761 Topics

Member Avatar for
Member Avatar for AmerJamil

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Joe_29

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 …

Member Avatar for rproffitt
0
302
Member Avatar for Amall_1

i want to search a record in a file and get its size in c++ and fstream, thanks in advance

Member Avatar for tinstaafl
0
91
Member Avatar for Henzolena

>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 …

Member Avatar for Reverend Jim
0
105
Member Avatar for lolici

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 …

Member Avatar for thines01
0
393
Member Avatar for Hasnain_1
Member Avatar for Agni

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 …

Member Avatar for Magee_1
0
3K
Member Avatar for sheltask

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 …

Member Avatar for Less_1
1
824
Member Avatar for Noname_1

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 …

Member Avatar for Reverend Jim
0
468
Member Avatar for Ummu_1

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?

Member Avatar for ddanbe
0
118
Member Avatar for gugushe

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

Member Avatar for tinstaafl
0
1K
Member Avatar for Anna_12

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.

Member Avatar for Nihar_2
0
274
Member Avatar for John_159

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 …

Member Avatar for Nihar_2
0
12K
Member Avatar for Nomar_1

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 …

Member Avatar for StuXYZ
0
352
Member Avatar for rjadkins

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 …

Member Avatar for rjadkins
0
287
Member Avatar for Joe_29

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 …

Member Avatar for rproffitt
0
596
Member Avatar for DavidB

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 …

Member Avatar for pty
1
390
Member Avatar for guest_1

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 …

Member Avatar for JamesCherrill
0
323
Member Avatar for Mirty

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]}, …

Member Avatar for AssertNull
0
457
Member Avatar for Maram_1

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. …

Member Avatar for rproffitt
-1
300
Member Avatar for clarkkent021

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 …

Member Avatar for Aatulya
0
2K
Member Avatar for Lindsey_4

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. …

Member Avatar for AssertNull
0
338
Member Avatar for Vokeh

#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'

Member Avatar for ddanbe
0
126
Member Avatar for d1e9v85

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; …

Member Avatar for White_2
1
762
Member Avatar for MUHAMMAD_138

/* #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) …

0
273
Member Avatar for guest_1

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 …

Member Avatar for ddanbe
0
132
Member Avatar for francis_6

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 …

Member Avatar for happygeek
0
147
Member Avatar for MUHAMMAD_138

**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 …

Member Avatar for rproffitt
0
453
Member Avatar for ReneeJA

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 …

Member Avatar for owlowl076
0
1K
Member Avatar for Jhai_1

The End.