CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Extreme beginner, struggling project

  1. #1
    Join Date
    Feb 2017
    Posts
    1

    Extreme beginner, struggling project

    Hey guys, I'm still very new to c++ so when receiving this project, I was pretty lost, the lab we did seem simple, but when he assign this project, i had no idea how to start. I understand the basic of it, but not alot to put it together when writting the program. So the assignment is to develop a manhunt simulator. The manhunt simulator will have two people. The investigator who will be demarked with an I and a target who will be demarked with a T. The target will not be directly visible on the map though.

    https://flic.kr/p/SjfPCA << i took a picture of how he wanted the program to function, it seems simple at first but i was completely lost with loading a text file, the map, and finding the target

    https://www.flickr.com/photos/31706893@N03/? << the rest of the screenshot I took is the input and output samples he provided which help me visually understand what he meant, but I still cant figure out how to write it, i know how to open file and create arrays, but putting it together is still tricky, especially moving the 'I' and turning the underscore to asterisk

    I really appreciate any sort of help or tips to help me get started!

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,287

    Re: Extreme beginner, struggling project

    Rather than provide links to unknown sites which probably no one here will open, it's better to provide attachments to the post.

    When approaching something like this, the first step is to start to put together a design for the project - including but not limited to: what are the inputs, what are outputs/displays, what are the user interactions and what are the algorithms required. Then the data structure(s) required by the program can be devised and the program design undertaken. Once the design has been done, then the program is coded from the design, then tested and debugged. Whilst developing the program design, it is often useful to document how this would be done manually using pen & paper.

    I was completely lost with loading a text file, the map, and finding the target
    What are the issues you are having reading data from the text file?
    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 https://creativecommons.org/publicdomain/zero/1.0/ 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++17 Compiler: Microsoft VS2019 (16.7.6)

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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)