User
Pass
2FA
 
 

Ajutor c++? :(

 
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 Message1304
Reyes

[Assasin]



Status: Offline
(since 26-01-2021 06:34)
Joined: 03 Apr 2007
Posts: 4994, Topics: 443
Location: wAr3.FreaKz.ro

Reputation: 929.9
Votes: 80

     
Post Posted: 14-01-2012, 11:28:09 | Translate post to: ... (Click for more languages)

Am de facut 3 probleme pentru proiect dar eu in liceu am facut pascal si nu c++ - Deci habar nu am sa le fac -

1. Dandu-se un tabel bidimensional, sa se construiasca doi vectori, unul cu elementele pare ale matricii, celalalat cu elementele impare.
2. Dandu-se lista studentilor unei grupe, sa se ordoneze alfabetic.
3. Dandu-se un sir de caractere sa se contorizeze literele mari, literele mici si cifrele sirului.

Multumesc!!! - Raman dator -




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

[Assasin]



Status: Offline
(since 26-01-2021 06:34)
Joined: 03 Apr 2007
Posts: 4994, Topics: 443
Location: wAr3.FreaKz.ro

Reputation: 929.9
Votes: 80

     
Post Posted: 17-01-2012, 22:02:31 | Translate post to: ... (Click for more languages)

Problema 1:

int k=p=0;
for(int i=0;i < n;i++)
for(int j=0;j < m;j++)
if(a[i][j]%2==0)
pare[k++]=a[i][j];
else
impare[p++]=a[i][j];

Problema 3:

#include< ctype.h >
int lM=lm=num=0;
for(int i=0;i< strlen(s);i++)
{
if(isupper(s[i]))
lM++;
if(islower(s[i]))
lm++;
if(isdigit(s[i]))
num++;
}

Problema 2

do
{
inv=1;
for(int i=0;i< n-1;i++)
if(strcmpi(e[i],e[i+1])>0)
{
strcpy(man,e[i]);
strcpy(e[i],e[i+1]);
strcpy(e[i+1],man);
inv=0;
}
}while(!inv);

M-a ajutat cineva.... Macar stie cineva daca sunt bine sau daca a uitat ceva? - Multumesc.




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

[The Conquistador]



Status: Offline
(since 26-08-2013 15:50)
Joined: 06 Jan 2011
Posts: 1494, Topics: 71
Location: Piatra Neamt

Reputation: 108.9
Votes: 13

   
Post Posted: 17-01-2012, 23:31:54 | Translate post to: ... (Click for more languages)

Pai acolo ai doar subprogramele...
Nu cumva iti trebuie programul integral?


Care m-ajuta si pe mine cu o lucrare de atestat?
"May the Legend of HUGE live forever and may the heroes of HUGE be hailed as champions of the Freakz Server."
Pretiosu, 122 cu 27
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  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 19-04-2024, 00:22:50
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