Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 12051105

@User 12051105
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • appending to file
    U User 12051105

    have this code in secure shell and I want to keep log of the users input I fopen the file in the beginning and fprinf on the data specific that needs to be written then at end of file I fclose it the problem is that its not writing the file when I cat gamelog it just sends me to the next calling line ??????

    C / C++ / MFC linux help question

  • how do you create a gamelogfile in c using program secure shell
    U User 12051105

    no I ended up fixing it by moving the two for loops down after the read file. do you know how to call from the gamefile and allow the user to call each coordinate so they can enter each coordinate they choose to try to sink the ship. i Know i have to use if and else statements i just don't know how to integrate them into the file.

    C / C++ / MFC game-dev linux tutorial

  • how do you create a gamelogfile in c using program secure shell
    U User 12051105

    #include #include #include int main (void){ FILE* gamein; int numIn=0; int row=0; int column=0; float Use=0; int gameinput_array[5][5]; //output for(row =0; row<5; row++){ for(column=0; column<5; column++) fscanf(gamein, "%d", &numIn); //have two fscanf's 1st gameinput_array[row][column]=numIn; } // gamein = fopen("gameinput", "r"); while((fscanf(gamein, "%d", &numIn))==1) // 2nd printf("%d", numIn); char gamelog_file[30]; FILE* gamelog; printf("Enter Your User Name here\n"); scanf("%s", &gamelog_file); //gamelog=fopen(gamelog_file,"a");//append return 0; } NOW IM DRAGING BORAD INFO FORM gameinput FILE* WHICH HAS JUST LINES OF 0'S AND 1'S 5*5 GRID NEED TO KNOW ABOUT THE FSCANF'S, WHETHER THEY ARE CORRECT OR NOT WHEN THIS CODE COMPILES I GET SEGMENTATION FAULT BUT IT DOES COMPILE THANKS IF YOU CAN HELP

    C / C++ / MFC game-dev linux tutorial

  • how do you create a gamelogfile in c using program secure shell
    U User 12051105

    pretty much soup to nut if you wanna put in that inference. I'm new to programming and I cant grasp the concept of either one. Im making a battleship game which calls for a gamelogfile and a gameboard file from which i have to read from. I have to be able to use the gamelogfile to check whether or not the users name is correct. and also for it to be able to store the names of each user.

    C / C++ / MFC game-dev linux tutorial

  • how do you create a gamelogfile in c using program secure shell
    U User 12051105

    creating a battleship game with log in. Need to know how to create a file that will check if login is correct. then be able to fprintf so I can use login file. only need login name not password thanks

    C / C++ / MFC game-dev linux tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups