-
Content Count
275 -
Joined
-
Last visited
Everything posted by Feelay
-
what is gcc ? (and if I should include all the files, that I'm sending to my friends, where can I find them?) @xboxrulez: Here is the sourcecode // Hello World.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "iostream"using namespace std;int main(){ cout <<"Hello World :D \n"<<endl; char name[50]; cout <<"Please enter your name: "; cin >> name; cin.ignore(); cout<<"\n\nWelcome "<<name<<"! Thank you for helping me to try this \"program\" ^.^\n"<<endl; cout<<"Press Enter to continue"; cin.get(); return 0;} It works on my pc, but not on others.a friend that tryed it today said that he had no error. he said that nothing happened. Edit: I changed from microsofts product, to dev-c++, and it worked just fine.. So I will be using this, untill somone in this world, knows why it is not working. Can anyone tell me this. Am I able to create games in dev-c++ like I would in Microsoft Visual? thank you
-
I am using visual c++ 2008. and when I send the .exe file that I created to my friend, (from the debug folder) he gets an error message when trying to execute it :(any ideas?when my friend tried, he said that he got the following error message:cannot execute.... And lots of PC info.When I create these files, I choose win32 console application (something that looks like the cmd when executed)please.. I really need to get this thing workingThanks //Feelay
-
ok. thank you.Another fast question. The difference between c++ and visual c++ is that visual c++ uses windows instead of that black boxes but do they have the same language??both use the cout <<"blabla"; etc.? or is it any differences when it comes to coding?
-
sorry, title should be "Pause a console program after execution". Hey! ok.. when I created this thread, I needed help, but now I solved the problem, and here is the solution. my problem was, that I couldn't make my application pause. It just executed, and then closed. so here is my old code. #include "stdafx.h"#include "iostream"#include "stdio.h"using namespace std;int main(){ cout << "Hello World!" << endl; char name; cout << "Write your name, please: "; cin >> name; cout << "Hi " << name << "! Welcome, And Thank You For Trying My First Software :D"<< endl; cout << "Press ENTER to continue..." << endl; cin.get(); return 0;} And here is what I did. after the cin >> name; I added this: cin.ignore(); Now this will allow me to add the: cin.get();before the "return 0;", and this will pause the application till you press the ENTER button. //Feelay
-
Secret Behind Your Nick/User Names Where did they come from?
Feelay replied to szupie's topic in Introductions
hmm.. If I should make a long story short, it all started when I played world of warcraft.I wanted to create a druid, so my friend called him "Feelaydri".And then, I wanted to create a mage, so I called him "Feelaymage".And so on.. and then, when I stopped WoW, I started to join forums.. but the forums wasnt any RPG games, so I removed the last thing in the name, that would let the person recognize a character, and now, it is just "Feelay".sometimes I play RPG games, and then, I normally call the character "Feelay[charactertype]". -
MSN "Thank You For Using" And Sharing AN MSN virus ?
Feelay replied to yordan's topic in Security issues & Exploits
Yordan, I don't think you mean exactly every windows you open, or? szupie.. that "foreign" language is Swedish, and I am from Sweden The thing that he is saying is that he has 43 users on his contact list. 3 of them is sending this virus thing. (thats what he says in the beginning). So I think that yordan didn't mean that this happens every time when he open a new window, or? Because later, that user says (translated to English, again) exactly the same thing as yordan. So I guess that everyone was right. This is just a stupid emotion. I just realized that this thread is old -
Hi! It was a long time ago I created a tutorial, so I've decided to create a new one This time, I am going to teach you, how to create a "user profile page". Lets say I am logged in on my account, and want to view someone else account information (in this case, only his username, but you can add more things later). Then I'll press on a link, that will take me to his user profile. But before you can do that, you will have to create a register script, and a login script. If you don't know how to create any of those, you can find tutorials here: Login-Scipt Tutorial Register-Script Tutorial You will be using the same database, as the earlier tutorials. Before I start, I just want to say that I would never have learned this, without some guys here on Xisto. So don't give me all the credits. I think that vujsa, mastercomputers, Mordent and ethergeek, deserve some credits too. Because they teached me some of these things, that I am going to teach you. ------------------------------------------------------------ Lets start with the "Member List". To be able to see all the members that's registered on the page, with a link to their profile, we need a member list page. Lets start with the code. Members.php <?phpsession_start();require 'database.php';$nuser=$_SESSION['user'];$auser=$_SESSION['admin'];if($nuser){$userfinal=$nuser;}elseif($auser){$userfinal=$auser;}if(isset($userfinal)){$Members = mysql_query("SELECT user FROM characters WHERE level ='1' ORDER BY exp DESC") or die(mysql_error());$numRowsMembers = mysql_num_rows($Members);?><table border="0"><?phpfor($count = 1; $count <= $numRowsMembers; $count++){ $name = mysql_fetch_array($Members); ?> <tr> <?php echo '<td><a href="member_profile.php?username=' . $name['user'] . '">' . $name['user'] . '</a></td>'; ?> </tr> <?php}?></table> So.. This is the Member List. I called it "members.php". I think you want to know what it does, or? The first thing we do, after the PHP tag, is starting a session. Not so hard.. Then we require the database file (I'll add it in the end of this tutorial). Then, I create two variables. The "$nuser" is for the "non-admin" user (normal user). The "$auser" is for the "Admin" user. After that I've created theese two variables, I check if the user is an Admin, or a Normal user, and insert the $nuser and $auser variable in the $userfinal variable. now it is easy to check if the user is logged in. Instead of first checking if a Normal user is logged in, and then check if an admin is logged, I check if both is logged in, much faster. (hard to explain but this way is much easier). Now this explanation was for the "if(isset($userfinal)){" part. After that, I create two new variables again. The first one will get all the "Normal users" from the database. The other one will retrieve the number of rows from the first query. Then I create an Invisible Table, so that the names looks good, and so that the table don't screw up the design (if you use one.) But OFC, if you want to make the table visible, you can change the "border" to a number larger than 0. Now after that, we create a for-loop, to show all the names on the screen (the member list), and all the names, will have a link to their profile. easy, wasn't it? If there is something you didn't understand, you are free to contact me and ask. Now lets begin with the "member_profile" page. member_profile.php <?phpsession_start();require 'database.php';$nuser=$_SESSION['user'];$auser=$_SESSION['admin'];if($nuser){$userfinal=$nuser;}elseif($auser){$userfinal=$auser;}if(isset($userfinal)){$username = $_GET['username'];$user = mysql_query("SELECT * FROM user WHERE username = '$username'");$user=mysql_fetch_assoc($user);if($user['level'] > 1){die("You cant view an Admins profile!");}echo "<h1>User Info</h1>";echo "<b>Username:".$user['username']."<br>"; echo "<br>"; echo '<form name="backlistfrm" method="post" action="members.php">'; echo '<input type="submit" value="Back to The List">'; echo '</form>'; echo "<br>";?> Here we start like we did in the first page.After the php tag, We start a session, and require the database file. then we create two variables ($auser = admin and $nuser= normal user). Then we create the $userfinal variable, to check if the user is logged in later in the script. Then we create some variables. $username = $_GET['username']; This is the variable for the name that we pressed on in the member list page. $user = mysql_query("SELECT * FROM user WHERE username = '$username'"); This variable will select all the info about that person. $user=mysql_fetch_assoc($user); This will make us able to select something specific about that person when we are writing the code. Now we check if the user that we selected is a normal user, or an admin. If the user is an admin, an error will occur that the user can't view the admins profile. If you want you can remove this part: if($user['level'] > 1){die("You cant view an Admins profile!");} This will make the users able to view an admins profile. Then the info about the user will be shown. In this case, I've only added the username of the user -> echo "<b>Username:".$user['username']."<br>"; But OFC, you can add more. Just change the user inside the ['...'] to something else from the database table, that you want to show. (lets say you want to show the users Admin level instead of his username, then you can change the $user['username'] to $user['level'].) The last thing I do in this script, is adding a button that will take the user back the the member_list. And here is the database.php file: <?$con = mysql_connect('localhost','mysql_username','mysql_password');if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db('databasename');?> the first thing we do here, is:Open a connection to the mysql server. If the connection failed, the code will write an error then, we select the database we want to use. If you find anything spelled wrong, or any code that I wrote, that is wrong, or if you find something that is not working as it should, paste the wrong word(s) or the wrong code(s) or the error(s), and I'll fix them. Regards //Feelay You are not allowed to copy anything from this tutorial, and paste it outside of this topic, without my permission. But you are allowed to copy/paste parts of it, inside this topic.
-
Need Help: PHP Security - Login Script For Site security
Feelay replied to doctor's topic in Programming
sorry.. I didn't understand what you need. ? what is that :(maybe if you write a bit more clear, I am sure that I can help you. -
Hey!I have some questions about C++.1. Can you build robots with it, or is it only for computers?2. If the first question is yes, then is there anything else I can create, more than robots, using C++ outside of the computer I am using atm? and if yes, any exapmles?3. Can you create RPG games like World of Warcraft and strategy games like Warcraft 3?4. Can you create your own Operative System (OS)?I just want to know how strong C++ really is.Thank you.//Feelay
-
bah.. everything have to be so hard I don't know anything (not even how to start coding with it [like <?php ?> with php]) JS or XML xDWell If there isn't any other way, I'll try to learn some new languages this summer. Thanks guys :(//Feelay
-
Hey!I just wanted to know:Is it possible to update only one thing on a page?Lets say I have an "About Us" page.Is it possible to have "links" or something, so that when I press on them (one of the links), text/information about the person I pressed on will appear on the page, but the whole page wont update?Something like flash, but I want to use PHP/HTML instead (or whatever language I need, but I think it is PHP). And OFC if possible, can anyone be kind enough to tell me how (a)Thank You ^.^//Feelay
-
Need Help Making My Ftp Work my ftp is not working
Feelay replied to JohnNitro's topic in Websites and Web Designing
Hopefully I didn't missunderstand your question I Think that your problem is that you can't enter with a FTP client? You do not acctaully need one. IF you are hosted on Xisto, you can try to do the following. more info -> Here hopefully I understood you question right. -
There is nothing in the rules that says that playing a private server is illegal, or hosting your own.And you are just making your own server, you are not stealing their game.
-
hah.. hackthissite can be REALLY annoying sometimes. Sometimes it takes hours, even days, to figure out how to complete a level.Sometimes really frustating. But it is also very fun. I've learned alot from it. (stuck at level 6 or 7, dunno, on the basic mission ).But as someone said a very long time ago hacking is a way to find exploits. And since the first day I've been searching for noob exploits on every website I enter. But OFC, I don't use them Normally I tell the site administrator. The funniest thing is, that theese noob level things, are very normal when a new html/php programmer wants to create a site
-
The thing houdini said should work. But if you did NOT create a index.php or index.html page, you can do this ( if you did, try to change the name to something else like test.php [only for testing, it is really recomended that you have an index page in the root folder, but now, just test]). Try to type this in you web-browser when your server is on. Now, you should see all the files and folders in the root folder (WWW). Now just search for the folder/file you created and press on it. that should work just fine.
-
I think (maybe I know where from to install it).there is a thing (ike windows) named add/remove software.. It can be done from there I think.BTW. I didn't use a cd.. I installed a file that would boot on the windows startup and load the installer. then I just installed it.
-
jeigh. I am using ubuntu 7.10 (or something). so you mean that wine is already there, ready to be installed :)and BTW: Thank you yordan, and xboxrulez, for your answers
-
No idea how to install it =/ or where to get it, or how to use it sorry for being so noobish but you know me when It comes to new stuff
-
Hey! I just wanted to know wich firewall do you guys recommend. Because my dad thinks that someone hacked his computer. He didn't download anything, and never accepted a file, and now his system32 folder is gone. or thats atleast what the computer is saying on windows startup. So can anyone please give me a name for a very hacker secure firewall? Thanks
-
Hey!Sorry if this should be in the game forum, but it is about a game in Linux. And I need help with it so I thougt that it belongs to here.So.. Is it possible to install Diablo 2 on Linux using some sort of patch, or any special software? Not just diablo. But other games too, that only works on Windows.Thanks //Feelay
-
Hey! I want you to have a look at this: http://packages.ubuntu.com/search?keywords=audacity I am trying to download audacity to Linux. But I don't know where I should go from here.. This is not the only place. I tryed to download amsn too, but I came to the same site (but for Amsn instead of audacity OFC). Can you please make a "mini tutorial" that can help me download and install the softwares? Thanks //Feelay Edit: Ok.. I don't even know how to install tar.gz softwares like the flash player.. I am a total noob, and would really like some help
-
Hey!I've just downloaded and installed ubuntu (sorry Yordan. That was the only one that didn't need a CD).Now I have some questions.What Anit-virus and Anti-Spyware should I use (or don't I need any for Linux?)?.What 2D/3D editor can I use to create/change pictures and things?What Audio Editor can I use to create/change songs and things?What Web-broswer can I use for Linux? (or can it also use fire-fox?).Is there any MSN for Linux? or does it use something else, that can write to people using MSN?And if there is anything else I need to get, I would really like you to post it here If I think of something else, I will add it here.OFC: Write the name of the software, and if you can, add a link, please. Because I am sure that many more people than me will find this usefull.Thanks //Feelay
-
Yes. Thank you It helped alot ;)And BTW Your explanation were clear, but I just made a fast summary to make sure that I really understood what I had to do ;)I bet that I am not Clever at all I will install linux. I will be back when I am done. (wish my harddisk good luck ).