5,331 Posted Topics

Member Avatar for geojia

400+ lines of code is a LOT to ask people to analyze who do this in their spare time... Focus on the areas that you think may be problematic. You haven't received any responses yet, probably because we all have better things to do than analyze this amount of complex …

Member Avatar for rubberman
0
218
Member Avatar for herious89

Shouldn't [code] for (int i = 1; i < n; i++) { e = ( e + (1/(factorial( n + 1 ))) ); } [/code] be [code] for (int i = 1; i < n; i++) { e = ( e + (1/(factorial( i + 1 ))) ); } [/code]

Member Avatar for rubberman
0
364
Member Avatar for wildplace

You use the -> (pointer-to) operator to dereference a member of a pointer to an object/struct. You use the . (dot) operator to dereference a member of an object (not a pointer to the object), or a reference to an object. In your example, the operator * is what makes …

Member Avatar for ejosiah
0
125
Member Avatar for bossy marmalade

Sounds like the hardware is starting to go "wonky" - technical term for random failures. Vacuum/blow the dust out of the system. Let it cool down totally (shut down for at least 1 hour). If the problem persists, then it's time to take it to the repair depot!

Member Avatar for bossy marmalade
0
187
Member Avatar for raymondkole

All LCD displays have color differences. There is software that can help you to adjust it to some standards, but in many cases this requires specialized tools to actually see the colors and provide adjustment settings to use with the display driver software. I have two Dell displays that are …

Member Avatar for raymondkole
0
381
Member Avatar for polarpandabear

This is C++ exercise? You show code, but no data structures (classes) for modeling this problem. This means that you are going backward, from code to structure. You need to design the classes you are going to use in terms of their contained data (attributes/properties) and behavior (methods/functions). So, what …

Member Avatar for polarpandabear
0
421
Member Avatar for Basteon

Windows does support the POSIX interfaces, but writing code that works equally on Windows as on Unix is not simple, especially if you want to write GUI applications. In such a case, you would be best served by using a platform neutral SDK such as Qt. That provides a means …

Member Avatar for jbennet
0
421
Member Avatar for lancelot626

Any programming language would let you do this. Which ones are you familiar with? Which are you most comfortable with, and why?

Member Avatar for dantinkakkar
0
166
Member Avatar for kikic

Please show your code, completely! Without seeing the context in which your problem exists, anything we say is just conjecture!

Member Avatar for rubberman
0
203
Member Avatar for ITletran

One is a valid network address (the second one) + subnet mask, the other is not.

Member Avatar for JorgeM
0
59
Member Avatar for QuesoTaco

Since the system has a DVI and not HDMI adapter, I don't think it will give you audio over the link. You will probably have to use the computer's audio mini jack to output audio to wherever. You should be able to find mini-to-regular stereo coax cables that will connect …

Member Avatar for rubberman
0
247
Member Avatar for Syrne

Remember, with recursion, just as with loops, you need a terminating condition that will ALWAYS be reached (unless you want an endless loop), which we sometimes call a barrier condition. You need to test for when you reach a value less than 10, so change your code for D(int) to …

Member Avatar for Syrne
0
128
Member Avatar for Leo G

You also need to scan your disc for bad sectors. They may be readable after a few retries, so checkdisk/f may still succeed, even though the disc is starting to go off the road.

Member Avatar for Leo G
0
159
Member Avatar for wildplace

Alternatively, you can use an array of pointers to House. IE: [code] int numHouses = 100; House** someHouses = new House*[numHouses]; for (int i = 0; i < numHouses; i++) { someHouses[i] = 0; } [/code] Now, when you want to see if you have a house there, the contents …

Member Avatar for mrnutty
0
5K
Member Avatar for Labdabeta

Make sure you are dealing with 32-bit integers. If so, then you can do this. [code] const int unusedvalue = 1; const char* ptr2tmp = (char*)&unusedvalue; const bool bigendian = (1 == ptr2tmp[3]); [/code] Why do it this way, instead of how you showed it? Because it is clearer in …

Member Avatar for rubberman
0
151
Member Avatar for ilovejava

My rule is NEVER to suppress warnings! They are there for a reason, and sometimes they give good indications that some code is going to be problematic. Your professor may suppress them for class projects because he knows they are "noise". Myself, I have to design and build systems that …

Member Avatar for rubberman
0
114
Member Avatar for tscherf

Just about any current PCI-E x16 card will work, which these days means that mostly you get either AMD/ATI or nVidia cards. Myself, I prefer nVidia cards, but that's because they have better Linux support and I only run Linux systems. I used ATI cards exclusively back in the deep, …

Member Avatar for rubberman
0
144
Member Avatar for MasterHacker110

These are the kernels installed on the system. As you update with yum, new kernels, with security and other fixes in them, they are added to the boot menu, with the latest as the default. The others are there so that if the new kernel causes you problems, you can …

Member Avatar for dolphinalex
0
204
Member Avatar for MasterHacker110

ClamAV works just fine as x86_64. How are you trying to install it? From source? On Fedora or RHEL, you can install x86_64 ClamAV from either the atrpms or epel repositories. Use either of these repositories and you should be able to install it just fine using yum. Most use …

Member Avatar for rubberman
0
190
Member Avatar for olelink

Two sites to visit: [url]www.kernel.org[/url] [url]www.tldp.org[/url] The kernel.org site is down presently, since the servers for The Linux Foundation were hacked recently. Hopefully it will be back up soon. The Linux Documentation project (tldp.org) is up, however, and it has a lot of tutorials, articles, how-tos, and such to help …

Member Avatar for Ab000dy_85
0
344
Member Avatar for madhusushmi

The C library read(), write() calls are probably the most efficient. What, exactly, are you trying to accomplish?

Member Avatar for MasterHacker110
0
2K
Member Avatar for MasterHacker110

There are no drive designations in Linux. Everything is under the root file system, which is / - user directories are under /home, user commands are in /usr/bin, etc. As a simple user, usually you will be working in your /home/userid directory. As for free anti-virus for Linux, the most …

Member Avatar for rubberman
0
165
Member Avatar for compEstudent

Well, if I understand it correctly, what you mean by FCFS is First Come, First Served, which is really (with some caveats) FIFO, depending upon the length of time required to process the request. Anyway, this is a good exercise for an operating systems class in engineering school. So, assume …

Member Avatar for JamesCherrill
0
475
Member Avatar for yongj

Hash tables are simply 2-dimension arrays sorted by the key (hash value). The hash value is a mathematical representation of the data stored. There are a number of hashing algorithms that are used these days. The "key" is to select one that will minimize the number of collisions - situations …

Member Avatar for yongj
0
173
Member Avatar for nyamatema

Download and use the command-line tool ffmpeg. It can transcode just about any video format into any other. I use it frequently (up to several times a week). It is the best audio/video transcoder that I have found, including ones on Windows and Mac. Go to [url]www.ffmpeg.org[/url] for details or …

Member Avatar for beth22
0
92
Member Avatar for Diamond3x

std is a system-level namespace. If you want to set the namespace for a section of code, you can do so with the "using namespace <name>" directive. IE: [code] using namespace std; int foo(int value) { cout << "value==" << dec << value << endl; } [/code] Without the "using" …

Member Avatar for neartoyou
0
255
Member Avatar for sm.amudhan

What are the specs for this drive - size, partitions, formatting, etc? What do the modem/router's docs say about plugging in USB drives?

Member Avatar for sm.amudhan
0
245
Member Avatar for sirlink99

The key is in the connectors. Visit the Intel web site to see what other processors use the same connectors. Those should be compatible with your current CPU.

Member Avatar for caperjack
0
116
Member Avatar for chrisjubb

I assume you installed the CDT plugin for Eclipse? What is your OS, and what compiler are you using? Have you verified that your project is using the correct compiler, etc? Eclipse is picking about that sort of stuff.

Member Avatar for chrisjubb
0
233
Member Avatar for venky2ece

There is no real difference between USB drives and USB data cards, which typically are presented to the operating system as drives as well (solid state). What, exactly, are you trying to accomplish?

Member Avatar for 07knev
0
406
Member Avatar for jemz

Gah! I haven't had to look at Cobol code for 25+ years! In fact, I last worked with Dec's Dibol after that! I guess there are still Cobol programmers out there... So, what was the question again? :-) Anyway, what I think you are asking is how you can limit …

Member Avatar for jemz
0
157
Member Avatar for silvercats

I assume this is a broadband LTE modem? You need to make sure you have a very good connection to the appropriate tower. If you don't, then you will get some fraction of the maximum speed the device is capable of. What does the manufacturer documentation say?

Member Avatar for silvercats
0
115
Member Avatar for silvercats

A modem requires a "powered" usb port. Some only provide enough juice for things like thumb drives, but many laptops only provide 1 port with enough power for things like broadband modems, etc.

Member Avatar for silvercats
0
91
Member Avatar for ingeborgdot@yah

What OS (including version and service pack) are you running, and what make+model is your mouse? Do you have any other weird display issues?

Member Avatar for 07knev
0
82
Member Avatar for swissknife007

The integrated Intel GPU is not bad these days, and can handle normal videos quite well, but if you are going to do any serious graphics work, then the Radeon is a good choice. If mostly you are going to do software development, then either will do you well, unless …

Member Avatar for rubberman
0
244
Member Avatar for dinhunzvi

Another good place to post is The Linux Forums ([url]www.linuxforums.org/forum[/url]). You'll find me there also. Then, you need to visit [url]www.linuxwireless.org[/url] - they have drivers (or links to) and installation procedures for just about every wireless device that can run on Linux.

Member Avatar for rubberman
0
146
Member Avatar for cguan_77

I've had to remove such for clients of mine. I use a Linux system with 2 or 3 different virus scanners when someone has these problems. The virus may have also infected the boot loader. In any case, running a Windows scanner will likely not totally remove this critter. On …

Member Avatar for rubberman
0
174
Member Avatar for shg234
Member Avatar for bodymassacre

Basically clueless, aren't we? Is there a computer programming language involved, or do you only need to model/describe the system in object-oriented terms (such as using UML)?

Member Avatar for TrustyTony
0
196
Member Avatar for Computersaurus

They may also restore from the restore/recovery partition, which most OEM systems have installed on them. I've done that for my clients except in cases where the recovery partition was infected with a virus.

Member Avatar for Reverend Jim
0
322
Member Avatar for SCass2010

So, did you install the libxerces development package? Without that, you won't get the headers you need to build c-xerces code. The basic package will only have the shared libraries and dependencies needed to run existing applications that rely upon it.

Member Avatar for floored1585
0
2K
Member Avatar for king03

Huh? I don't know what you are talking about, unless you are referring to 7-bit ASCII key codes, which would make sense. I have done complete telnet implementations for real-time operating systems (both client and server side, device drivers, and all the rest of it) back in the early 1990's. …

Member Avatar for king03
0
413
Member Avatar for LdaXy

Just an observation. Using tokens/keywords with leading double underscores, such as __AND, are reserved for the compiler and system library implementer. NEVER (I repeat that - NEVER) use them in your own code, otherwise you are likely to encounter some very weird error situations with names (and macro name) collisions! …

Member Avatar for jaskij
0
302
Member Avatar for inspire_all

Actually, mazzica1 is not quite correct. Just use the name of the function. You don't need the address operator. IE, [code] void callTest() { test(add); } [/code]

Member Avatar for rubberman
0
254
Member Avatar for student_learner

Please don't ask us to do your homework for you. In case you haven't figured it out yet, a running program is always in RAM (or possibly virtual memory on modern systems). Google is your friend. The answers to all of these questions can be found in the Wikipedia I …

Member Avatar for rubberman
0
332
Member Avatar for LdaXy
Member Avatar for Rashakil Fol
0
150
Member Avatar for Thermalnuke

School class exercise? So, define your terms. What do YOU mean by "starvation free"? What do you understand to be the relationship between deadlock and "starvation". These are broad terms, and are relevant to the environment, and specific situation in which you encounter them. FWIW, typically "starvation free" refers to …

Member Avatar for Thermalnuke
0
141
Member Avatar for silvercats

As ITG-JM said, IPv4 has been around for decades (since the 1970's and 80's). If you are concerned about IPv6, that is different. The stuff I learned about IPv4 back in the 80's is still relevant today. I still use the DDN White Book as a reference for IPv4 issues, …

Member Avatar for silvercats
0
78
Member Avatar for silverman166

[QUOTE=silverman166;1745468]Thanks for that. But in the event of poor themal contact with cpu, wouldn't the reverse situation apply ie wouldn't there tend to be more problems as the PC warmed up, rather than from cold?[/QUOTE] Probably. Is this from a thermally cold situation? Or is this also from normal room …

Member Avatar for rubberman
0
368
Member Avatar for Mxous

Can you use inline conditional assignments? IE: [code] int Grade = (pct >= 85) ? 'A' : ((pct >= 75) ? 'B' : ((pct >= 65) ? 'C' : ((pct >= 55) ? 'D' : 'F'))); [/code] No if statements there! :-)

Member Avatar for Mxous
0
138

The End.