Killer_Typo 82 Master Poster

A newbie to C++ here. I need help with counting array length's, I have an array that i only want the user to be able to enter up to ten characters, but lets say if i enter eleven, the array is expanded out to eleven charactes, and i dont want that. i want the array to be cut off at ten.

so far this is the code that i have.

/* Welcome to Dungeon, This will be a simple game */
/* that will require the users name, and confont him */
	/* with a maze in which he must navigate! */
					 /* Good Luck! */
#include <iostream.h>
int main()
{
char UsrName[10];
//will prompt user for name to be used throughout the game
cout<<"Welcome to Dungeon!\nPlease enter your name!\nYour name can only be up to 10 characters long.\n";
//write a function to stop array from becoming over ten characters long
cin>>UsrName;
cout<<"Welcome "<<UsrName<<"!";
}

i need to count the array on character at a time in a loop, after each iteration it will check to see what number of the count that it is on. if it is at ten it will simply cut off the end of the array leaving with a nice neat little array. Any help would be greatly appreciated. As to the fact that i am a newbie to C++ any help on better ways to write my code would be much appreciated.

Killer_Typo 82 Master Poster

i found this answer from another site

Uninstall ZoneAlarm by going to Start, Settings, Control Panel, Add/Remove Programs.

Now go to the following site and install the latest version:

http://www.zonelabs.com/store/content/company/products/znalm/freeDownload.jsp

Hope this helps!

Killer_Typo 82 Master Poster

rotten --> dot com

Killer_Typo 82 Master Poster

Yep. It's a great game. I played it for 200 hours before even starting the first mission.

hahahahhahahahahah that game is soo awesome, i remember i was fighting two guards and in middle of battle i stopped and swapped clothes with a woman passing by, OMG HAHAHAHHAHAHHAHAHA it was soo funny i was in a dress and a girls top, and i was an ogre looking thing. a ;lskjdfl;kasjdfl; dfhahahhahahaahaha

Killer_Typo 82 Master Poster

not sure if this is what your looking for...but HP made the vectra somthing or other

http://search.hp.com/query.html?hpvc=US+-+English&cc=us&lang=en&qt=+vectra+vli8&la=en

Killer_Typo 82 Master Poster

serial numbers for what?? you gotta be more specific if what your looking for??

Killer_Typo 82 Master Poster

Need some help. Don't know anything about programming except HTML, would like to know where I should start to learn the language. :?:

HTML and programming are soo far about.


HTML Hyper Text Markup Language, its all formating, no programming at all

there is C, C++ and C#, i would recomend C++ and

www.cprogramming.com

good for C and C++ though. C or C++ takes years to get good at, and even more to get truly confident, Read books, do tutorials, and post alot for help.

Killer_Typo 82 Master Poster

I only like ragnarok online for online gaming. I don't like CS because it's outdated (you might define this as descrimination) and because there are alot of better games on the market. I don't like HALO due to the game engine, it's very poor (in my eyes). I run Doom 3 at the same settings I run halo and it's so smooth while halo is like watching a slide show, and I think we know which of the two has the better graphics ;).

lol thats hella true

Killer_Typo 82 Master Poster

smart --> fart

Killer_Typo 82 Master Poster

i used to play. my brother plays alot, and so does his roomate

Killer_Typo 82 Master Poster

toooo many to name:

All Final Fantasy
All MegaMan
Chrono Chross
All Zelda's

soo many games


CS
DoD
CoD
Nascar 2003 by papyrus racing


sooo many

Killer_Typo 82 Master Poster

U S Of Freaking A All The Way Baby!!!

Killer_Typo 82 Master Poster

try reinstalling your video card drivers.

Killer_Typo 82 Master Poster

naivety > huh?

Killer_Typo 82 Master Poster

do a spybot s&d scan, a ad-aware scan, and a virus scan and then post your hijackthis log in the security forum. This is posted in the wrong section.

he said he's already done that to no avail. I would suggest just doing a HJT log if non of the scanners seemed to help.

Killer_Typo 82 Master Poster

one word Painkiller!

Killer_Typo 82 Master Poster

here is the entire conversation at expert exchange, i copied and pasted it for your viewing pleasure..


Accepted Answer from PeteLong
Date: 07/09/2004 12:23PM PDT
Grade: A
Accepted Answer
Remote Shutdown

Shutdown.exe is available in the Microsoft Windows 2000 Resource Kit. It is a command-line tool that you can use to shut down or restart a local or remote computer that is running Windows 2000 or Windows NT 4.0. If you want to schedule a computer to shut down and restart at a specific time, use Shutdown.exe in combination with the at command or Task Scheduler.


HOW TO: Use the Remote Shutdown Tool to Shut Down and Restart a Computer in Windows 2000

*****Software*****

PsShutdown is a command-line utility similar to the shutdown utility from the Windows 2000 Resource Kit, but with the ability to do much more. In addition to supporting the same options for shutting down or rebooting the local or a remote computer, PsShutdown can logoff the console user or lock the console (locking requires Windows 2000 or higher). PsShutdown requires no manual installation of client software.

Syntax: "psshutdown -u username -p password -r \\computername"

EMCO Remote Shutdown 1.4 is a Freeware utility to Shutdown/Reboot one or many machines on a NT network's. It works only under Administrator rights.

Multi-Remote Shutdown Manager is an easy and fast way …

Killer_Typo 82 Master Poster

experts exchange is a free to browse site? i peruse through their all the time looking for answers??

Killer_Typo 82 Master Poster

Going to need all of the specifications that you can give me on the laptop before i say its anything. Try to fill this out

OS(operating system, Mac/Windows 9x ME NT 2k XP/Linux):
Processor (CPU):
RAM:
Motherboard:
Hard Drive (size and make):
Sound Card:

that should give us a better idea of your system. Also did this just start, or has this been somthing that has happend since you got the laptop, being the latter it might just be that you have a slow laptop, being the former, it could be a virus or software issue. eithery way gonna need the specs on your system.

Just to do some things that might help right off the bat.

Go to
(assuming windows)
Start>Program Files>Accessories>System Tools>Disk Cleanup

run that and have it clean everything. then

Start>Program Files>Accessories>System Tools>Disk Defragmentor

run that, Assuming you may be on an earlier version of windows in the 9x series, i would recomend a Scandisk too.

Killer_Typo 82 Master Poster

sounds to me like a refresh rate problem.

Right mouse click the desktop>Properties>Settings>Advanced>in the new window that pops ups choose Monitor> and making sure that you have the box checked to not allow modes not supported, chose the highest refresh rate that you can.

Killer_Typo 82 Master Poster

remove the second banner area. leave the Bill's PC Tips&Tricks, also if your going to use the penguin your going to want to remove the whit background on it so it doesnt look so out of place. Remove the glows on the Windows Longhorn and such, and change the color from that ugly blue to somthing else. Its nice design so far, just needs work to make look better.

Killer_Typo 82 Master Poster

vodka --> looser

Killer_Typo 82 Master Poster

Another clue:

Outlook Express works when I log in to XP as a different user. I have my Dell PC set up so that for two users: myself and my roommate. Now, after I uninstalled XP sp2, I shut down the PC. Then, apparently, my roommate booted the PC up. And for her, OE has been working fine. She just told me this, so I tried logging on under her name, and sure enough everything works. So I'm guessing that the XP sp2 update installed OE configurations to her username and not mine (since she logged in first after the update). Would that be a good guess? A registry problem, perhaps? With the way I had set OE up, my OE identity does not exist under my roommate's XP profile -- so I still can't access my saved email folders or anything. And I still can't get OE working under my username.... please help....

it sounds like what was said before, it sounds like a setting in OE that needs to be fixed, or delete the location of the settings so they will be recreated.

Killer_Typo 82 Master Poster

http://www.cprogramming.com/

this should help some.

Killer_Typo 82 Master Poster

medicine --> drugs

((lol you made me think of drugs when you said medicine))

Killer_Typo 82 Master Poster

how do i use c programing

post in the appropriate forums for the best answer, but the best place to start is with a book and some tutorials. You probably wont be programming games for a long time, but with dedication you could be off to a good start if you read books and can absorb what you read.

Killer_Typo 82 Master Poster

check out this forum, its got alot of info on what you can do

http://www.experts-exchange.com/Networking/Q_21053744.html

Killer_Typo 82 Master Poster

waste of time --> drugs

Killer_Typo 82 Master Poster

not just show us the framed page, Post the code used to write these pages, and maybe post them in the web design area, for those people out there that know lots about HTML and such (lol like mee ;)) you might have somthing defined thats a netscape variable only thats killing it in IE.

Killer_Typo 82 Master Poster

get and update/run all the progies in my sig.

after that. get a copy of HJT, make sure to save it to its own location on the harddrive, and not onto itself, make sure that it is in a folder, and not openly in Drive C: and make sure its not just on your desktop.

after that, run HijackThis, and save the log, post it in the security forum, and im sure one the more educated people will run through your log and tell you whats what.

Killer_Typo 82 Master Poster

post in the security area, but also get Adaware, and Spybot search and destroy, they will help clense ur machine of alot of things. then get spywareguard and spywareblaster and install them.

As with all of these things, update and make sure you have latest version before running. you can get all of these things from my sig.

Killer_Typo 82 Master Poster

a windows 98 harddisk wouldnt be able to find the drive if you were running a NTFS file system i believe. if you have a windows XP CD try placing that in the drive and booting from that and see if it cant detect the hard drive currently installed into the machine. also make sure the jumper settings are correct the HD itself. Also try removing the newly added things and see if it will boot normally again.

also the memory you put in, the new stuff did it fit into a different slot than the older memory IE it was a different style of memory, you might need to adjust jumpers on the motherboard if thats the case because on mine, there was about 20 pins i had to put into the off position so i could swap the style of memory.

Killer_Typo 82 Master Poster

have you tried looking in your internets history for the site?? also if you need info on anything, look for the FCCID Number, with that number you can put it into an FCCID reader and you can find out all the info you will ever need to know about the motherboard.

Killer_Typo 82 Master Poster

Heheh, school, my last day of high school was...hmm...over 25 years ago...wow, where DOES the time go? :o

wow and i just thought u were some kid...well not a kid...but not 25 years out of school ;)

Killer_Typo 82 Master Poster

get spywareblaster and spywareguard from my sig, they are tools that dont scan for, but actively watch to make sure that it isnt put onto the machine so you dont have to worry about it being installed. as for the switching browsers, personally myself, i use IE, and run Adaware, Spybot, Norton, Spywareblaster, and Spywareguard, and i havnt had an infection in a long time. no real need to switch browsers unless you just dont like the one your using.

Killer_Typo 82 Master Poster

Nice work typo what you build them in? i've done similiar stuff using dreamweaver and fireworks integrated, but nothing as cool looking as yours.

work in fireworks and GIMP (didnt use gimp for these though) and code in dreamweaver. thx for the comments.

Killer_Typo 82 Master Poster

not much to them, just somthing simple that i designed. hope you guys like:

Killer_Typo 82 Master Poster

i guess now its a question of, Do i edit video more, or do i play games more...and if i do them about the same, will the pentium offer me enough of a performance boost of the amd with the video editing that its worth getting.

honestly though with ur rig ur gonna get, i wouldnt see how it wouldnt run all the new games perfectly, so either way, i would go with Pentium, because im a fan of them.

Killer_Typo 82 Master Poster

been back in school for two weeks, (im a senior this year) and cant wait to get out, move to henderson (to be with my g/f) and start at ITT, as soon as i can start in life, the better.

mikeandike, that was a rude comment, and comments like that are not appreciated, what someone chooses to do in life compared to you is their choice. what you may think 'stupid' someone may find to be the best thing to do. so please keep immature comments such as that to yourself.

Killer_Typo 82 Master Poster

Some disguise in the name of gamesprites.com, i c. LOL

give me some idea of what your looking for and ill see what i cant doo for you. mind you i have school, but this sounds like fun.

you can email me at backlash49 at gmail dot com

Killer_Typo 82 Master Poster

The 3.4 supports it.

im a big P fan myself, so i would tend to lean towards it, but i also hear that AMD's make great for gaming, so i would decide on this. whats the main purpose for my machine, does windows support one processor better than another, and which processor offers better flexability. Also look for benchmark tests, look for machines that used each of the processors, and see what kind of performace they were able to achieve, im sure all of this will either help you decide, or make things a wee bit harder :-P

Killer_Typo 82 Master Poster

It's not that their expensive, well they are, but i dont care about the money I just dont want to worry about something popping off and everything dying and I dont want to pay for the non-conductive fluid lol. If I got the 3.4, this is definitely the mobo to go with right http://www.msicomputer.com/product/p_spec.asp?model=925X_Neo_Platinum-54g&class=mb

i like the mobo, looks nice. but have you also looked into a processor that supports HT (hyper threading) or did the CPU you choose already support it?

Killer_Typo 82 Master Poster

Well pretend like I'm not getting water cooling lol. An upgraded heatsink is a definate though one of those 50$ heatpipe ones looks real nice, especially with a 140cfm 120mm fan and a baybus =D I'll save a few bucks by getting an OEM AMD if I stuck with that I'm not sure if Intel distributes OEM's.

lol hehehe, water cooling is a bit expensive yes. though i do like pentiums because of their reliabilty. i have always used them on my main machines, and amd's are all on my scrap machines :-P

Killer_Typo 82 Master Poster

start by using Fdisk to delet any partitions and recreating them. then try formatting, it could be as simple as that. ill do some research and see what i can find out.

Killer_Typo 82 Master Poster

Have you tried removing and reinstalling your video drivers yet? For that matter, does Device Manager indicate that your video card is using the correct driver?

yes, give us the video card, make model, and if you cant find that out. Look for the FCCID number, with that you can find out everything about the card you will need to know.

Your video drivers might have gone corrupt and you need to download new ones. and running a scandisk will do you no good for an issue related somthing like this, at least i dont see how it would help, someone enlighten mee if it can. Honestly, i would look for viruses or malware, that seems more likely if its not a driver issue.

Killer_Typo 82 Master Poster

amd, because with a good water cooling system, you might be able to overclock it to a faster speed...though safely overclocking is such an oxymoron its not really funny. lol. Seriously though, i like Pentium, but i also like AMD for the sole fact of overclocking :-D

right now i have an old AMD 800Mhz clocked at about 961Mhz, not a major jump, but the mobo cant higher a higher clock frequency before it no longer boots.

Killer_Typo 82 Master Poster

There is big difference between C and C++. "Most everything" is written in C.

actually alot of things are writtin in C++ and i know the difference. to a certain degree i do know the difference, i dont claim to have all the knowledge, just enough that i do know the difference.

Killer_Typo 82 Master Poster

repost in the internet explorer section, ill be able to help you more in there.

Killer_Typo 82 Master Poster

DO NOT TOUCH THAT LITTLE RED SWITCH !!

Changing the voltage level of the power unit will cause your system to make lots of smoke, a big flash of light and a loud noise, possibly a fire that will burn the building down, and worst of all your PC will never work again!

lol well ive never heard of that happening, but i do know that it can cause a computer to boot. but in all the times ive messed with computers, ive been lucky to never had one catch fire.

Killer_Typo 82 Master Poster

please post all logs in the security section. thats were they go now.