| | |
system("start website");
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 14
Reputation:
Solved Threads: 0
Hello, I read in a thread that you could use to get the page Daniweb but I am wanting to write a program that the user can enter a website that he wishes to go to then the program takes the user there.
I got this so far but got errors, I know I've done it wrong - It was only a attempt.
C++ Syntax (Toggle Plain Text)
system("start http://www.daniweb.com/");
I got this so far but got errors, I know I've done it wrong - It was only a attempt.
C++ Syntax (Toggle Plain Text)
// Code Shark #include <iostream> using namespace std; int main() { char website[50]; cout << "Enter a website : "; cin >> website; system("start", website); return 0; cin.get(); cin.get(); }
Last edited by Code Shark; Jul 13th, 2008 at 12:49 pm.
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <string> using namespace std; int main() { string website; cout << "Enter a website : "; cin >> website; string a = "start "; string b = a + website; system ( b.c_str() ); cin.get(); cin.get(); return 0; }
sample input:
Enter a website : www.google.com
Last edited by iamthwee; Jul 13th, 2008 at 1:07 pm.
*Voted best profile in the world*
>Why would I go into a C++ reference and go looking for the
>command when someone like you could clearly help me quicker
Because I'll call you a lazy retard and refuse to help you for the rest of eternity. And I'll encourage everyone else to do the same thing because you're clearly not interested in learning, which is what Daniweb is about. If you don't respect us, we won't respect you.
>command when someone like you could clearly help me quicker
Because I'll call you a lazy retard and refuse to help you for the rest of eternity. And I'll encourage everyone else to do the same thing because you're clearly not interested in learning, which is what Daniweb is about. If you don't respect us, we won't respect you.
Last edited by Narue; Jul 13th, 2008 at 3:04 pm.
I'm here to prove you wrong.
•
•
Join Date: Jul 2008
Posts: 37
Reputation:
Solved Threads: 0
LOL are you kidding me? I come to this forum and post a question ASKING what a code does and you throw that shit at me? You may know C++ but you are one huge dumbass. I encourage everyone to ignore fools like this.
Please quote me where I showed disrespect to anyone... (Other than just now when you proved to me that you are 12 years old)
Last edited by Shadoninja; Jul 13th, 2008 at 3:18 pm.
![]() |
Similar Threads
- Windows installaton message "Setup didn't find any hard disk drives installed..." (Storage)
- mysql_num_rows(): supplied argument is not a valid MySQL result resource (PHP)
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- "topantispyware" virus (Viruses, Spyware and other Nasties)
- Sorry, another "bridge.dll" problem.. here's my HJT log. (Viruses, Spyware and other Nasties)
- "Cannot find server, DNS error" when viewing some links on some websites (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: Advantages: C++/Java
- Next Thread: Function pointer from GetProcAddress() without typedef
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news node number numbertoword output pointer problem program programming project proxy python random read recursion recursive reference rpg simple sorting string strings template text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






