| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| C-Sharp Programming Post questions, answers, and comments about C#. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|