c# help

  1. riyabansal

    string manipulation in c#

    i want to fetch " Name Date Value BP 01/26/2015 15 Ht 01/26/2015 15 Wt 01/26/2015 70 BMI 01/26/2015 218.71 " date and value from this string. how can i achieve this. Thanks in advance.
  2. Moriarty

    Resolved Help!! Need for today

    Help me pls
  3. T

    How to put spaces in console output

    Console.WriteLine("your answer is" + num10 * num20); This prints 'your answer is20' And i want it to say 'your answer is 20' Thanks! :)
  4. F

    Using Process.Run() does not work as intended on a C# Console exe file.

    The title says it all. I have some code which does Process.Run() on another executable console file. The console file is set to a "Windows Application" so that it does not appear, and allows me to run other programs and functions periodically, all in the background. while (true) { //code }...
  5. V

    Question Error in method JsonDocument.Parse

    Please tell me. I can't solve the error in the JsonDocument.Parse method in any way. Translation of the error text: Error CS1061 / "object" does not contain a definition for "Parse" and it was not possible to find an extension method "Parse" that takes the type "object" as the first argument...
  6. I

    Matrix help

    This is the exercise. I tried to make it but couldn't. I'll be very glad if somebody would help me. Thank you in advance. There's a square matrix of row n (1 <= n <= 10). Write a program in which you have to fill in the elements of the matrix and display them. Find the sum of the odd numbers...
  7. Paradoxz1

    Question BMI Calculator

    Hi, I have been trying for the past 6 days to get this BMI calculator working to my requirements but to no success. I am not even able to get a value out from it. I don't know where to start looking for the issue as I have been looking at this code for hours now and been looking at different...
  8. Henry

    Question Unexpected symbol `}' ?

    I am getting the error  mcs -out:main.exe main.cs main.cs(30,32): error CS1525: Unexpected symbol `}' main.cs(30,35): warning CS0642: Possible mistaken empty statement main.cs(33,32): error CS1525: Unexpected symbol `}' Compilation failed: 2 error(s), 1 warnings compiler exit status 1 ...
  9. carl4020

    error CS0103: The name [name] does not exist in the current context

    Hello. Basically i suck at code at times and i am very shit at troubleshooting. I get these errors in my MeshGenerator.cs: Assets\Scripts\OpenWorld\Procedural Landmass Generation\MeshGenerator.cs(52,32): error CS0103: The name 'heightCurve' does not exist in the current context...
  10. droelth

    Beginner asking for code-idea help!

    Hey guys. So I am learning c# now, I have some experience in c++. But what I am gonna ask is more theory based question. So think of 6 numbers ( like an array), for example a0,a1,a2,a3,a4,a5. I wanna use last 4(doesnt matter the number here, has to be bigger than one tho :D) of them (...
  11. LBalsa

    MQTT client with MQTTnet

    Hi am, Firstly apologies if this is the wrong section. This is a last resort kind of post as I am on the borderline of desperation. I am applying for a renowned company, that despite my lack of skills for their requirements, decided to proceed me to the code challenge. After spending half the...
  12. Z

    Question Attack values in game not working as intended

    sorry in advance for not knowing the community. im new at this in so many ways. i created a dice rolling game in c# and unity and everything is working fine except for when player 2 attacks player 1 the attack value is not what it should be. and i think it is in this bit of code. but 2 hours...
  13. B

    Save a flowlayoutpanel controls (IE labels) when a user closes application

    I need to save the location of the labels when the user closes, i think i need to make it serialisable or save something to an XML file but cannot figure out how to do it. the Labels can be moved from one FlowLayoutPanel to another by the use of the if statement and then add/remove methods...
  14. B

    Question Turn off Flowlayout Snap at runtime

    I am creating a small project, where I want to drag a label from one flowLayoutPanel to another. namespace test999 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } int shrewsbutyTotal; int...
Top Bottom