Search
 
SCRIPT & CODE EXAMPLE
 

CPP

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

e.cpp

#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main()
{
    int say=1;
    string st;
    getline(cin,st);
    for(int i=0;i<st.size();i++) if(st[i]==' ' && isalpha(st[i+1])) say++;
    for(int i=0;i<st.size();i++) if(st[i]==',' && isalpha(st[i+1])) say++;
    cout<<say<<endl;
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: Consider a pair of integers, (a,b). The following operations can be performed on (a,b) in any order, zero or more times: - (a,b) - ( a+b, b ) - (a,b) - ( a, a+b ) 
Cpp :: typeid to string c++ 
Cpp :: split date and time in a column in db browser 
Cpp :: how to check code execution time in visual studio c++ 
Cpp :: online convert c++ code to assembly language 
Cpp :: import matrix from excel to matlab 
Cpp :: Overloading IO Stream 
Cpp :: declare a structer in cpp 
Cpp :: how to analyse a poem 
Cpp :: max stack 
Cpp :: operator overload 
Cpp :: c++ sudoku solver 
Cpp :: C++ area & circumference of a circle 
Cpp :: c++ permutation 
Cpp :: void pointer c++ 
Cpp :: passare un array a una funzione 
Cpp :: set elements to 42 back 
Cpp :: c++ how to skip the last element of vector 
C :: how to create random integers from a specific range in c language 
C :: factorial in c 
C :: get_session` is not available when using TensorFlow 2.0. 
C :: how to print hello world in c 
C :: how to convert string to integer in c 
C :: printf c float 
C :: how to mutex lock in c 
C :: print bool c 
C :: c execute shell command 
C :: Array Input/Output in C 
C :: factorial of a number in c 
C :: format specifiers in c 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =