Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 66
Search took 0.01 seconds.
Search: Posts Made By: Arnack
Forum: C++ May 4th, 2008, 4:52 PM
Replies: 12
Views: 433
Posted By Arnack
Re: Simple if statement question :(

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <cctype>
#include <windows.h>
//"Mage Wars" copyright Crimson Games 2007. All rights reserved.
//Created by...
Forum: C++ May 4th, 2008, 4:02 PM
Replies: 12
Views: 433
Posted By Arnack
Re: Simple if statement question :(

Hey, cool! Thanks a lot, that was very helpful. I couldn't help but catch the "bool" an and then the variable bCont after it.
What exactly is bool? I thought I would use "string" for that, simply...
Forum: C++ May 4th, 2008, 11:39 AM
Replies: 12
Views: 433
Posted By Arnack
Re: Simple if statement question :(

Thanks a lot :)
I will also try proper indenting techniques as well.
Forum: C++ May 4th, 2008, 11:25 AM
Replies: 12
Views: 433
Posted By Arnack
Re: Simple if statement question :(

Thanks, peaceofpi. That was helpful and I've fixed my problem; yes I want to get deeper and more complicated in this simple program I have built.

#include <iostream>
#include <string>
using...
Forum: C++ May 4th, 2008, 10:59 AM
Replies: 12
Views: 433
Posted By Arnack
Re: Simple if statement question :(

Okay- all that happens is that when I input all 4 numbers the screen just exits.
Forum: C++ May 4th, 2008, 10:38 AM
Replies: 12
Views: 433
Posted By Arnack
Re: Simple if statement question :(

Silly me :icon_redface:
Thanks... and just out of curiosity, how can I get the program to go back to the start after ending instead of "Press any key to continue" and the command prompt exits?
Forum: C++ May 4th, 2008, 9:30 AM
Replies: 12
Views: 433
Posted By Arnack
Simple if statement question :(

I haven't used C++ in a while, and right when I get back to starting up again, I fall upon this simple error in my simple code here:
#include <iostream.h>
#include <stdio.h>
#include <string>
using...
Forum: PHP Mar 26th, 2008, 7:26 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

I'm actually just going to scratch the search thing and think up a whole new idea for my website... :zzz:
Forum: PHP Mar 26th, 2008, 4:32 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

No, a friend gave me the script to practice on.

Now- I believe that solves everything really. Now I need to figure out how to make the outputed searched material have a link to a review page for...
Forum: PHP Mar 26th, 2008, 4:14 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

SWEET :D
Now a simple problem here:
What it does is this:
SELECT * FROM users WHERE info LIKE '%JIM%'Jim Jones
In his spare time Jim enjoys biking, eating pizza, and classical music

That's what it...
Forum: PHP Mar 26th, 2008, 3:50 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

Ahh okay, I got it now. No errors anymore- now just this:

SELECT * FROM users WHERE info LIKE '%PEGGY%'Sorry, but we can not find an entry to match your query

So peggy which is in the database...
Forum: PHP Mar 26th, 2008, 3:13 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

Okay, done.
Now I get this error:
SELECT * FROM users WHERE info LIKE '%HELLO%'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right...
Forum: PHP Mar 26th, 2008, 2:45 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

Okay. Here is my MySQL code:


CREATE TABLE users (fname VARCHAR(30), lname VARCHAR(30), info BLOB);

INSERT INTO users VALUES ( "Jim", "Jones", "In his spare time Jim enjoys biking, eating pizza,...
Forum: PHP Mar 26th, 2008, 2:20 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

Alright it does print out Query Error.. :(
Forum: PHP Mar 26th, 2008, 1:39 PM
Replies: 19
Views: 571
Posted By Arnack
Re: Simple PHP Search Script

Okay, thanks... and I tried that. Now it's bringing the error that I forgot to type something in the search for some reason.. (when I am typing in the search is still does the same thing..).

EDIT:...
Forum: PHP Mar 26th, 2008, 1:18 PM
Replies: 19
Views: 571
Posted By Arnack
Simple PHP Search Script

I put this all on index.php:
<html>
<head>
<title>arnack.com Gaming Wesbite Database</title>
</head>
<body>
<h2>Search</h2>
<form name="search" method="post" action="<?=$PHP_SELF?>">
Seach for:...
Forum: C++ Aug 14th, 2007, 9:17 PM
Replies: 45
Views: 1,013
Posted By Arnack
QTF. Most helpful post I've seen on his thread so...

QTF.
Most helpful post I've seen on his thread so far. Thanks.
Forum: C++ Aug 14th, 2007, 6:12 PM
Replies: 47
Views: 1,078
Posted By Arnack
Thanks for the productive criticism, as well as...

Thanks for the productive criticism, as well as the helpful tips! It will do me well.
Forum: C++ Aug 14th, 2007, 5:23 PM
Replies: 47
Views: 1,078
Posted By Arnack
Your talking like the goto command is the death...

Your talking like the goto command is the death to all of us...
And don't get me wrong, I've tried functions so many times, over and over and over, but I always end up with this error (No matter what...
Forum: C++ Aug 14th, 2007, 2:03 PM
Replies: 47
Views: 1,078
Posted By Arnack
Updated version of my program. No problems. Just...

Updated version of my program. No problems. Just thought I should show you all.
Yes, it is sloppy, but I am a bit proud of myself (we were all newbies once) of how far I have gotten, and that it...
Forum: C++ Aug 14th, 2007, 1:33 PM
Replies: 45
Views: 1,013
Posted By Arnack
Stop bringing up my name or "our" future...

Stop bringing up my name or "our" future plans.
All we are doing is practicing.
Forum: C++ Aug 13th, 2007, 8:45 PM
Replies: 47
Views: 1,078
Posted By Arnack
Alright, really simple question. dmg = rand() %...

Alright, really simple question.
dmg = rand() % 12 + 7;
This randomizes a number 7-12. (which I use as your damage during a fight)
I need a way to be able to add each number (12, and 7) by 3. (so it...
Forum: C++ Aug 13th, 2007, 5:36 PM
Replies: 47
Views: 1,078
Posted By Arnack
DaWie, you see, I have gotten 1/4 of my C++...

DaWie, you see, I have gotten 1/4 of my C++ tutorial done. With what I have learned, I would be able to create a text RPG using Ifs, elses, and loops. I learn the code I copy paste, sometimes...
Forum: C++ Aug 13th, 2007, 1:50 PM
Replies: 47
Views: 1,078
Posted By Arnack
Okay, after a couple of days I have gotten far in...

Okay, after a couple of days I have gotten far in my new program.
But I have a simple problem which I probably am over-looking...
When I get to the fighting code on the .exe, all it does (each time I...
Forum: C++ Aug 11th, 2007, 11:35 PM
Replies: 47
Views: 1,078
Posted By Arnack
Hmm, I'll take a look, thanks, once again.

Hmm, I'll take a look, thanks, once again.
Forum: C++ Aug 11th, 2007, 11:00 PM
Replies: 47
Views: 1,078
Posted By Arnack
Okay, I have a question that's getting to me. How...

Okay, I have a question that's getting to me.
How can I get a previous block of code and bring it back in the program somewhere at demand? I've tried void() but it won't work for me.
EDIT: actually I...
Forum: C++ Aug 11th, 2007, 9:40 PM
Replies: 47
Views: 1,078
Posted By Arnack
Thanks Mark, i'll take a look at it. that was...

Thanks Mark, i'll take a look at it.
that was EXTREMELY helpful!
Did you make it?
Forum: C++ Aug 11th, 2007, 7:07 PM
Replies: 47
Views: 1,078
Posted By Arnack
Okay, a simple problem now... How do I make a...

Okay, a simple problem now...
How do I make a block of code play itself again?
(void, etc)
Anyone know?
Arnack
Forum: C++ Aug 11th, 2007, 11:11 AM
Replies: 47
Views: 1,078
Posted By Arnack
I don't think you understand, buddy. You give me...

I don't think you understand, buddy.
You give me a link to
1) I random number generator, but if you actually read my "bad code", you will see that I do have a random number generator, and actually,...
Forum: C++ Aug 11th, 2007, 11:09 AM
Replies: 45
Views: 1,013
Posted By Arnack
:P Yeah DaWei seems like he doesn't have much...

:P Yeah DaWei seems like he doesn't have much else to do but lay around on these forums rambling about how he is better than C++ than the newbies.
Sad, if you ask me.
Anyways, on topic:
What's your...
Forum: C++ Aug 11th, 2007, 12:50 AM
Replies: 47
Views: 1,078
Posted By Arnack
#include <stdio.h> #include <stdlib.h> #include...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
//"Mage Wars" copyright Crimson Games 2007. All rights reserved.
//Created by Arnack, distributing this source is...
Forum: C++ Aug 10th, 2007, 11:32 PM
Replies: 47
Views: 1,078
Posted By Arnack
Well I'm a newbie, and I don't really get what...

Well I'm a newbie, and I don't really get what you said. :P
I mean yeah, that would help dramatacly, I'm just trying to get this thing to work... I need something that returns you back to the main...
Forum: C++ Aug 10th, 2007, 11:15 PM
Replies: 45
Views: 1,013
Posted By Arnack
Thanks ^_^

Thanks ^_^
Forum: C++ Aug 10th, 2007, 11:03 PM
Replies: 47
Views: 1,078
Posted By Arnack
I've been paying attention... And I've fixed what...

I've been paying attention...
And I've fixed what is told to be fixed.
Like I said, no errors, no bugs.. just this problem.
Forum: C++ Aug 10th, 2007, 10:33 PM
Replies: 47
Views: 1,078
Posted By Arnack
Thanks guys, all is going well, but I have a...

Thanks guys, all is going well, but I have a question...

//attack one

if (enemyhealth <= 0)
{
cout << "You have slain the vile enemy! You now gain 10 gold!";
money = money + 10;
}
else if...
Forum: C++ Aug 10th, 2007, 9:25 PM
Replies: 47
Views: 1,078
Posted By Arnack
Thanks Prm! Okay, last question, pretty...

Thanks Prm!
Okay, last question, pretty simple.
How do I slow the time of when cout starts? Like I want 10 seconds before one cout is actually processed.. anyway?
Forum: C++ Aug 10th, 2007, 8:45 PM
Replies: 47
Views: 1,078
Posted By Arnack
Okay, having some trouble, again. #include...

Okay, having some trouble, again.

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
//"Mage Wars" copyright Crimson Games 2007. All rights reserved.
//Created by Arnack, distributing this...
Forum: C++ Aug 10th, 2007, 8:07 PM
Replies: 47
Views: 1,078
Posted By Arnack
Thank you, I will check it out.

Thank you, I will check it out.
Forum: C++ Aug 10th, 2007, 7:52 PM
Replies: 47
Views: 1,078
Posted By Arnack
Okay, can anyone tell me how to print an int that...

Okay, can anyone tell me how to print an int that creates a random number from 10-20 or something like that?
Kinda like a random number generator...
Thanks!
Forum: C++ Aug 10th, 2007, 7:24 PM
Replies: 47
Views: 1,078
Posted By Arnack
Nevermind, I got it working. Thanks so much man!...

Nevermind, I got it working. Thanks so much man! I might be putting some more questions up in this thread.. hopefully that isn't a hassle for you all!
-Arnack
Showing results 1 to 40 of 66

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:51 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC