User
Pass
2FA
 
 

Informatica clasa a 11-a

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Homework zone
Author Message712
Festy69

[Stranger]



Status: Offline
(since 05-02-2020 18:14)
Joined: 17 Sep 2013
Posts: 523, Topics: 65
Location: Romania

Reputation: 180.9
Votes: 22

 
Post Posted: 14-10-2013, 13:41:01 | Translate post to: ... (Click for more languages)

Se citesc 2 siruri de caractere (maxim 100) litere mari, mici si spatii. Sa se afiseze pe linii diferite:
a) toate caracterele cu litera mare din sirul in ordinea aparitiei lor.
b) ultimul caracter consoana din sirul dat.

Am incercat si eu ceva dar ma blochez undeva...
#include <iostream>
#include <cstring>
using namespace std;

int main()
{unsigned i;
char s[101];
cout<<"dati sirul de caractere";
cout<<"dati sirul de caractere 2 ";
cin.get(s, 101);
cin.get();
for(i=0; i<strlen(s);i++);
{if(s[i]>='A' && s[i]<='Z');


De aici nu mai stiu...

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore




 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Homework zone  


The time now is 28-04-2024, 17:13:00
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x