5,331 Posted Topics

Member Avatar for kelvin.njuguna

You aren't creating a complex number inside of main(). You take in the real and imaginary parts, but that is all. You don't construct a Complex object from that input (c1 and c2).

Member Avatar for Schol-R-LEA
0
298
Member Avatar for anisha.silva

One of the problems with "code completion" (giving the user the option of selecting previously input items) is that you REALLY need to actively parse the syntax of the language being programmed. IE, is this item a language keyword, a variable, or what? Which it may be depends upon the …

Member Avatar for anisha.silva
0
283
Member Avatar for Thundermax

What precisely are you trying to accomplish? FWIW, `strstr()` returns a pointer to where in string1 it found string2, and returns null (0) if not found.

Member Avatar for Ancient Dragon
0
156
Member Avatar for nitin1

Ah, the ageless "compiler optimizations vs. hand optimizations" argument (discussion)... :-) After 30+ years writing both real-time and large scale system code I find that simple beats all at the "is it fast enough" race! If it is simple, the compiler can optimize in ways that us mere mortals cannot …

Member Avatar for rubberman
0
261
Member Avatar for Suzie999

The Boost library does some pretty amazing stuff. It is commonly used by the HEP (High Energy Physics) programming community, which should indicate its capability and quality - these are people who would rather program directly in Fortan than C++, but had eschewed Fortran for C++ with Boost over the …

Member Avatar for rubberman
0
739
Member Avatar for Wunderhoo

MalwareBytes is good. ClamWin/ClamAV is also, and is free and open source - and the most recommended one for Apple products.

Member Avatar for Wunderhoo
0
210
Member Avatar for mixelplik
Member Avatar for aastha b

Sorry, but we don't do your homework for you... :-( Make an honest effort to solve the problem, post your code here along with the difficulties/errors you are having, and we may decide to help; however, if you don't make the effort first, you can forget about it!

Member Avatar for arunava.iiitcal
-3
2K
Member Avatar for lewashby

Show the contents of the crontab itself. The script is one thing. The crontab is another.

Member Avatar for Spencer_1
0
634
Member Avatar for DavidB

Installing VS Express should not have done anything to your document, unless it was in a directory that VSex thought it "owns" - unlikely. The question is whether or not your file really WAS saved when you (think you did) enter ^S to save the file. There may be backup …

Member Avatar for Brown427
0
676
Member Avatar for tinstaafl

tinstaafl, you usually make great postings, and I'm sure when I have a spare 5 minutes I would agree that this is one of those! :-) In any case, it sounds useful, and I WILL test it out when I have those spare 5 minutes!

Member Avatar for tinstaafl
0
1K
Member Avatar for Dhan_1

What deceptikon said. Adding to that, and giving you a "hint", read the words in the sentence, add them to an array, and then iterate from end to beginning. Have fun! :-)

Member Avatar for rubberman
-1
97
Member Avatar for raviragarwal292

PHP is a powerful server-based language (very C++ like, but different enough to drive one wonkers) for web application development (I'm using it now to emulate a cell-phone browser). I am not familiar with Django, so suggesting which is preferable/better is not something I can answer. :-)

Member Avatar for rubberman
0
62
Member Avatar for Ancient Dragon

Debian uses grub2, which is a real pita to reconfigure, though it is possible. Do you get the grub splash screen when it is booting? If so, then what happens when you hit the spacebar before Windows (or whatever) boots up? Usually you have only a couple of seconds to …

Member Avatar for Ancient Dragon
0
290
Member Avatar for yellow_raine

A virus is likely, albeit a badly written one. Run your A/V scanner on the system. If you don't have one, either install Microsoft's one, or ClamWin (free, open source), and scan your system.

Member Avatar for BigPaw
0
620
Member Avatar for jkon

The operating system should automatically cache those files in memory when read. IE, you should not have to deal with this! The caveat is whether or not you have sufficient RAM to cache these files. 100K is not much these days. FWIW, upgrading from CentOS 5.x to 6.x will provide …

Member Avatar for rubberman
0
452
Member Avatar for Thomas_9

It could be a matter of "stiction" if the drive isn't properly parking the heads on shut down (possible on an older system). Try giving a whack on the edge of the computer on the front left corner of the system, parallel to the surface of the keyboard, with the …

Member Avatar for BigPaw
0
261
Member Avatar for it@61@sec

Using "sudo fdisk /dev/sdc": 1) Remove the ntfs partition. 2) Create a linux partition. 3) Create an ext2/3/4 file system on that partition. If all this works, then run the command, where extN is ext2, ext3, or ext4 - depending upon the file system type you created: "fsck -t extN …

Member Avatar for it@61@sec
0
448
Member Avatar for cambalinho

"Pure" OOP language? Try Smalltalk... :-) I used it to prototype a lot of concepts that I implemented for production in C++ in the early-to-mid 1990's. The rub was that for what was simple in Smalltalk, required a LOT of prep work to function with C++. About 6 months of …

Member Avatar for cambalinho
0
390
Member Avatar for PriteshP23
Member Avatar for PriteshP23
0
372
Member Avatar for cuivenion

There is a Linux application call shred which will erase a file after filling it with random bytes and finally with zeros. Since this is an open source program, I expect it is also available for the Mac.

Member Avatar for cuivenion
0
236
Member Avatar for divva

This is NOT a trivial exercise. I assume you are already a competent C++ programmer? There are several factors to consider for video transcoding (which is what this is all about): 1. This complex stuff - I assume you only need to deal with a limited number input types? What …

Member Avatar for divva
0
220
Member Avatar for ovefpi

Your phone should be able to download/install updates automatically. As decepticon asked, which verions of the OS do you have? The 7.5 version (Lumia 920 and such), or the 8.x version (Lumia 920 and such). FYI, I am a senior engineer at Nokia Mobile Phones. My personal work phone is …

Member Avatar for rubberman
0
90
Member Avatar for deceptikon

To Decepticon: Just remember that old addage - Those who can, do. Those who can't, teach! :-)

Member Avatar for rubberman
1
268
Member Avatar for emeritusbrians

Sorry, but we don't do your homework and/or thesis research for you! Remember, Google is your friend! But, being caught plaigerizing other people's work for your own is a quick way to end a possible career... :-(

Member Avatar for rubberman
-1
202
Member Avatar for wakz_1

The simplest way is to use the `list.listIterator(start_pos)` function to get a ListIterator instance. Using that you would walk the list using `iterator.next()` to walk the list. Also, you need to create a class/structure that has two elements (name and number) to insert into the list since your method of …

Member Avatar for rubberman
0
1K
Member Avatar for Mehr Hassan

Simplest? Use fopen() w/ binary write flag on the device name (COM1, COM2, etc), and then simply write the data to the file descriptor. I leave the actual coding to you as an exercise.

Member Avatar for rubberman
0
1K
Member Avatar for AlWreikat

Consider the memory requirements (have a lot do you?). 1B nodes (1024^3) with a 64bit value field (8 bytes) and a 64bit link to the next node (another 8 bytes) = 16+GB... This is NOT a sustainable model! :-) IE, as others have indicated, this is not feasible with a …

Member Avatar for rubberman
0
535
Member Avatar for haresh.sankarraj

What Dean said. Also, the pshared argument to `sem_init(sem_t *sem, int pshared, unsigned int value)` has to be 1, not 0, to share between processes vs threads.

Member Avatar for rubberman
0
2K
Member Avatar for fashxfreak

Until you try to solve the problem, and post your code here, we don't help with homework problems. That said, ddanbe is correct (hint)... :-)

Member Avatar for rubberman
0
122
Member Avatar for Zahin

Please elaborate what these numbers mean. You say they represent shapes. How? Are these vertices? Length of sides? What?

Member Avatar for Learner010
0
87
Member Avatar for dshiells
Member Avatar for Some-Jackass

> A fully qualified domain name (FQDN) does use the format of server.domain.com. Actually, it would be 'server.domain.<root>' where '<root>' can be stuff like .com, .net, .org, .co.uk, .co.tv, etc. FYI, .com and .co.nn are both for commercial sites. The .net and .org qualifiers are for network services and non-commercial …

Member Avatar for Some-Jackass
0
238
Member Avatar for Learner010

Express this as either a process (pseudo-code) or mathematically. Both approaches will help you generate the logic necessary to turn this into code.

Member Avatar for rubberman
0
155
Member Avatar for l_wicklund

Does your system have both a built-in Intel GPU (graphics chip) as well as an nVidia (or AMD) GPU? On my Lenovo laptop, I had to disable the Intel GPU in the BIOS so I could get multiple monitors working properly.

Member Avatar for l_wicklund
0
274
Member Avatar for AnilKumar_19

1. Do you want more than 1 CPU? 2. How much memory (RAM) do you need? 3. How many disc drives? 4. Do you want a built-in GPU (graphics processor), or would you prefer to use a 3rd party one, such as nVidia/AMD)? 5. What about the form factor (small …

Member Avatar for rubberman
0
299
Member Avatar for xxdheerxx

Either use the `setenv()` function, or do this for the `system()` call: int results = system("PS1=\"LinuxRox $\" ; mycommand);

Member Avatar for rubberman
0
65
Member Avatar for stepbillz

Not simple. SD/flash cards (current ones at least), will write data to new sectors in order to minimize the number of writes to any specific one (necessary to maximize the life-expectancy of the device). IE, the data is still there (most likely). Unfortunately, it requires special tools to search and …

Member Avatar for nullptr
0
160
Member Avatar for stavros141

Unfortunately, your description isn't too clear. You say you have the original database (with 2000+ articles), but you munged the virtual machine you wanted to install it on? You will need to reinstall the operating system on the VM. If that is where the data resides, then you need to …

Member Avatar for stavros141
0
302
Member Avatar for gabrielomar22

In English - you need to get a copy of Linux? En Espanol - necitas obtenir una copia de Linux? :-) Sometimes, being bilingual has its advantages!

Member Avatar for rubberman
0
61
Member Avatar for woomar

Usually, the size is a member variable of the class. It would be set to 0 on construction (with no member nodes), incremented when a new node is added, and decremented when one is removed. If you don't do that, then the size() method would have to traverse the entire …

Member Avatar for JamesCherrill
0
265
Member Avatar for best4earn

The D620 is an antique (but still usable) in internet terms. I had a D600, D620, and now a D630 (which is about 6-7 years old now). If you can't get to the diagnostics partition (as per CimmerianX's instructions), then you should contact Dell tech support. They do system repairs …

Member Avatar for rubberman
0
131
Member Avatar for durgesh1

Homework... Or work work. In either case, make an attempt to deal with it, and then we can critique your code.

Member Avatar for StephenHero
0
172
Member Avatar for pardeepkhatri

The only way is to either install Wine and then see if the exe's Windows installer works and the executable likewise, or to install Windows in a virtual machine and run it there in the normal manner. I use both techniques.

Member Avatar for praom2104
0
393
Member Avatar for andrew mendonca

You also need to take into account arithmetic operator precidence. IE, / takes precidence over +, so (a + b / c) == (a + (b / c)), etc - NOT ((a + b) / c)...

Member Avatar for rubberman
0
215
Member Avatar for Kaone_1

What Begginnerdev said, but since you havent' asked any questions, what is the point? :rolleyes:

Member Avatar for rubberman
0
211
Member Avatar for lewashby

If this is an ARM computer you will not be able to disable the Win8 secure boot, but will need to install a secure boot-enabled Linux. There are a few, but it is still a WIP (work-in-progress).

Member Avatar for rubberman
0
103
Member Avatar for Stuugie

Some software works well with Wine, and a lot doesn't - they are just too wedded to the Windows ecosystem. I only run Linux and use Wine to run some tools as well as a couple of serious applications, such as my favorite UML development tool, Sparx Enterprise Architect (EA). …

Member Avatar for Stuugie
0
340
Member Avatar for cambalinho

You need T used inside the class, like this: template <class T> class events : public T { public: events(){} ~events(){} bool operator==( const T& aTee ) const // Explicit cast { return (aTee == *(static_cast<T*>(this)); } const T* getTpart() const { return this; } // Implicit cast }; The …

Member Avatar for cambalinho
0
196
Member Avatar for logicslab

Mingw is a gcc/g++ (gnu compiler collection) compiler for Windows. It is ansi/posix compliant so the code you write on windows has a better than even chance of running on other systems, such as Linux, Unix, or OSX. It is also open source.

Member Avatar for deceptikon
0
394

The End.