Add Papers Marked0
Paper checked off!

Marked works

Viewed0

Viewed works

Shopping Cart0
Paper added to shopping cart!

Shopping Cart

Register Now

internet library
Atlants.lv library
FAQ
14,20 € Add to cart
Add to Wish List
Want cheaper?
ID number:304136
 
Author:
Evaluation:
Published: 16.12.2010.
Language: Latvian
Level: College/University
Literature: n/a
References: Not used
Time period viewed: 2000 - 2010 years
Extract

Funkcijas bez parametra.
1. Sastādīt programmu, kas izvada uz ekrāna jūsu adresi ar funkciju palīdzību.
#include
void show_text (void)
{ cout << “Ūdens 4 << endl;
cout << “Lapenieki, Ķekavas pagasts"<< endl;
cout << “Latvija, Rīgas r."<< endl; }
void main (void)
{ show_text();}
2. Sastādīt programmu, kas izvada uz ekrāna tekstu un 2 rindas no svītriņām ar funkcijām palīdzību:
--------------------------------------------------------------------------------------------------------
The best way to start learning a programming language is by writing a program.
---------------------------------------------------------------------------------------------------------
#include
#include
void show_message (void)
{cout<<”The best way to start learning a programming language is by writing a program." << endl; }
void starbar (void)
{ int i; for(i=0; i<80;i++) cout<<'-'; cout < void main (void)
{ starbar(); show_message (); starbar(); getchar(); }
Lokālie un globālie mainīgie.
3. Sastādīt programmu, kas izvada uz ekrāna 1 rindu no 30 „*” un 1 rindu no 30 „+” zīmēm ar funkciju palīdzību.
#include
#include
void show_zv (void)
{ for(int i=0; i<30;i++) cout<<'*'; cout < void show_pl (void)
{ for(int i=0; i<30;i++) cout<<'+'; cout < void main (void)
{show_zv(); show_pl(); cout < getchar(); //gaidīt jebkura simbola ievadīšanu (stdio.h)}
4. Sastādīt programmu, kas uzvada uz ekrāna n rindas no 20 vienādām zīmēm. Zīme un „n” ievadīt no tastatūras. Izmantot globālos mainīgos.

Author's comment
Load more similar papers

Atlants

Choose Authorization Method

Email & Password

Email & Password

Wrong e-mail adress or password!
Log In

Forgot your password?

Draugiem.pase
Facebook

Not registered yet?

Register and redeem free papers!

To receive free papers from Atlants.com it is necessary to register. It's quick and will only take a few seconds.

If you have already registered, simply to access the free content.

Cancel Register