Seriously need help with C++

Discussion in 'SHH Community Forum' started by Tempest19, Nov 27, 2007.

  1. Tempest19 Registered

    Joined:
    Aug 25, 2006
    Messages:
    7,350
    Likes Received:
    0
    Hey by any chance does anyone on here know how to use C++?

    Because I have an assignment in school that I can't begin to comprehend due to having one of those teachers that talks too fast to understand.

    You scratch my back, I scratch yours...
     
  2. dr venture Registered

    Joined:
    Feb 26, 2006
    Messages:
    4,539
    Likes Received:
    0
  3. XSpidercideX Registered

    Joined:
    Apr 9, 2004
    Messages:
    857
    Likes Received:
    6
    Yes I can help.

    What do you need explaining on?
     
  4. Tempest19 Registered

    Joined:
    Aug 25, 2006
    Messages:
    7,350
    Likes Received:
    0
    Don't understand a single thing about putting the following together:

    [​IMG]

    Here's what I was able to put together:

    RADIO BUTTON: FRESHMAN, JUNIOR, SOPHMORE, ETC.

    <form>
    <input type="radio" name="Grade" value="Freshman"> Freshman
    <br>
    <input type="radio" name="Grade" value="Junior"> Junior
    <br>
    <input type="radio" name="Grade" value="Sophomore"> Sophomore
    <br>
    <input type="radio" name="Grade" value="Senior"> Senior
    </form>

    SELECTION LIST

    <wml>
    <card title="What shows do you like?">
    <p>
    <select>
    <option value="Supernatural">Supernatural</option>
    <option value=&#8221;Smallville">Smallville</option>
    <option value="Prison Break">Prison Break</option>
    <option value="Heroes">Heroes</option>
    </select>
    </p>
    </card>
    </wml>

    CELSIUS AND FARENHEIT

    <html>
    <head>
    <script type="text/javascript">
    function convert(degree)
    {
    if (degree=="C")
    {
    F=document.getElementById("c").value * 9 / 5 + 32
    document.getElementById("f").value=Math.round(F)
    }
    else
    {
    C=(document.getElementById("f").value -32) * 5 / 9
    document.getElementById("c").value=Math.round(C)
    }
    }
    </script>
    </head>

    <body>
    <p></p><b>Insert a number into one of the input fields below:</b></p>
    <form>
    <input id="c" name="c" onkeyup="convert('C')"> degrees Celsius<br />
    equals<br />
    <input id="f" name="f" onkeyup="convert('F')"> degrees Fahrenheit
    </form>
    <p>Note that the <b>Math.round()</b> method is used, so that the result will be returned as an integer.</p>
    </body>

    </html>
     
  5. XSpidercideX Registered

    Joined:
    Apr 9, 2004
    Messages:
    857
    Likes Received:
    6
    Are you doing this in Visual Studio.NET?
     
  6. Tempest19 Registered

    Joined:
    Aug 25, 2006
    Messages:
    7,350
    Likes Received:
    0
    No, just basic C++
     
  7. DareDemon Hi! I like shorts!

    Joined:
    Oct 28, 2003
    Messages:
    2,286
    Likes Received:
    0
    I'm taking see plus plus, but this is too advanced for me.
     
  8. XSpidercideX Registered

    Joined:
    Apr 9, 2004
    Messages:
    857
    Likes Received:
    6
    Yeah, sorry, I saw your code from your PM and it was a bunch of HTML and Javascript...

    not C++ at all.

    If you were using Visual Studio to develop I could help because you can generate html controls and such through the framework. I don't know enough to help you with straight C++...sorry.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
monitoring_string = "afb8e5d7348ab9e99f73cba908f10802"