MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/char array/cinget.cpp:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10using namespace std;
11signed main(){
12 char a[100];
13 char temp=cin.get();
14 int lenght=1;
15 while(temp!='\n'){
16 lenght++;
17 cout<<temp;
18 temp=cin.get();
19 }
20 cout<<endl<<lenght;
21
22
23 return 0;
24}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected