CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2018

    Unhappy Help with Pascal Code as I want to get into programming class

    Hello friends.

    I cannot seem to get my code to run. Can someone who knows pascal please help to write this program code , I will greatly appreciate your assistance, the details are as follows.

    *Im writing a code to enter the names of 4 People(Constituents) and then enter their number of vodes and after 4 candidates and 4 vote counts are entered it outputs the candidate with the highest number of votes.

    I must develop a pascal algorithm/code to determine the winning candidate for a constituency in the national elections the algorithm must accept as input the names of 4 random candidates and the number of votes each candidate recieves and output the sucessful candidate .


    Name:  asda.jpg
Views: 548
Size:  17.0 KB

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012

    Re: Help with Pascal Code as I want to get into programming class

    I cannot seem to get my code to run.
    I used to write Pascal programs many, many years ago. If you post your current code, I'll have a look and try to advise. When posting code please use code tags so that the code is readable. Go Advanced, select the formatted code and click '#'.

    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.4.4)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width