Search
 
SCRIPT & CODE EXAMPLE
 

CPP

put function in cpp

char str[20] = "I love Grepper.";
int l = strlen(str);

ofstream file ("myfile.txt");

for(int i=0; i<l; i++)
{
  file.put(str[i]);
}
cout<< "process completed
";

file.close();
Comment

PREVIOUS NEXT
Code Example
Cpp :: accumulate in cpp 
Cpp :: C++ cout iostream 
Cpp :: even and odd in c++ 
Cpp :: c++ hash map key count 
Cpp :: google test assert exception 
Cpp :: c++ random int troll 
Cpp :: variadic template in c++ 
Cpp :: opencv(4.5.1) c:usersappveyorappdatalocal emp1pip-req-build-kh7iq4w7opencvmodulesimgprocsrc esize.cpp:4051: error: (-215:assertion failed) !ssize.empty() in function 
Cpp :: Abstract factory C++ code 
Cpp :: C++ rename function 
Cpp :: tabeau dynamique c++ 
Cpp :: Accessing C++ Array Elements 
Cpp :: c++ lambda as variable 
Cpp :: C++ vector at() method 
Cpp :: memset in cpp 
Cpp :: c++ function pointer variable 
Cpp :: valid parentheses in c++ 
Cpp :: C++ Pointers to Structure 
Cpp :: define a type in c++ 
Cpp :: floyd algorithm 
Cpp :: c++ add everything in a vector 
Cpp :: Numbers Histogram in c++ 
Cpp :: heapsort 
Cpp :: even number program in c++ using for loop stack overflow 
Cpp :: vector int initialize with increasing numbers 
Cpp :: cap phat dong mang 2 chieu trong c++ 
Cpp :: convert c++ to c online 
Cpp :: 10^18 data type in c++ 
Cpp :: c++ terinary operator 
Cpp :: .txt file into .cpp 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =