What's new

Closed C++ help delete a record

Status
Not open for further replies.

genji

Addict
Joined
Feb 9, 2015
Posts
316
Reaction
35
Points
127
Age
30
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
 
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 You do not have permission to view the full content of this post. Log in or register now.

I do hope na di bawal mag share ng link ng ibang forum dito
 
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 You do not have permission to view the full content of this post. Log in or register now.

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


salamat tol tingin2x mo ako dito
 
Status
Not open for further replies.

Similar threads

Back
Top