Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
66% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
2 Commented Posts
~19.4K People Reached
About Me

black hair, brown eyes, medium built, male

Favorite Forums
Favorite Tags

35 Posted Topics

Member Avatar for lewashby

Each of your cpp files have an int main()! There can only be 1 int main() in your entire program. Decide which of the cpp file have the int main() or introduce a main.cpp which only consists of int main().

Member Avatar for マーズ maazu
0
574
Member Avatar for kouty

This problem is hard coz' you need to find common denominators in decimal input with Roman Numerals as common factors. Then you output that Roman Numeral, subtract it with decimal input. Keep doing this until 0 decimal inputs are left. Outputing Roman Numeral is ofcourse parsing int from gcd() to …

Member Avatar for kouty
0
647
Member Avatar for chubbyy.putto

Not sure what you mean by IntBinaryTree when your data are in strings? A better tree design will be template BinaryTree<int> ? BinaryTree<strings> ?

Member Avatar for bernardo.mclobo
0
418
Member Avatar for overwraith

You try to emulate the original with what system resource you have. Also need to reverse engineer/intelligent guesses to what the intent of certain parts of the code does.

Member Avatar for deceptikon
0
253
Member Avatar for sirlink99

Hi there, r,g,b should be values 0 < n < 255. If you have 255 straight for all 3, you get black! Which is doing what it is suppose to do, but not what your expecting. Could you just keep the r,g,b values and focus on propagating neighbouring pixels?

Member Avatar for JamesCherrill
0
564
Member Avatar for Pilot122x

Dunno about you, but my network admin would not allow root logins across the internet. In your case, better find out from your net admin which user account are allowed to connect to the port.

Member Avatar for マーズ maazu
0
236
Member Avatar for Mr.M

I suggest you read Andrew Tanenbaums "Modern Operating Systems" book. You will realize how complex schedulers and interrupt requests occurs in the nanoseconds!

Member Avatar for Mr.M
0
336
Member Avatar for jamesjohnson25

I think you mean to output the BankAccount& to std::cout but forgot to call BankAccount::getAccName(); std::cout << db.findAccount("james").getAccName() << std::endl; Is what you need.

Member Avatar for David W
0
589
Member Avatar for can-mohan

1. C++ Primer 5th Ed. Chapter 18. Section 1.3 pg. 953-955. There is an exercise there to practice this new technique. 2. No, technically the object is *not yet* constructed. Do the exercise 18.7 C++ Primer 5th Ed. Then stress test your object to your hearts content.

Member Avatar for can-mohan
0
392
Member Avatar for TObannion
Member Avatar for Simon180

Sun OS is scalable for thousands of file sockets simultaneously opened. You are better off with the server being on Sun Sparc. Windows could not hope to cope with that kind of work load. So why bother?

Member Avatar for Simon180
0
232
Member Avatar for nitin1
Member Avatar for lamlomeh

You know Public Domain Curses, libpdcurses.so will enable you to output interesting ASCKey characters besides '#' and '*'. Google for pdcurses.

Member Avatar for David W
0
147
Member Avatar for basit_3

sdltutorials.com is a good start. If you don't like SDL there is SFML-dev.org. Again the tutorials from sdltutorials.com can be used in SFML with minor modifications. :wink:

Member Avatar for Schol-R-LEA
0
230
Member Avatar for raghavanp

int *x = new int[10]{1,1,1,1,1,1,1,1,1,1}; // missing this: g++ -std=c++11 for(auto &it : x) std::cout << it << " "; delete x;

Member Avatar for マーズ maazu
0
245
Member Avatar for basit_3

will your calculator be able to convert Dec <-> Binary <-> Hex <-> Oct ? How many decimal places will it print 22/7 or pi?

Member Avatar for basit_3
0
108
Member Avatar for Lutina

Normally, your IDE handles the Makefile for you. Since you said cygwin, i assume you know about Automake, Autoconf & Libtool. These tools will also configure your Makefile and do the necessary file linkages. However, there are licensing issues to consider when using the above tools...

Member Avatar for mike_2000_17
0
276
Member Avatar for markdean1989

At Msys bash prompt, type export <enter> Cut and paste your environment variables here.

Member Avatar for マーズ maazu
0
135
Member Avatar for markdean1989

Should have treat me buffet lunch while i configure/setup Netbeans C/C++ module for you. Now, do you get code highlights/auto-completes when you type "." or "->" following a class?

Member Avatar for Moschops
0
202
Member Avatar for markdean1989

**IF** your in Malaysia, I can setup Mingw32 + JDK1.8 (not the JVM) + Netbeans8 for RM50.0 or treat me to buffet lunch in 5 star hotel with wifi. We shall lunch and install/setup simultaneously and you will settle our bill. Agree?

Member Avatar for markdean1989
0
202
Member Avatar for HuePig

2 byte increment please: for(int i = 0; i < fSize; i += 2) { char buf[2] = ""; aIStream >> buf[i] >> buf[i+1] >> flush; // Do something with buf[1st] & buf[2nd] here. }

Member Avatar for マーズ maazu
0
248
Member Avatar for Tycellent

man ascii on my bash prompt provides the ascii table, the printable ones that is.

Member Avatar for マーズ maazu
0
298
Member Avatar for TheFearful

http://www.sdltutorials.com/sdl-tutorial-tic-tac-toe This is what you need.

Member Avatar for マーズ maazu
0
3K
Member Avatar for can-mohan

I would rather stick with C++Primer 5th Ed. Chapter 15, pg. 639-648. The design pattern works polymorphically and secure through private instantiation of smart pointers.

Member Avatar for can-mohan
0
427
Member Avatar for Abdel Fattah

It would take more than a semester to answer this one. I recommend reading 2 books: 1. Erich Gamma "Design Patterns" 2. C++ Primer 5th Ed. Besides reading books, do get involve in opensource projects for experience in class design and OO problem solving.

Member Avatar for マーズ maazu
0
121
Member Avatar for obinaysamanoden

You noticed the frequent occurance of check() with 1st arg differing types, yes? This is a prime candidate for template function in C++. Convert your c-style check() into check<T>(T 1st_arg, ...); That should improve code readability and encourage code re-use. Can you see other similarities in various scenarios of the …

Member Avatar for bernardo.mclobo
0
173
Member Avatar for Omar El Hussein
Member Avatar for マーズ maazu
0
183
Member Avatar for SwtNemesis

How about a "partial" solution? Like how many days since the epoch, the year 1970 Jan 1, 7:00 a.m.? You have to limit the scope of your inputs somehow...

Member Avatar for David W
0
2K
Member Avatar for DS9596

Why do you want to continuously compound interest? It is theoretical text book stuff, in practice, it should be simple interest formula.

Member Avatar for YarMak
0
209
Member Avatar for ifra.raja.1

You know cout uses operator<<, now you want to do the reverse, operator>> with your class Ticket.

Member Avatar for Shining_1
0
144
Member Avatar for Lilgenski16

i was thinking of Unicode characters for representing card suits and other text line graphics. If you want a better representation of Blackjack, i recommend SFML.

Member Avatar for マーズ maazu
0
2K
Member Avatar for hamza233

How far your game goes depends alot on the operating system, SDK and programming language. For instance, I ported an SDL tutorial based on Tic-tac-toe over to SFML and felt that further improvements can be made **if** SFML can simplify networking API (2 player mode) and/or Image class that supports …

Member Avatar for rubberman
0
200
Member Avatar for マーズ maazu

Greetings all, I use MinGW32 for doing problems and have reach a point where standard malloc() would throw bad_alloc() whenever i call new. What other alternatives for Windows in memory allocation?

Member Avatar for rubberman
0
1K
Member Avatar for iqra aslam

void printBinary(char ch) noexcept { for(int i = 7; i >= 0; --i) if(ch & (1 << i)) std::cout << "1"; else std::cout << "0"; } int main() { int num = 56; std::cout << std::endl; printBinary(num); std::cout << std::endl; return 0; } return 0;

Member Avatar for Sam_6
-1
228
Member Avatar for Joemeister

Greetings all, some one recommended earlier to improve the parser, instead of handling char by char, the improved parser will handle entire tokens. Then a template function to convert string tokens into integers/doubles is used to handle all inputs. At present, my evaluate() only handles BODMAS, I think this program …

Member Avatar for マーズ maazu
0
918

The End.