Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Intuit // C# // listing_4.4 (StreamReader // output.txt + Convert/Parse)
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.IO; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here //Console.WriteLine("Hello, world!"); StreamReader f = new StreamReader("c:\\temp\\input.txt"); string s = f.ReadLine(); Console.WriteLine("s= " + s); char c = (char)f.Read(); f.ReadLine(); Console.WriteLine("c= " + c); string buf; buf = f.ReadLine(); int i = Convert.ToInt32(buf); Console.WriteLine("i= " + i); buf = f.ReadLine(); double x = Convert.ToDouble(buf); Console.WriteLine("x= " + x); buf = f.ReadLine(); double y = double.Parse(buf); Console.WriteLine("y= " + y); buf = f.ReadLine(); decimal z = decimal.Parse(buf); Console.WriteLine("z= " + z); } } }
run
|
edit
|
history
|
help
0
look at this, soaches
.heap sort
ADSA - Tuto 1 - Exo4 - b - Proposition d'algo en O(n)
Funzpoint
Get Distinct value using Group By , Having , Count in DataTable C#
Lazy XML selection
simult Q3 with latex code + Quad factorization
TuplaDivWriteHexa
Before Number big
Range List for C#