473,394 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Converting Pascal to C# language

Experiencing difficulty in translation:

Expand|Select|Wrap|Line Numbers
  1. str_temp: string[100];
  2.  
  3. for l := 0 to m - 1 do Readln(TT,str_temp);
  4.         for l := 0 to MaxGrp do
  5.         begin
  6.           Read(TT, str_temp);
  7.           arr_str := str_temp.Split(separator, System.StringSplitOptions.RemoveEmptyEntries);
  8.           foreach str: string in arr_str
  9.           do
  10.           begin
  11.             int_temp := StrToInt(str);
  12.             if l = mm then 
  13.             tt_m_mm := int_temp;
  14.             if l = g  then 
  15.             tt_m_g  := int_temp;
  16.           end;
  17.         end;
Aug 6 '14 #1
0 1127

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Rich Herrick | last post by:
The latest version of my "Pascal-like" set class is available here: http://www.richherrick.com/software/herrick-1.0.zip Those from the old YAHOO BOOST forum might remember it from several...
24
by: Faith Dorell | last post by:
I really dont like C.You can write better programs in BASIC than in C, if you dont like this language. I dont understand how C became so popular, although much better programming languages...
13
by: Glen Richards | last post by:
Is there a way to do this. I mean there is a company who converts asm to their wsl language and then from that to c is there a way that we can do this?
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
3
by: Mark Scott | last post by:
I have downloaded some code for a pascal program to generate permutations of letters to solve anagrams: program Anagramm; { Gibt alle mglichen Anagramme zu einem Wort aus. Copyright (c) 8/99...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: robert | last post by:
I want to convert some algorithms from a Pascal dialect to Python. (Not embedding, but code itself) Its mainly only math and function calls and simple array access but lengthy. Think Pascal is...
15
by: jacob navia | last post by:
Programming languages come and go. Still is amazing that in this survey from http://www.devsource.com/article2/0,1895,2016936,00.asp the C language comes second, right after Java. Java # What...
7
by: SMALLp | last post by:
Hy! I desperately need help! I need to make application that would accept Pascal code and check if it returns good results. My idea is (from a beginner point of view) to make application in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.