Check In: Submit Your C++ Questions Lets Solve - Programming (2) - Nairaland
Nairaland Forum › Science/Technology › Programming › Check In: Submit Your C++ Questions Lets Solve (6541 Views)
| Re: Check In: Submit Your C++ Questions Lets Solve by 1stdami(op): 2:23pm On Jun 28, 2015 |
BlueMagnificent:well if u say so mayb we have different meaning for oop |
| Re: Check In: Submit Your C++ Questions Lets Solve by 1stdami(op): 2:24pm On Jun 28, 2015 |
jacob05:to compute wat |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 3:52pm On Jun 28, 2015 |
BlueMagnificent:Boss Abi ooo.... Just ain't ready to push the argument ni ooo... How's the game project going? |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 3:54pm On Jun 28, 2015 |
1stdami:the question na |
| Re: Check In: Submit Your C++ Questions Lets Solve by BlueMagnificent(m): 6:09pm On Jun 28, 2015 |
jacob05:Its really going well, getting interesting day by day |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 1:16am On Jun 30, 2015 |
Hmmm. Ok... I need an elegant way using oop concepts to solve the below problem.... The program can accept any number of mixed fraction, fraction or whole numbers and operations to perform on them... It should follow mathematical rules in solving them .... The program should , in the end, print the values accepted "elegantly" and results.. www.nairaland.com/attachments/2566275_imag20251_jpeg289e6d9aae576e422a9704ae0757fd0e CC pcguru1 1stdami BlueMagnificent seunthomas |
| Re: Check In: Submit Your C++ Questions Lets Solve by cotmag(m): 10:46pm On Jun 30, 2015 |
I installed a visual c++ program successfully few days ago but each time I tried to open the program, it will display the message: program can't open. Pls how can I resolve the problem? |
| Re: Check In: Submit Your C++ Questions Lets Solve by Nobody: 9:04am On Jul 01, 2015 |
jacob05:Hi jacob working on it, though might be late to submit cuz of work but out of curiosity (3 1/2) how would that be inputted am assuming the method will take 7/2 as 3 1/2 will might be interpreted as 31 then / 2 my intention is to parse the text. interesting task will get back on this, but might be slow but this is interesting regardless. ![]() |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 12:29pm On Jul 01, 2015 |
pcguru1:Thanks boss... I care less how inputs are accepted...you can use the values in the pix... All I need is the implementation |
| Re: Check In: Submit Your C++ Questions Lets Solve by 1stdami(op): 2:19pm On Jul 01, 2015 |
jacob05:do you mean that u dont mind if i change this fractions to decimal also |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 5:10pm On Jul 01, 2015 |
1stdami:No oooo...decimal ke...That'd defect the main purpose of the question |
| Re: Check In: Submit Your C++ Questions Lets Solve by trigar12(m): 6:52pm On Jul 01, 2015 |
1stdami:I wanna learn c++ but all the ebooks I ve been reading are always getting me confused ... Can you recommend a really good one for me please? I really wanna learn this language |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 8:14pm On Jul 01, 2015 |
trigar12:C++ problem analysis to program design...book is good |
| Re: Check In: Submit Your C++ Questions Lets Solve by 1stdami(op): 9:48am On Jul 02, 2015 |
trigar12:i will advice u watch videos on youtube rather dan those books it is better for beginners you can search "bucky tutorials" on youtube |
| Re: Check In: Submit Your C++ Questions Lets Solve by nembudziya(m): 12:10pm On Jul 04, 2015 |
1stdami:what is a scope operator :: and how is it used,thank you. |
| Re: Check In: Submit Your C++ Questions Lets Solve by nembudziya(m): 12:12pm On Jul 04, 2015*. Modified: 7:24am On Jul 05, 2015 |
codemarshal08:ok,thanks but what OS is used by the handheld portable printers |
| Re: Check In: Submit Your C++ Questions Lets Solve by nembudziya(m): 12:15pm On Jul 04, 2015 |
bowofolu:ok, thank you. Suppose i return 0,what part of the code you suggest i put the command |
| Re: Check In: Submit Your C++ Questions Lets Solve by nembudziya(m): 12:19pm On Jul 04, 2015 |
jacob05:thats right.most programs running on windows were written in c++. |
| Re: Check In: Submit Your C++ Questions Lets Solve by codemarshal08(m): 3:53pm On Jul 04, 2015 |
nembudziya:could you please rephrase your question, can't really understand it |
| Re: Check In: Submit Your C++ Questions Lets Solve by moderatorr1: 4:30am On Jul 05, 2015 |
There is a healthy c++ tutorial here if you need more help : http://braintem.org/series/view/43991/ |
| Re: Check In: Submit Your C++ Questions Lets Solve by nembudziya(m): 7:25am On Jul 05, 2015 |
codemarshal08:sorry abt dat, iv modified the qsn. |
| Re: Check In: Submit Your C++ Questions Lets Solve by gmus: 8:33am On Jul 05, 2015*. Modified: 11:06am On Jul 05, 2015 |
nembudziya:solution. 1. Declare an ofstream object 2. open d object using d printer name in place of a filename. 3. write to d printer as u would write to a file. In general to write to a printer, replace d filename/fileapath to a printername/printerpath in a file writing program. So a general solutn is this: Write program that writes to file but use the printer name/path in place filename/path. POST EDIT; Here is a good example: http://www.dreamincode.net/forums/topic/43225-c-program-to-use-console-for-input-and-printer-for-output/ |
| Re: Check In: Submit Your C++ Questions Lets Solve by nembudziya(m): 12:45pm On Jul 05, 2015 |
gmus:hmmmmmm..........i am astounded. Whats a console, though. Guy, i think you also have to help me on friendship and inheritance cos its one area i'd to master, plus pointers, wow, especially the *this pointer. Hope to hear from you concerning this one matter. Thanks in advance. |
| Re: Check In: Submit Your C++ Questions Lets Solve by codemarshal08(m): 1:49pm On Jul 05, 2015 |
nembudziya:It seems you are a beginner programmer. I will advice you get a good c++ book as Jacob Suggested. These things are not as complex as you think. C++ is not a language u rush over. just take your time and learn the damn Beast ! |
| Re: Check In: Submit Your C++ Questions Lets Solve by gmus: 3:55pm On Jul 05, 2015*. Modified: 4:13pm On Jul 05, 2015 |
nembudziya:See this: https://en.m.wikipedia.org/wiki/Console_application I know dt the ofstream object is a stream. it is like an interface btw a program and and a device. When u write with ofstream u are not writng to a devicr. You are writing to a stream. Files and printers are examples of devices. POST EDIT: Download and read ; C++: The Complete Reference by Hebert Sheildt 4th Edition. U can also check my post in my main nairaland account - mnairaland |
| Re: Check In: Submit Your C++ Questions Lets Solve by gmus: 4:18pm On Jul 05, 2015 |
1stdami:Put simply object oriented programming is an approach to programming that uses classes and objects. 1stdami: well if u say so mayb we have different meaning for oopPut simply object oriented programming is an approach to programming that uses classes and objects. 1stdami:Put simply object oriented programming is an approach to programming that uses classes and objects. A class is a definition of an object. It is an abstraction. it does not exist. A class specifies d form that an object must take when it is created. An object is a physical realization of a class. |
| Re: Check In: Submit Your C++ Questions Lets Solve by gmus: 4:33pm On Jul 05, 2015 |
nembudziya:Files(i.e. disk),console, and printer are examples of devices. cout writes to stdout by default which is d console. It can be redirected to write to any other output device. If u wish to write to a device and retrieve later dn dt device must neccesatily be a file. |
| Re: Check In: Submit Your C++ Questions Lets Solve by gmus: 4:45pm On Jul 05, 2015 |
1stdami:Simply put. A console can be described as a non-graphical screen writing environment as opposed to a window which is graphical. |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 9:31pm On Jul 05, 2015 |
Guess I'd proffer my (temporal) solution. CC pcguru1 1stdami BlueMagnificent seunthomas |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 9:33pm On Jul 05, 2015 |
fraction.h
|
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 9:36pm On Jul 05, 2015 |
fraction.cpp
REF : http://www.math.ucla.edu/~wittman/10a.1.10w/ccc/ch17/index.html |
| Re: Check In: Submit Your C++ Questions Lets Solve by jacob05(m): 9:38pm On Jul 05, 2015*. Modified: 9:55pm On Jul 05, 2015 |
main.cpp
www.nairaland.com/attachments/2566275_imag20251_jpeg289e6d9aae576e422a9704ae0757fd0e REF : http://www.math.ucla.edu/~wittman/10a.1.10w/ccc/ch17/index.html CC pcguru1 1stdami BlueMagnificent seunthomas |
Mybb Expert Needed: Please Check In Here • Please I Get This Error When Submit Form (notice: Undefined Index) • 2 • 3 • 4
Pls I Need Registration Key For Visual Web Developer 2005 Express Edition • How Do I Pay For Apps On Google Play Store • Hello House: Let's Do A Little PHP Using PDO

;