siplit string

siplit string - else...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Q : writ a C++ function that return 4-" other " #include<stdio.h> #include<iostream.h> #define n 100 int check(char a) { int asci; asci=a; return 1; return 2; return 3;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else cout&lt;&lt;&quot;&quot;; return 0; } void main() { { int num[n]; char cap[n],small[n],c; cout&lt;&lt;&quot;\nenter char : = &quot;; cin&gt;&gt;c; if(check(c)==1) cout&lt;&lt;&quot;\n the code betbeen 1 and 9 &quot;&lt;&lt;1; if(check(c)==2) cout&lt;&lt;&quot;\n the code betbeen A and Z &quot;&lt;&lt;2; if(check(c)==3) cout&lt;&lt;&quot;\n the code betbeen a and z &quot;&lt;&lt;3; else cout&lt;&lt;&quot;others&quot;; }}...
View Full Document

Page1 / 2

siplit string - else...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online