This doesn't work:
if (m == 1,2,3) {
cout<< "Sorry you cannot go any farther north.\n";
}
How can I make this work?
Ink
Hey everyone, still learning c++ I had a question.
How do I create an array that will hold strings of text.
such as:
??? map[10];
map[1]= "text";
map[2] = "text2";
map[10] = "text3";
cout<< map[1] "\n";
help would be great
ink
Many compilers will automatically put a function saying:
cout<<"Press any key to continue...";
system("PAUSE");
As so you can still view your work when it is finished. This is because once the program has nothing left to do it will exit, to help prevent this the compiler puts system("PAUSE");
I suggest that you get Dev C++ Bloodshed, it does not automatically put these functions at the end of the code. Instead if you still need to view things after your program has complete I suggest you put cin.get(); as this will wait for the user to hit enter before the program exits.
-Inkcoder
Watch these guys beat 7 Zelda games in 70 Hours. Started at today a few hours ago. This is a great geek related festival! The Mario marathon team will play through the first 3 2-D zeldas then another team will play through the 4 3d zeldas all over the weekend in a 70hour extravangaza!
http://www.mariomarathon.com/
The Legend of Zelda
Zelda II
Link to the Past
then
http://www.cameronbanga.com/
Ocarina of Time
Majoras Mask
Wind Waker
Twilight Princess
So come on in and watch the lives feeds. As of now the mario team is playing zelda II and will be going until tomorrow around 5pm Eastern Time which then the 3d zelda team will start. So check out the live feed!!!
-Inkcoder
Thanks Everyone! I hope all beginners find this enlightening!
-Inkcoder
To turn on Windows automatic updating:
1. Click the Start button, point to All Programs, and then click Windows Update.
2. In the left pane, click Change settings.
3. Select Install updates automatically (recommended).
Hope this helps...
Inkcoder
Hmm...
If you formated and reinstalled windows XP with a working disk it should not still be getting errors. It sounds like there is either a problem with your windows install disk or a problem with the actual hard disk. Format the C: drive and try a new Windows XP install disk. If this fails you might have to order them a new hard drive and charge them for the parts and then install windows on the new hard drive.
Hope this helps,
Inkcoder
Well if you were like me and Python is your first language. You are trying to learn programming and many people suggested that learn Python as a first language. You take their advice, your download Python and get all set up. Maybe you take a tutorial or two in order to learn some basic syntax... Now you are sitting in front of your computer and you are wondering what to do next. I suggest you start on some projects and get programming to learn more Python. I have created all the projects myself, and will include the source code in this post. Refrain from looking at the source code, even when your stuck. If you get to the point where you have nowhere else to look, take a tiny peak but then go straight back and start doing your work again. If your programs works and our source code doesn't match, pat yourself on the back! Then look at my source code versus yours and see how you can shorten or make your programs better. My way of doing it is probably not the best way, experiment!
1) Guess My Number:
Overview:
The computer randomly generates a number. The user inputs a number, and the computer will tell you if you are too high, or too low. Then you will get to keep guessing until you guess the number.
What you will be Using:
Random, Integers, Input/Output, Print, While (Loop), If/Elif/Else
My Thoughts on Project:
If …
Ok....
As for you virus issues, I think a good scan from SpyBot will do the trick. Download here: http://projects.securitywonks.net/projects/details.php?file=2
Then install the software, afterward select check for problems. Let it scan, this might take a while. Then you will get a read out of problems within your computer, select to fix the problems. Hopefully this fix most of your problems.
As for your audio, you will need to figure out what kind of sound card you have. To do this go to your Control Panel>Hardware>Device Manager>Sound, video and game controllers> Then look for your sound card. If your sound card does not display look up your computer model on Google and see if you can find the sound card information from there.
After this, search your sound card on Google. You should be able to find a download for your sound card device.
Hope this helps,
Ink
On start up tap F10; with luck this might get you into a recovery mode for the system.
If this doesn't work, try tapping F8 and booting the DOS. Type format c: to clean out the drive and then try your windows XP boot disks...
If none of these fixes help you might need to contact dell and get new recovery disks... Or you could take it to a computer shop to have them look at it. Or just install a new OS....
-Inkcoder
I think the only way to fix this problem is to upgrade your windows vista and then do the fix that explained in my earlier post.
If it is taking a long time to scan it could be your trojan/virus slowing it down. Just let it complete the scan and then follow the on screen instructions.
Hope this helps!
Austin
Hmm.. If your still having the problem like I said one of the best scanners which may pick up things others don't is SpyBot: http://www.safer-networking.org/index2.html
Other than that you can look into the recovery console... This is a good help link if you are unsure what to do: http://www.computerhope.com/issues/ch000627.htm (I'm assuming your using XP, if your not... Google is your friend.)
-Austin
You Hijack log looks pretty clean... I was iffy about a few process's but a few Google searches told me otherwise.
If this is an ongoing problem download a malware and adware scanner.. I would suggest Spybot: http://www.safer-networking.org/index2.html
or also Ad aware:
http://www.lavasoft.com/products/ad_aware_free.php
Hope this helps,
Austin
Press Control+Alt+Delete.
Go Over to Processes and then end all processes named iexplorer.exe (if there is any). This might be your problem.
If this doesn't help a fresh restart of your computer is always helpful.
And if worse comes to worse then just try reinstalling your internet explorer.
Hope this helps,
Austin
Thanks for you help this solved my problem!
I'm currently trying to make an address book that can store data in a .txt file.
print "Virtual Address Book"
print "Austin Jackson; Project 4 : Jun 14, 2008"
print " "
print "1. Add New Contact Information"
print "2. View Adress Book"
choice = input(">")
if choice == 1:
name = raw_input("Contacts Name:")
address = raw_input("Contacts Address:")
number = raw_input("Contacts Number:")
email = raw_input("Contacts Email:")
out_file = open("address.txt", "w")
out_file.write("Contacts Name: ")
out_file.write(name + "\n")
out_file.write("Contacts Address: ")
out_file.write(address + "\n")
out_file.write("Contacts Number: ")
out_file.write(number + "\n")
out_file.write("Contacts Email: ")
out_file.write(email + "\n")
out_file.close()
if choice == 2:
in_file = open("address.txt", "r")
text = in_file.read()
in_file.close()
That is what I have so far. I have two problems:
1. Every time I enter a new contact the previous contact gets over written.
2. I cannot display my address (choice 2)... Though I think my code is correct...
Help would be appreciated,
Austin
Hmmm.. Looking at your process scan I can't see much going on other than possible normal windows process's with possible back door breaches... What I would suggest is you get a free edition of "The Cleaner" and have it run (it's a Trojan scanner): http://www.moosoft.com/
After that just for good measure have SpyBot give your computer a scan: http://www.safer-networking.org/index2.html
-Austin
It sounds like a problem with your browser not being able to access the internet because of the firewall. Go under the exceptions for your firewall and see if your browser is being blocked or limited. (IE - iexplorer.exe, Firefox - firefox.exe)
-Austin
Run a hijackthis so we can see whats going on:
http://www.trendsecure.com/portal/en-US/tools/security_tools/hijackthis
Give us the output and we can help you from there.
Austin
This is an ongoing problem for many people and you might have to upgrade your Windows Vista to solve the problem but this is the best fix I know of...
Go into Administrator Tools>Local Security Policy>Local Policies>Security Options then go under the Policy Key: Network Security - LAN Manager Authentication Level and then change the value to Send LM and NTLM responses, then try to map your drive.
Hope this helps!
Austin
Restart your computer. On startup tap F8. You will enter a selective startup menu, select Safe Mode and continue. At login you should see an Administrator account. Login as the Administrator (Note: If it has a password it is most likely your password). Now you should have Administrator rights so try to do a System Restore from there.
Hope this helps,
Austin
Thanks Vegaseat your reply was very helpful but a little bit off and I'm having difficulties editing your code.
What I really wanted was for the output to be seamless example:
TEST = 20.5.19.20
Thanks Everyone!
Austin
Hello Everyone!
I am new to Python, this is my second project. I am trying to make a program that will take a users input and then output the words into the format where A = 1, B = 2, C =3 ... and so on. I want to start this basic just to get my feet wet before I plunge in. Though I'm having a few problems, I think right now it is a problem with the input:
test = raw_input(">")
test = test2.replace('a', '1')
print test2
Help would be most appreciated!
Austin Jackson
Hello Everyone,
I just joined here hoping to increase my knowledge at python. I have been beginning to learn this language as of yesterday. I have decided that if I really want to increase my knowledge I should start on a project. Well here is my first project, a simple calculator. But for whatever reason when I run the program I'm getting some strange errors... Whatever help and advice you guys could give me would be most appreciated!
#Calculator Test1
print "Calculator:"
print "1)+"
print "2)-"
print "3)*"
print "4)/"
print " "
print "Select Choice:"
op = input(">")
print " "
#Add
if op == "1":
print "a + b"
add1 = input("a:")
add2 = input("b:")
print "a + b =", add1+add2
#Sub
if op == "2":
print "a - b"
sub1 = input("a:")
sub2 = input("b:")
print "a - b =", sub1-sub2
#Multi
if op == "3":
print "a * b"
mul1 = input("a:")
mul2 = input("b:")
print "a * b =", mul1*mul2
#Div
if op == "4":
print "a / b"
div1 = input("a:")
div2 = input("b:")
print "a / b =", div1/div2
Thanks,
Inkcoder