CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Building Interactive UIs with ASP.NET Ajax: Rebinding Client-Side Events After a Partial Page Postback
  • Speed Up Repetitive Insert, Update, and Delete Query Statements
  • Binding Data to Silverlight 4.0 Controls Using ASP.NET MVC Framework 2.0
  • ADO.NET Data Services in the .NET Framework

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > .NET Programming > C-Sharp Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    C-Sharp Programming Post questions, answers, and comments about C#.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 22nd, 2009, 09:15 PM
    DMNX DMNX is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 7
    DMNX is an unknown quantity at this point (<10)
    Arrow I want to make console window

    A console based application, i new to c#, this is my firs application
    how i output a 3/4 (six three fourth)
    I dont want 0.0xxxx, it should be 3/4
    Can you say me how to program it ?

    Thank you
    -DMNX
    Reply With Quote
      #2    
    Old November 22nd, 2009, 11:27 PM
    MNovy MNovy is offline
    Member
     
    Join Date: Jul 2008
    Location: Germany
    Posts: 210
    MNovy has a spectacular aura about (100+)MNovy has a spectacular aura about (100+)
    Re: I want to make console window

    Do you mean that ASCII symbol ¾??


    Step 1: Google for "C# ASCII to string"
    Step 2: Google for symbols like '"ASCII ¾" or '"ASCII ½" or '"ASCII ¼"
    Step 3: combine Step 1 and Step 2

    ...and you will come to this result


    Code:
    using System;
    using System.Collections.Generic;
    using System.Text;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                string str = char.ConvertFromUtf32(190);
                Console.WriteLine(str);
                Console.Read();
            }
        }
    }

    and btw: 3/4 = 0.75

    Last edited by MNovy; November 23rd, 2009 at 12:00 AM.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > .NET Programming > C-Sharp Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:13 AM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.