Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pokretanje drugog programa u C++
Author Message
danielvast Offline
Forumaš
***

Posts: 432
Joined: Dec 2009
Reputation: 22
Post: #11
RE: c++
Da, stavis samo path npr:
Code:
system("C:/Users/HUM/Desktop/C++/wow.exe");

"When all else fails, read the manual."
(This post was last modified: 25-02-2010 09:07 PM by danielvast.)
25-02-2010 08:56 PM
Find all posts by this user Quote this message in a reply
schmrz Offline
____
*

Posts: 567
Joined: Feb 2007
Post: #12
RE: c++
Pa jel' bilo tako teško prikladan naziv dati temi? Također, kod trebaš stavljati u code blokove.

I have no drinking problems. I drink. Get drunk. Fall down. NO PROBLEM
Registered As Linux User #484215
Moj skromni blog
Savjet za buduće programere: ovdje
25-02-2010 09:29 PM
Find all posts by this user Quote this message in a reply
matijaivanus Offline
Novi korisnik
*

Posts: 51
Joined: Feb 2010
Reputation: 0
Post: #13
RE: Pokretanje drugog programa u C++
napiso sam ovak al opet nece
Code:
#include <iostream>
#include <cstdlib>
using namespace std;
int main () {
    float a;
    cout<<"Upisi password: ";
        cin>>a;
        while (a!=123456) {
               cout<<"Krivi password"<<endl;

               cout<<"Pogadaj ponovno: "<<endl;
             cin>>a;}
        
        
            cout<<"Tocan password"<<endl;

             system("C:\Program Files\Igre\World of Warcraft\Wow.exe");

        
        
        
    

return 0;
}
[/php]

Never argue with an idiot: first he will drag you down to his level, then he will beat you with experience.
26-02-2010 04:19 PM
Find all posts by this user Quote this message in a reply
danielvast Offline
Forumaš
***

Posts: 432
Joined: Dec 2009
Reputation: 22
Post: #14
RE: Pokretanje drugog programa u C++
Umjesto \ stavi / pa probaj, evo ovako:
Code:
system("C:/Program Files/Igre/World of Warcraft/Wow.exe");

"When all else fails, read the manual."
(This post was last modified: 26-02-2010 04:27 PM by danielvast.)
26-02-2010 04:26 PM
Find all posts by this user Quote this message in a reply
kecko Offline
Forumaš
***

Posts: 645
Joined: Nov 2009
Reputation: 20
Post: #15
RE: Pokretanje drugog programa u C++
to je zato jer backslash ti je escape character...
mako želiš dobiti \ u navodnim znacima onda trebaš imati \\
drugim riječima
system("C:\\Program Files\\Igre\\World of Warcraft\\Wow.exe");
ali i ovo što je danielvast naveo bi isto trebalo funkcionirati
26-02-2010 05:23 PM
Find all posts by this user Quote this message in a reply
matijaivanus Offline
Novi korisnik
*

Posts: 51
Joined: Feb 2010
Reputation: 0
Post: #16
RE: Pokretanje drugog programa u C++
hvala vam puno svima
Happy

Never argue with an idiot: first he will drag you down to his level, then he will beat you with experience.
26-02-2010 08:22 PM
Find all posts by this user Quote this message in a reply
KriptoN Offline
Novi korisnik
*

Posts: 2
Joined: Apr 2010
Reputation: 0
Post: #17
RE: Pokretanje drugog programa u C++
mozes ali moras navesti tacnu lokaciju wow.exe
10-04-2010 12:02 PM
Find all posts by this user Quote this message in a reply
dexdix Offline
Novi korisnik
*

Posts: 8
Joined: Apr 2010
Reputation: 0
Post: #18
RE: Pokretanje drugog programa u C++
Kaj nije ovak:
system("C:\\\"Program Files\\"Igre\\"World of Warcraft\\"Wow.exe\"");
?
Tak nekak.
14-04-2010 11:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
r0tring Offline
Redoviti posjetitelj
**

Posts: 237
Joined: Apr 2009
Reputation: 11
Post: #19
RE: Pokretanje drugog programa u C++
Nije.
14-04-2010 11:39 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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