rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Write the code. This is almost done. If you are still clueless, talk with your teacher or go back to the book...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you get a degree by cheating using our work, do we get the degree?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What's with the underscores? Is that a C11 thing? Ignoring the sytactical errors, the order of evaluation is compiler-specific. Until I see some valid (in my eye) code, I cannot answer your question. If what you meant was x = ++i + ++i + ++i; then anwser should be either 18 or 15. What does your system show? Mine returns 19 for x. If I change the code to this:

#include <stdio.h>

int main(void)
{
    int i=4,x;
    int i1 = ++i;
    int i2 = ++i;
    int i3 = ++i;
    x = i1 + i2 + i3;
//    x=++i + ++i + ++i; // Returns 19 as x.
    printf("i1 == %d, i2 == %d, i3 == %d, x == %d\n",i1, i2, i3, x); // Returns 18 as x, 5 as i1, 6 as i2, and 7 as i3.
    return 0;
}

The result of x is 18, as expected.

The lesson here is to NOT have functions (including increment operators) that operate on the same variable within a single expression. This will cause you more problems than you can imagine. I have spent days debugging these problems for colleagues in the past when their code was seriously broken.

If I just set x to ++i, the expected result of i == 5 and x == 5 is output. If I set x to ++i + ++i, the result is i == 6 (expected) but x is 12. This is telling me that the original value of I is used …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, they are either letters or numbers. What they mean depends upon what they represent. Is it binary code, text, data, what? Until you know what it represents, understanding them is impossible. Some sequences of non-text data are known, and you can then determine what they are, and then decode them. If you determine the values are program code, then you can use a disassembler to turn the hex code into assembly code. If not, then the problem becomes much more difficult as the hex may represent encrypted data, which is another problem entirely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Either an AMD or Intel current build 64-bit processor would work. Go for higher CPU speeds (3GHz or faster). More RAM is better (8-32GB - 8 is on the low end. 16 is good). An nVidia graphics card is preferred, but get a power supply of at least 750 watts. Disc drive is not so much an issue. At this point, don't bother with a higher priced SSD. Get a good (Hitachi, Samsung, or Western Digital) 7200 rpm disc drive - 500GB to 1TB will serve you well. Then, there is the display(s). Myself, I like a dual 1920x1200 setup with 24" monitors. Why dual displays? Because you can run the system applications on one, and view the video output on the other at the same time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In Linux you can use bvi - a binary VI editor. If the files are already in hex format (text really), then any editor will do. Notepad++ in Windows works well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No code. No help. We don't do your homework for you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, this really isn't pseudocode. Pseudocode will describe the problem and solution in regular terms. It should be understandable by someone who is intelligent but not computer literate.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

stars[i][j+1] + stars[i+1][j] - BOOM! The largest index in a size 20 array is 19. What happens when you access element 19+1 in either of these two sub-expressions? It is spelled "Buffer Overflow"...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The Student function definition in line 31 is in conflict with the Student structure definition. Change the name of one or the other.

Lines 43-46 don't compute, are missing a closing brace, and since they aren't part of a function definition and are outside of main(), this is a short trip to compiler hell.

I'm not sure why the error on line 19 except line 13 string lastname, firstname; may be the cause. Try this instead: string lastname; string firstname;

Since the errors are mostly for lines other than the problematical ones, either your editor has a problem, or you compiled a different version of the code to get these errors.

And finally, if you are taking this class, then you need to find time to do the work - family, job, etc. notwithstanding.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This camera uses a separate lens system to feed the display screen since it is not an SLR, just "SLR-like". IE, it looks like an SLR, but it isn't. So, something is snafu with the viewfinder. You may need to send it in for repair.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the microphone is on, it may simply be feedback. Make sure the mic is disabled or muted and see if that helps. My system does that in such cases.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, this makes no sense. Want to elaborate a bit? :rolleyes:

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Usually these would be written to the file system as CSV (comma separated value) files that Excel can handle very well. I used to do that with PHP to generate cell phone performance data for Nokia's quality assurance department.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What version of PHP are you running? Also, you aren't showing much relevant code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What version of Windows is this? It sounds like when the window is out of focus, it is put in a hold state. There may be some Win32 settings you can use to let it continue to run in such a situation, but I am not expert enough with Win32 API's to tell you how to do that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It looks like you are trying to access a member of a class that is not declared or instantiated in instances of that class. You need to look at the "module" components and class/structure definitions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry. We don't do your homework for you. Make an effort and we can help you debug your work. Do read this site's terms of service (TOS) in regard to this issue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If this is a new laptop, take it in for warranty repair. If out of warranty, it is likely that the backlight for the LCD display is bad, or the electronics for that are bad. Again, you need to take it in to a repair depot.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What OS are you running? 32-bit or 64-bit? What version of Chrome? How much memory does your system have? Have you enabled swap memory?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My last 2 work laptops have been Lenovos. Before that strictly Dell - I still use my 9 year old Dell Lattitude D630 - still fast - has dual core 3+GHz 64-bit processor, 4GB ram, 360GB disc, Wifi, bluetooth, HD display. My current laptop is a Lenovo Carbon x1 - nice, good features, light as a feather, great battery life. It has a dual core 3GHz i7 processor, 8GB ram, 250GB SSD, Wifi, bluetooth, and can drive 3 displays - the laptop screen and two 1920x1200 HD external displays. Both have 1Gbps ethernet connectors, though the Lenovo also has a USB 3.0 port - the Dell is limited to USB 2.0. The Dell has an eSata port. The Lenovo doesn't. Both have good audio, microphone, video camera. Being 9 years old, the Dell has held up, both physically and feature-wise, to current laptops.

I know a lot of people who use HP laptops. Most really don't like them much, and I think they don't hold up as well as Dell and Lenovo units, although my grandson has an HP laptop/tablet that my attorney (and good friend) gave him which he uses for circuit design and commercial art work. He runs Windows 7 on it. The tablet features (stylus for drawing) are good for his design work. So far, it is holding up ok, though since he is a computer hardware wizard, he is capable of fixing it down to the circuit level. Even has his own reflow solder station!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I don't see where you are declaring the inputChar variable. Please show the entire class.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Perhaps it has data in a format that Windows cannot read?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is also a switch on the left size near the front of the computer that controls the WiFi and bluetooth. Is that in the "on" position? Also, as CimmerianX indicates, you can also enable/disable it via system settings. Also, it is an option. It is not installed unless you pay for it. You can also get a USB bluetooth dongle. I have used such with good effect. In fact, I have a Belkin USB bluetooth dongle that I use frequently when I don't want to turn on the WiFi.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't have an ideapad but I do have a Carbon x1 - the right shift key is directly under the Enter key.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If this is a full-size sd card then it has a read-only slide that sometimes gets moved into the read-only from read-write position. If this is the case, that would explain your situation. If you are using a micro SD card and you use a full-size SD carrier, then the carrier will have that same slide/switch.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can use ffmpeg to reduce the size or change the video format easily.

Elvi commented: thanks for your reply! +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you have a licensed installation disc, you can easily create an iso from that. If not, then you need to get one.

knives67 commented: thanks a lot for the reply.. :) +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@sdtelchi - which is evaluated in what order when the operator precidence is the same is up to the compiler. This can vary - I have experienced this when using compilers other than GCC. I think my post was worth a comment - not a down vote! In any case, it is definitely a situation where caveat programmer... Always state it the way you mean it. After all, your intention could have just as easily been this: per=((m1+m2+m3+m4+m5)/(500*100); - totally different result. Remember, some compilers parse left to right, and others right to left. This is why the parens are so important. MAKE NO ASSUMPTIONS!

ddanbe commented: So true. +15
sdtechi commented: Yes you true rubberman..thanks +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please use real C code here. We need to see exactly what you are trying to do.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your printf() function should be printf("%s", message); You could have used message as you did if you cast it to a const char* as in printf((const char*)&message[0]);, but the first example I provided is preferable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, did you write this code, or are you trying to adapt someone else's code?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

They all work well, but you want to get the most current version you can, at least 4.4.2 or 5.x.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The CPU is only part of the equation to build a good gaming system. This CPU is a good one, but the motherboard, memory, cache, I/O speed and bandwidth, video processor(s), power supply, disc drive (SSD vs. HDD), and many other things factor into the overall success of the system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Basically, it is a binary sort that on average requires O(n log n) comparisons to sort, though it is often more efficient that that. Here is the Wikipedia article that does a decent job of explaining the details: https://en.wikipedia.org/wiki/Quicksort

If you are inserting items into a sorted array, then you can use a version of this as in insertion sort. When you do that though, you want to do head and tail optimizations (look to see if the new entry should go to the head or tail of the array). Doing that adds two comparisons to the overhead, but adding items to a sorted array can create a huge speedup. An example of that situation is to insert output from an SQL select statement with an orderby clause, causing the output to be sorted before inserting in the array.

I have personally implemented these algorithms in major commercial application frameworks.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Volatile allows a global or shared variable to be read and written attomically. Example: int newvalue = vvar++; which would set newvalue to the volatile variable (vvar) and then increment vvar. This may be a viable approach if the threads share no other data that needs to be protected from simultaneous access. Without more of your code to review, this is as much as I can say.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. You don't save the tokens extracted.
  2. I don't see where you identify what database columns each item is associated with.
  3. I see no associated database, connections to it, etc.

You have more work to do before we can help you. Or at least before I can help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The apple. A fruit that grows on deciduous trees, commonly associated with the Devil getting Adam and Eve thrown out of the Garden of Eden.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you know what you are doing, then fine. I wouldn't, but my grandson would. He is much better at that sort of thing than I am as he designs and builds his own PC boards for drone aircraft control systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but still no help here to unlock devices. We have no assurance that the device is in the possession of the owner, your assurances to the contrary. The only thing I can suggest is to do a factory reset. Of course, all data that is not on the external SD card will be lost.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please move this to the Software Development forum.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If it is locked, and you don't have the unlock code, then it isn't your phone... Sorry, no help here!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If it is in bridge mode, then as long as it is connected to another router, it doesn't need to "understand" DHCP and DNS stuff. Make sure the Lynksys bridge and your router don't use the same admin address, such as 192.168.1.1, otherwise things won't work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Check that the vents are clear. Get some compressed air and blow the system out to help clean it - taking the cover and keyboard off is good so you can blow the motherboard clean. If it is still dead, then you will need to send it in for repair.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So doris, to you remember what the equation is to compute the area of a circle? You want us to do your homework for you? Give us a break! It is tiring to keep getting requests to solve simple homework assignments. READ THE FARKING BOOK!

Sorry, but it has been a long day. I had to install and configure major application servers on two Windows server systems today (remotely) and I am tired... The servers were in Bermuda, but unfortunately I was not able to arrange a site visit, sigh.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry. We don't do your work (real or homework) for you! There are commercial packages that will do this that you can buy. There may be open source packages that you can adapt to this purpose. Just DO NOT ask us to solve your life problems if you are not willing to make an effort to solve them on your own first!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This line: per=(m1+m2+m3+m4+m5)/500*100; means that per is equal to the sum of the inputs divided by 50000. It that your intention? Or is it to divide the sum by 500 and then multiply that result by 100? If so, then the expression should be (since C/C++ treat multiply and divide operators with equal prescidence) per=((m1+m2+m3+m4+m5)/500)*100;. You need the parentheses to force the order of evaluation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We don't do your homework for you. We will help you when you have tried, and then post your code here. Just asking for help is not asking for help. It is asking for someone to do your thinking for you. Not going to happen!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Nothing beats study, effort, and try, try again to learn difficult new concepts. As James said, we DO NOT do your homework for you. Maybe you are in the wrong study area if you are unable to learn basic programming concepts.

As a sop, this is how a loop works:

condition = 100
value = 0
until value equals condition, do this
    value = value + 1
end-do

This will loop 100 times until value has been incremented to 100, which is the terminating condition.

The "code" above is what we would call pseudo-code. It is not in any programming language specifically, but can be easily implemented in any of them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have written such in C back in the 1980's. It was not only a movie database (that was part of it), but it was a full video store management package, integrating register, scanner, price lookups, rentals, purchases, etc.