Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pomoc
Author Message
bukeleza Offline
Novi korisnik
*

Posts: 5
Joined: Nov 2011
Reputation: 0
Post: #1
Pomoc
ovako kad gledam tu tutorijale ono sve dobro ide

kad ja nesto npr napisem npr ovo

Quote:#include<iostream>
using namespace std;

main()
{
string password;
cout << "Unesite password: ";
cin >> password;

if(password=="G2105Z") {
cout << "Password tocan!"; }

char x;
cin >> x;
return 0;
}

i onda kad nastavim stavljat npr ovo

Quote:#include <iostream>
using namespace std;
int main()
{
int godine;
cout << "Koliko imate godina? ";
cin >> godine;
if (godine < 18 ) {
cout << "Maloljetni ste!"; }

char x;
cin >> x;
return 0;
}

sta ja moram radit da ovo stavim ispred ovog prvog
30-11-2011 06:10 PM
Find all posts by this user Quote this message in a reply
r0tring Offline
Redoviti posjetitelj
**

Posts: 237
Joined: Apr 2009
Reputation: 11
Post: #2
RE: Pomoc
Šta ustvari hoćeš? o.O
Btw, procitaj malo pravila foruma.
30-11-2011 09:26 PM
Find all posts by this user Quote this message in a reply
bukeleza Offline
Novi korisnik
*

Posts: 5
Joined: Nov 2011
Reputation: 0
Post: #3
RE: Pomoc
kad nesto ovo upisivam npr ovo prvo... sta ja moram uradit da napisem ovo drugo kad stavim zagrade bude error
01-12-2011 03:32 PM
Find all posts by this user Quote this message in a reply
r0tring Offline
Redoviti posjetitelj
**

Posts: 237
Joined: Apr 2009
Reputation: 11
Post: #4
RE: Pomoc
(01-12-2011 03:32 PM)bukeleza Wrote:  sta ja moram uradit da napisem ovo drugo kad stavim zagrade bude error

Moraš znati objasniti šta hoćeš (pod tim se podrazumijeva da znaš i pisati ovdje na forumu - koristiti interpukcijske znakove, sastaviti lijepo rečenicu itd.).
01-12-2011 09:03 PM
Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #5
RE: Pomoc
Ja isto ne razumijem što hoćeš. Rado bih pomogao ali nije mi jasno.

Pravila foruma | Twitter - Facebook - Google+ |
01-12-2011 10:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kecko Offline
Forumaš
***

Posts: 645
Joined: Nov 2009
Reputation: 20
Post: #6
RE: Pomoc
Ovo želiš?
Code:
#include<iostream>
using namespace std;

main()
{
string password;
cout << "Unesite password: ";
cin >> password;

if(password=="G2105Z") {
cout << "Password tocan!"; }

int godine;
cout << "Koliko imate godina? ";
cin >> godine;
if (godine < 18 ) {
cout << "Maloljetni ste!"; }

char x;
cin >> x;
return 0;
}
02-12-2011 08:31 AM
Find all posts by this user Quote this message in a reply
bukeleza Offline
Novi korisnik
*

Posts: 5
Joined: Nov 2011
Reputation: 0
Post: #7
RE: Pomoc
OVAK KAD JA OVO STAVIM

Code:
main()
{
string recenica;
recenica = "Hello World!";
cout << recenica;
char a;
cin >> a;
return 0;

ONDA ISPID OVOG STAVIM OVO


Code:
string password;
cout << "Unesite password: ";
cin >> password;

if(password=="G2105Z") {
cout << "Password tocan!"; }

int godine;
cout << "Koliko imate godina? ";
cin >> godine;
if (godine < 18 ) {
cout << "Maloljetni ste!"; }

char x;
cin >> x;
return 0;
}

I KAD UPREM COMPINE MENI BUDE SAMO OVO HELLO WORLD.. ZASTO ISPOD HELLO WORLD NEMA I OVOG DRUGOG
http://www.dodaj.rs/f/2M/ZT/1cr62ntf/bezimena.png
02-12-2011 05:37 PM
Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #8
RE: Pomoc
Zato što return 0 ide samo na kraju.

Pravila foruma | Twitter - Facebook - Google+ |
02-12-2011 06:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bukeleza Offline
Novi korisnik
*

Posts: 5
Joined: Nov 2011
Reputation: 0
Post: #9
RE: Pomoc
svaka ti dalaa :) jos samo da pitam kako u c++ mogu radit << nemogu nikako :/
(This post was last modified: 02-12-2011 07:53 PM by bukeleza.)
02-12-2011 07:52 PM
Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #10
RE: Pomoc
Joj bukeleza, mi ti ne možemo čitat misli. Daj precizno objasni šta želiš napravit. Vidio si kako ti lako pomognemo kada razumljivo objasniš što hoćeš.

Pravila foruma | Twitter - Facebook - Google+ |
02-12-2011 08:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)