#define's Profile User Rating: *****

Reputation: 1602 Grandmaster
Active Posts:
5,573 (2.33 per day)
19-February 09
Profile Views:
Last Active:
User is offline Yesterday, 05:01 PM

Previous Fields

Who Cares
OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Your Car:
Dream Kudos:
Expert In:

Latest Visitors

Icon   #define has not set their status

Posts I've Made

  1. In Topic: I can get the program to display no fee to work.

    Posted 4 Sep 2015

    Hi, miles_over <= 10 includes everything less than 10, so includes zero and less.
  2. In Topic: Passing the name of .txt file as a command argument

    Posted 4 Sep 2015

    Hi, I see that the input is supposed to be filename=input1.txt. Which I was not expecting.

    Since you are using C++ you could use string - once you have checked there is an argument :

    string input(argv[1]);

    You could validate the filename= part with one of a few functions such as compare.

    Then you can extract the filename with substr perhaps.

    You will need to use c_str with the file open (newer compilers may not need it, but better safe).


    Sorry if that was a bit late, I didn't realise the problem was with parsing the command line argument.
  3. In Topic: Passing the name of .txt file as a command argument

    Posted 4 Sep 2015

    How to pass command-line arguments using Visual Studio
  4. In Topic: <ctime> help

    Posted 4 Sep 2015

    Hi, ctime uses localtime. So your local time is 3hrs from UTC/GMT.

    You could use


  5. In Topic: Passing the name of .txt file as a command argument

    Posted 4 Sep 2015

    There are a few ways of running your program and supplying an argument.

    1. run from a console window
    2. run from VS having added parameters to project

    Console Window using Shortcut to your program
    • Open a folder to your program's location.
    • Right-click on program and Create shortcut.
    • Right-click on the shortcut select Properties add a space and the filename to the end of the Target.
    • To start program double click shortcut.

    Another Console Window method using a Shortcut to the Command Prompt
    • Open folder to your program's location.
    • Find Command Prompt icon - eg. start/All programs/Accessories
    • Either:
    • - Right-click and drag to program folder
    • Or:
    • - Right click and copy - then paste in program folder
    • In program's folder, Right-click on Command Prompt - delete the path in Start In
    • You should be able to click on Command prompt to open console window
    • Then you can type your program name or programname textfilename.

My Information

Member Title:
Duke of Err
Age Unknown
Birthday Unknown
Delta Quadrant
Years Programming:
Programming Languages:

Contact Information

Website URL:
Website URL  http://


Page 1 of 1
  1. Photo

    moonlight1020 Icon

    07 Jul 2015 - 11:15
  2. Photo

    mireille4U Icon

    30 Apr 2015 - 05:44
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address (mireille4u@live.com) i will give you my picture.here is my mail address i hope we can move from here.above. Mireille
  3. Photo

    GryphonClaws Icon

    10 Jan 2013 - 01:15
    Thanks #define. I can't believe I missed such a simple detail.
  4. Photo

    raghav.naganathan Icon

    07 Nov 2012 - 20:40
    Dude...before your reputation changes, I would like to tell you that it(729) is a perfect cube :) Cheers :)
Page 1 of 1