1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

C and C++ C++ help delete a record

Discussion in 'Coding, Programming' started by genji, Aug 27, 2016.

  1. Pano po ba mag delete ng record sa c++?
    e.g
    ID name Lastname Age
    1 sonny barliso 22
    2 John Cenna 23
    3 mark soccerberk 24

    pano po e delete ang i.d number 2?
    actually c languange ang program na ginagawa ko pero gusto kung malaman pano sya sa c++ ginagawa total pareho lang naman sila, ang pagkakaiba lang sa syntax
    sana may makatulong


    ito yung code sa c languange
    fclose(fp);
    fclose(ft);
    remove("student.txt");
    rename("temp.txt","student.txt");




    salamat
     
  2. henjie

    henjie Forum Expert Established

  3. jokerger25

    jokerger25 Enthusiast Established

    Tol retrieve mo yang data from txt file tapos gamit ka ng delimeter dito sa example mo ay space tapos ilagay mo sa array tapos compare mo yang value sa input ng user . If match e delete mo ang array with index nung nagmatch.

    Ang dami ng thread tungkul dyan sa Please or Register to view links

    I do hope na di bawal mag share ng link ng ibang forum dito
     

  4. salamat tol tingin2x mo ako dito
     
Tags / Keywords: