[A89] Re: [OT] C++ help
[Prev][Next][Index][Thread]
[A89] Re: [OT] C++ help
That wasn't supposed to work. It was intended to give a possible way to go
about making a workable program. Tonight, after I made that e-mail, I made a
program that works on that basis.
Btw, this might seem stupid, but what is a%b?
oh well,
--Matt
>From: Kevin Goodsell <goodsell@bridgernet.com>
>Reply-To: assembly-89@lists.ticalc.org
>To: assembly-89@lists.ticalc.org
>Subject: [A89] Re: [OT] C++ help
>Date: Thu, 31 Jan 2002 19:27:34 -0700
I don't think we should be doing someone's (off topic) homework.
Luckily, this is not a valid C++ program, and even if the code were
corrected probably wouldn't work in a satisfactory way.>Here's a tip for the
OP. Consider what the following operations do:
>
>a / b
>a % b
>
>particularly when the value of b is 10, 100, 1000, etc.
>
>-Kevin
>
>On Thu, 31 Jan 2002 16:12:05 -0700, you wrote:
>
> >
> >Here's an example:
> >yada......
> >main()
> >cin<<digit1;
> >cin<<digit2;
> >cin<<digit3;//etc.
> >//
> >//
> >if(digit1=3D=3Ddigit6 && digit2=3D=3Ddigit5 && digit3=3D=3Ddigit4)
> >{
> >cout>>"That's a palindrome";
> >}
> >return;
> >}
> >hope this works...
> >----- Original Message -----
> >From: "Matt" <kinchu89@hotmail.com>
> >To: <assembly-89@lists.ticalc.org>
> >Sent: Thursday, January 31, 2002 4:06 PM
> >Subject: [A89] Re: [OT] C++ help
> >
> >
> >>
> >> I am not advanced in C++, so this might sound stupid, but maybe have =
>them
> >> enter each of the 6 digits seperately(i.e. enter the first, enter, =
>enter
> >the
> >> second, etc.) and then see if the first and sixth are equal, second =
>and
> >> fifth, etc, etc. If that doesn't work, sorry, like I said, I am not =
>very
> >> good in C.
> >> --Matt
> >> ----- Original Message -----
> >> From: "Ashley Harrison" <skinnej16@juno.com>
> >> To: <assembly-89@lists.ticalc.org>
> >> Sent: Thursday, January 31, 2002 3:37 PM
> >> Subject: [A89] [OT] C++ help
> >>
> >>
> >> >
> >> >
> >> > I need some help w/ a program for c++, i need to take a six-digit =
>number
> >> > entered by the user that could be a possible palindrome(a six digit
> >> > number that reads the same front and back, i.e. 123321, 456654), the
> >> > program has to determine if the number is a palindrome or not, and =
>all i
> >> > can use is if/else statements and the switch statement and logical
> >> > operators, any ideas?
> >> >
> >> > Chris
> >> > ________________________________________________________________
> >> > GET INTERNET ACCESS FROM JUNO!
> >> > Juno offers FREE or PREMIUM Internet access for less!
> >> > Join Juno today! For your FREE software, visit:
> >> > http://dl.www.juno.com/get/web/.
> >> >
> >> >
> >>
> >>
> >
>
>
--Matt
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Follow-Ups: