Assembly Guy 72

You won't need an array. The simplest method to turn an integer into a grade from your table is to use a series of cmp and jg instructions. For example:

cmp score, 90
jg Grade_A
cmp score, 80
jg Grade_B
cmp score, 70
jg Grade_C
cmp score, 60
jg Grade_D
 - - and so on - -

I know you went to arrays for efficiency's sake, but try not to overthink these things. Keep it simple.

You'll need some way of converting the string you're getting from stdin into an integer (IIRC)

Roger_2 commented: please take a look at my code below i would like your information +0

Assembly Guy 72

Oh jolly! A riddle! Not only do we get to guide you through fixing the code, but we also get to make wild stabs and guesses at what exactly the code does, and which errors is is producing. My Saturday nights don't get any better than this.

In all seriousness, you're going to have to provide us with a bit more background info. What's this program supposed to do? What's it not doing that it should? I understand that this is an international forum and there may be a language barrier, but please try to explain as best you can.

Assembly Guy 72

which code(c or c++ or java) you want tell me first

Well seeing as this is posted in the C++ forum, I'm going to make a wild guess that it's a C++ question ;)

Assembly Guy 72

I'm a professional figure skater.

Why else would anyone be here?

Also this has to be put somewhere in here: <div class="derailed">

Assembly Guy 72

aw not that kind of programing

If you don't like streams, calling printf("*143#\n"); from within C++ is valid, so long as you include stdio.h

Assembly Guy 72

Seeing as this is homework, I'm not giving you the tip outright or step-by-step. Follow above poster's advice, but here's some extra food for thought. The ASCII values for a lower case letter and its capital counterpart have some interesting properties. Look at them in hex or in binary form. You can switch from lowercase to capital with a specific bitwise operation and accompanying bitmask.

Assembly Guy 72

I heard that C++ is used for creating games.

That's certainly correct; a lot of game development out there is done in C++. Just keep in mind that it's not the only language you can use to develop games and in a decade or so when you're comfortable with developing games in C++ and get bored, you could try out game dev in other languages :)

Assembly Guy 72

You can sort-of dynamically create tuples, for example:

name = "Jim"
last_name = "Beam"

mytuple = (name, last_name)

However, you'd not be able to dynamically change the size of a tuple. That sort of thing's hard-coded.

Assembly Guy 72

We don't do your homework for you. Show some effort of your own toward solving the problem before simply demanding code.

Assembly Guy 72

they can increase the tax on it.

Thus penalising everyone for a minority's mistakes?

Assembly Guy 72

What do you think is going to change inFile's boolean state to quit the loop?

Assembly Guy 72

I ain't an expert in grammar either, although I fancy myself a connaisseur.

That is quite possibly the most hilarious way I have heard the words fancy, myself and connaisseur being used. I simply don't see grammar as being a sibling of fine cheeses and wines...

Assembly Guy 72

I that a while after I wrote. It's performing the ! operation on i, then the modulo. It'd need brackets for example !(i%3). This puts it to the same length as i%3==0.

Assembly Guy 72

set /p is a set command with a 'prompt' flag fed to it, meaning that it will prompt the user for a value to set the variable to. Example (untested):

set /p "myvar=Enter a value: "
echo You said %myvar%

To answer your second question, check out DosTips.

Assembly Guy 72

Do you mean that Ubuntu set up a tiny partition and is only using that? Maybe post a summary of sudo cfdisk /dev/your-hdd-or-disk-or-whatever. You can extend and shrink partitions fairly safely using gParted, remembering to run it from a disk which isn't the one you're changing.

Assembly Guy 72

While we're on the topic of the buttons, I find them a bit standy-outy. I find them to draw attention away from the post. Maybe if they were more pale? Maybe it's just me.

Assembly Guy 72

Are you sure that there is more than one result being returned?

Assembly Guy 72

That's a statement, what's your question? What have you done so far?

Assembly Guy 72

Search Engines are smarter than to take 3 links to your website on the same thread and count them as backlinks.

Assembly Guy 72

On my end, the load time is 0.28 seconds (further from the server, I guess)

AFAIK, (and if you're talking about the thing in the footer), it's how long it took for the page to be generated, before dispatch to the client, so your distace from the server or link speed shouldn't affect it. One time I had a generation time of 14 seconds, but let's not bring that up...

As Mike's pointed out, what's wrong with 2MB of memory being used? It's not like it's the total size of the page which you end up downloading (correct me if I'm wrong on this)

Either way, it sounds like WEB-REPORTER's an 11-year-old, or has other troubles.

Assembly Guy 72

Looks fine for me, although I'm running Firefox and Chromium on Linux, not Chrome on Win7

Assembly Guy 72

If you work at home, then yes you can.

That would be omitting the fact that a lot of clients are driven away by people who aren't suit-wearing, conforming pricks. But four posts up, happygeek dealed with that issue.

Assembly Guy 72

Javascript has nothing to do with Java. This is the Java forum. Also, this stinks of homework.

Assembly Guy 72

As someone else on Daniweb has said, he gives a lot, he gets a lot :)

<M/> commented: Yep... who said that? +0

Assembly Guy 72

Faster...

This doesn't sound like the words of someone who is well-versed in the ins and outs of different web server software and their points of difference. It sounds like someone who's just reads the TL;DRs

There are more possibilities than the one you mention. Just because you like one solution, doesn't mean it's viable for every other project.

True. Personally, I like lighttpd, but Dani is an informed person who's intelligent enough to make these decisions. Speed is not the only concern in running a website think security, quick fixes of server problems and so on. Besides which, it would be useless if there was a lightning-fast web server which was difficult, uncomfortable or awkward to use. I'm not saying nginx has these qualities - nginx is fine in my opinion, but a large part of how effective a piece of software will be in an environment is how well the users will be able to, well, use it. Imagine this:

"Grandma A learned to knit with bendy rubber knitting needles. Grandma B learned with traditional needles. Grandma A has observed the amazing ability to manupulate patterns and create garnments which would usually take longer on traditional needles. Grandmas A and B produce equally good garnments, just that one does it a bit faster than the other."

While Grandma A's bendy needles may appear superior, you may forget that they may only be superior while in Grandma A's hands. Grandma B may have great trouble using them and the ...

Assembly Guy 72

can we check whole motherboard using AVO meter or another equipments is necessory

It all depends on what part of the motherboard's broken. If you need to look at buses or lines which are switched at high frequency, your little AVO meter won't cut it - it won't be able to detect the fast changes in voltages. A logic analyser might be useful.

best4earn commented: Thanks Assembly Guy +2

Assembly Guy 72

It's just funny to me that some clown like you, would take the time out of his day, to write some nonsense like this.

It's just funny to me that some clown like you would take the time out of his day to write a response to that message if you find it so laughable.

Assembly Guy 72

Maybe he just wanted to see what deleting your profile actually does.

Assembly Guy 72

If 0-<-< really is Michael...

<M/> commented: yep :D +0

Assembly Guy 72

No. Python is a scripting language, which means that it requires an external program to interpret the python source code for it to be executed. To be able to execute Python, you require the Python Interpreter to be installed. This interpreter only runs in an existing operating system, such as Windows or Linux. On top of that, Tkinter requires a window manager to be present. On Windows, the window manager is part of the OS.

This renders it impossible to write an OS directly in python.

ddanbe commented: Yes. +14