Jump to content

  • Log In with Google      Sign In   
  • Create Account

LennyLen

Member Since 20 Apr 2010
Offline Last Active Today, 11:44 AM

Posts I've Made

In Topic: OGRE Bicycles

Yesterday, 09:49 PM

I guess people think these bikes suck... well, don't blame them!

 

The reaction you got (or didn't get) is about the same as what you'd get if you went to a bike site and asked what the people there thought about a specific computer model.  


In Topic: North Korean Run 'n' Gun

17 December 2014 - 07:31 AM

w00t! Apparently I'm winning the kickstarter :D


In Topic: What are the apps which you use most ?

17 December 2014 - 07:22 AM

Not in any specific order, but ones I use a lot:

 

Chrome

Gmail

Google Maps

Facebook

ES File Explorer

Spotify

Google Play Books

Wikipedia

IMDB

YouTube

My bank's app

Local transport network app

Out of Milk

Quick Office


In Topic: C++ Number guessing

15 December 2014 - 08:18 AM


What do you suggest to use to replace system("cls")?

 

There is no universal way of doing this.   There's no way of guaranteeing that stdout is even going to the screen, so clearing the output when it could be going to a printer or a file makes little sense.  For a simple number guessing game, I'd just leave the console as it is and not worry about clearing it. There are libraries such as ncurses/pdcurses that are designed to allow console output, but I haven't used either one for a long time so I have no idea how portable they are these days.


In Topic: C++ Number guessing

15 December 2014 - 07:36 AM

That's definitely better.  Now try doing it without using any global variables at all.

 

Also, be aware that using system("cls"); is not portable.  It will work on DOS/Windows, but is unlikely to work on any other operating system.


PARTNERS