Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,378 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,023 people online right now. Registration is fast and FREE... Join Now!




Letters

 
Reply to this topicStart new topic

Letters

grinsalot
2 Sep, 2006 - 01:36 PM
Post #1

D.I.C Head
**

Joined: 8 Apr, 2006
Posts: 50


My Contributions
Deleted

This post has been edited by grinsalot: 5 Sep, 2006 - 09:29 AM
User is offlineProfile CardPM
+Quote Post

frog
RE: Letters
3 Sep, 2006 - 02:11 AM
Post #2

unleashed
Group Icon

Joined: 26 Mar, 2006
Posts: 682


Dream Kudos: 500
My Contributions
first of all please check the number of braces you used in the if statement.
if they are ok then could you give the conditions on which the output id dependent .maybe that would help smile.gif
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Letters
3 Sep, 2006 - 03:59 AM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,935



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
Actually the limitation of your code is that your function works fine as long as the following condition is met:

width <= ( height / 2 ) + 2

EDIT : My bad...Didn't realise you were trying to make an R...I thought it was an 'A'.
User is offlineProfile CardPM
+Quote Post

grinsalot
RE: Letters
3 Sep, 2006 - 05:43 PM
Post #4

D.I.C Head
**

Joined: 8 Apr, 2006
Posts: 50


My Contributions
QUOTE(frog @ 3 Sep, 2006 - 03:11 AM) *

first of all please check the number of braces you used in the if statement.
if they are ok then could you give the conditions on which the output id dependent .maybe that would help smile.gif

Hi frog,

Thank you for your comments. The braces are all fine. The user is asked to input any height and width of their choice -they can be different values. I have stored each value in its own variable.

I just can't seem to get the boolean expression correct.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 01:42AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month