Search:

Type: Posts; User: isAnonymous

Search: Search took 0.01 seconds.

  1. #include #include #include...

    #include <iostream>
    #include <fstream>
    #include <string>
    #include <stdlib.h>
    usingnamespacestd;


    int main() {

    ifstream f("input.txt");
  2. No negative numbers will be input. Only 0 to max...

    No negative numbers will be input. Only 0 to max 25.
    Single and double digits.
  3. Yeah, i asked my professor about it and he said...

    Yeah, i asked my professor about it and he said we cant change it.
    Anyways i thought about this
    i read the file
    and instead of running a for loop to assign the array index its values
    i use the...
  4. Yeah, i'll try it out with fstream. I used fopen...

    Yeah, i'll try it out with fstream. I used fopen because i had used it a long time ago to parse data when coding in c.
    But let me see if i understand correctly, i should discard of "@(num,num)" for...
  5. Okay, since im using Xcode, the absolute path to...

    Okay, since im using Xcode, the absolute path to file is required.
    Yet, im unable to make it work for the given specifications of the inputfile
  6. Thats the point, if it was not like "2@(1,1)" and...

    Thats the point, if it was not like "2@(1,1)" and was "2, 4, 8, 0, 1" i would know how to parse that using a delimiter ','
    I have looked at a function fopen


    FILE *fp; int iValue = -1,...
  7. Puzzle Input And Array c++ using a-star algorithm

    Hey,

    I've developed a 8puzzle solver using a fixed width and height

    Below is my input condition and the pre-set goal state which i use for testing.

    for (i = 0; i < 9; i++) cin >>...
Results 1 to 7 of 8