C++ Questions Topic!

Need programming help? Want to post programming tips? Are you programming a game and want to show it off? That and more here.

Re: C++ Questions Topic!

Postby Venexis » January 24th, 2013, 10:19 pm

Hmm... could you maybe send me a short code that works for you, for testing purposes?
Spoiler: show
Image
10/10, thanks FrozenFire :3

Or add me, at Venexis#9902.
User avatar
Venexis
Prophet of Shadowsquid

 
Posts: 1342
Joined: August 19th, 2009, 7:15 am
Location: Headquarters of EVIL! And definitely NOT my garage... Nope...

Thumbs Up given: 89 times
Thumbs Up received: 211 times

Re: C++ Questions Topic!

Postby Killswitch » April 20th, 2013, 3:27 pm

Sorry for the almost-three-months bump.

I have a question: How do you draw simple graphics without the use of a library?
Killswitch
Prophet of Shadowsquid

 
Posts: 1185
Joined: October 27th, 2010, 1:26 am

A Good Start

Thumbs Up given: 1309 times
Thumbs Up received: 28 times

Re: C++ Questions Topic!

Thumbs up x1

Postby Jellonator » April 20th, 2013, 4:42 pm

Killswitch wrote:Sorry for the almost-three-months bump.

I have a question: How do you draw simple graphics without the use of a library?

Without a library, you are restricted to the terminal. Luckily, most modern computers, if not all, if not all have OpenGL support.
bepis lmao
User avatar
Jellonator
Code: Awesome

Error contacting Twitter
 
Posts: 342
Joined: August 28th, 2010, 6:25 am
Location: With Waldo.

Thumbs Up given: 18 times
Thumbs Up received: 42 times

Re: C++ Questions Topic!

Thumbs up x1

Postby -BY » September 4th, 2013, 7:07 am

Bump because I'd need help as well.

I'm taking programming lessons at my working place for a bit now and am supposed to find a solution for a problem with some restrictions till tomorrow. I hope to get some help. Even if it's probably rather C related than C++. Anyways.

I'm supposed to get the program to round numbers + I need to explain the solution to everyone. No specific numbers. So for example 3.5546 would get changed to 3.555 or 3.5544 to 3.554. I shall only use +, -, *,/ and the int/double function.
The solution is somehow related to:

int x = (Number*100) +0.5
double y = x/100.0




I'm probably failing to understand something really simple. But some of you might know the feel if you got to an dead end.
I'd try to use 'if' functions and other stuff, but that's forbidden.

It'd be awesome if someone could explain the solution somehow.

Edit: Japes being awesome solved the problem.
Image

Big thank you to FrozenFire who created this masterpiece. : )
User avatar
-BY
Honorary Member

 
Posts: 900
Joined: May 23rd, 2012, 11:43 pm
Location: 298

Razzian Fighter

Thumbs Up given: 72 times
Thumbs Up received: 100 times

Previous

Return to Programming