5,331 Posted Topics

Member Avatar for cunnijo

Each tab open in Chrome creates a new system process, and uses a lot of memory. This is the most common cause of such behavior as the system may have to hit the virtual memory swap space. Try closing other tabs or add more memory to your system. FWIW, I …

Member Avatar for rubberman
0
395
Member Avatar for elise01

If you are considering switching into more current web-based programming, then get up-to-speed on PHP and LAMP. PHP is really a web server based version of C++. If you are going to use it properly, you need to understand well the foundations of OOP (object-oriented programming). A lot of currently …

Member Avatar for jwenting
0
180
Member Avatar for new2code
Member Avatar for David W
0
377
Member Avatar for Aish_14

Well, ping is a UDP protocol. There is a message format. You need to format a ping message, open a reply port, and send the message (with reply port) to the IP address using UDP, and then wait for the reply (usually using the select() function). You will need a …

Member Avatar for Aish_14
0
1K
Member Avatar for doreen.lata.14

Remember, we won't do your homework for you. You need to make a good effort to solve it, and when you run into problems that you cannot solve, then post your code here for us to review and critique.

Member Avatar for Saboor880
0
207
Member Avatar for llaspina

Antenna design is a dark art. I studied software genetic engineering with a very bright US Air Force captain at MIT who was using genetic algorithms to help design phased array radar antennas. He ended up with some very strange designs that out-performed anything that mere humans had come up …

Member Avatar for llaspina
0
260
Member Avatar for vishalonne

Class assignment? Sorry, but the terms of service here do not allow us to do your homework for you. Make a good attempt to solve the problem, and if you have errors, post the code here, which we can then critique and help you with (to a point).

Member Avatar for cayman
0
185
Member Avatar for somyms

Computer/phone/tablet gear is very subjective. Try them out at the store (provided you have a store with the devices in question) and then decide which works best for you.

Member Avatar for Kelly Burby
0
220
Member Avatar for Jack_9

Use PHP for webapps. It is a derivative of C++, so learn C++ first, and apply the object-oriented principles you learn there to your PHP code.

Member Avatar for Jack_9
0
161
Member Avatar for HaydenYi

Have you tried Microsoft's Security Essentials? It is free, and does a decent job at cleaning such issues. Also, there is the FOSS (Free and Open Source) tool ClamAV. FWIW, I never use just one cleaner in these cases.

Member Avatar for sekovar
0
141
Member Avatar for <M/>

You shouldn't lose the data unless you drop/cancel the account. Just disconnecting from it should not do that.

Member Avatar for frantechno
0
1K
Member Avatar for RikTelner

The 4096 cores is a limitation built into the kernel. If you want to modify the kernel, you could increase that. There are Linux supercomputers that have lifted that limit considerably - not a task for the noobie kernel hacker... :-) As for the 128TB RAM limit, that is probably …

Member Avatar for mike_2000_17
0
205
Member Avatar for rela

The key to learning C++ (C with classes) is to learn how to code in C first. Then, get a grip on object-oriented design (classes, methods, etc), and then on C++ STL (Standard Template Library) tools. This is not a simple process, and will take a couple of years to …

Member Avatar for NathanOliver
0
193
Member Avatar for somyms

?Huh? Try a Google search? In any case, you are not being clear enough to give rational advice.

Member Avatar for somyms
0
175
Member Avatar for Somayeh_1
Member Avatar for llaspina
0
183
Member Avatar for Joemeister

Also, you are popping a value off of the result stack BEFORE you pushed anything onto it. This is the cause of the error there. There is nothing to return to you!

Member Avatar for iamthwee
0
331
Member Avatar for PC killEr

Unless you have the tools required to fix a cable, it is not worth fixing. Replace it with a new one.

Member Avatar for rubberman
0
43
Member Avatar for wanttocode
Member Avatar for Ralphael
0
113
Member Avatar for Yahia Farghaly

First, you are confused... :-) The ostream& operator<<(ostream& output, classname& cn) returns a reference to the output object, allowing multiple outputs to the same stream in one expression such as `cout << "foo" << "bar" << " " << dec << 1001 << endl;`, which would display "foobar 1001". Your …

Member Avatar for Moschops
0
451
Member Avatar for Jjajangmyeon

Try int main(void) { vector<string> activities; activities.push_back("a new activity"); cout << activities[0] << endl; return 0; } You don't need to pre-size vectors in c++. They will grow as needed.

Member Avatar for vijayan121
0
315
Member Avatar for maniagod

Also, we don't do your homework for you. If this is job, not school related, then Schol-R-Lea's response is 100% correct. FWIW, in Linux systems, there are timer functions that will help you do this very easily. I have frequently used them in the past. Most are POSIX functions, so …

Member Avatar for Hiroshe
0
679
Member Avatar for Kris_3

1. Convert input to either upper or lower case. 2. Assuming lower, see if the answer is "yes" or "no". 3. If neither, then execute the "not a valid answer" branch.

Member Avatar for Kris_3
0
134
Member Avatar for amithunter

This is the purpose of the ODBC libraries - they provide a database-neutral means of accessing most any database without changing your code. Before ODBC existed, I wrote an ODBC-like API for manufacturing systems, and a set of loadable shared libraries for each supported database (Oracle, Sybase, Informix, Ingres, and …

Member Avatar for rubberman
0
208
Member Avatar for madhu225

Either you purchase an installation or live CD/DVD disc set, or download an installation or live CD/DVD set of ISO images to burn to CDs or DVDs, boot that, and install the system. Most distributions have means to purchase installation media (DVD usually) online if you don't want to burn …

Member Avatar for Slavi
0
126
Member Avatar for Myronz

Please be more specific. How are you trying to run these programs, and why do you think you need to run an "installer wizard". Finally, what Linux distribution are you running?

Member Avatar for Myronz
0
419
Member Avatar for <M/>

Are you plugging into a wall charger, or is it plugged into a computer USB port? As JorgeM suggested, try an alternate charger. So, if you don't have another wall charger, try a USB connection to a live computer. If it still doesn't get beyond 10%, then it is most …

Member Avatar for Kelly Burby
0
292
Member Avatar for Ghost0s

I learned software engineering by doing. My first real project was to write an accounting application for a customer (I was a sales representative at a computer store) in dBase II over 30 years ago. He provided the specifications, and I learned the dBase language in order to deliver what …

Member Avatar for Taywin
0
259
Member Avatar for new_developer

An 8 bit value, such as a char, can be signed, or unsigned. So let's look at chars - you can have a signed or unsigned char. The top-most bit for a signed char is the sign. If set, the value is negative. If not, it is positive. In this …

Member Avatar for Slavi
0
263
Member Avatar for kamalashraf

Both solutions are brain-dead... Use bsearch() and utilize a different compare() function for ascending vs descending orders. That way, you only need to tell the program how the list is sorted, and it can call bsearch() with the appropriate compare() function. Simple, effective, and fast.

Member Avatar for rubberman
0
7K
Member Avatar for faridreza99

What do you mean by "hdd-regenerator" software? HDD - Hard Disc Drive? Regenerator - restore file system, disc image, what?

Member Avatar for LaxLoafer
-2
159
Member Avatar for GOMEZ_1

There are several issues here. There are references, const references, pointers, and const pointers. In C++ references of either type are preferred to pointers. Why? Because the function doesn't need to verify that the pointer is null before accessing it. If passed as a reference, the object has to be …

Member Avatar for melissad
0
190
Member Avatar for nibiruisaplanet

I consider Java and C# to be C++ with training wheels. One of the major advantages of C++ is that you can also write low-level C code with it, such as direct I/O for device control that may be difficult or next to impossible with other languages.

Member Avatar for melissad
0
300
Member Avatar for Ghost0s

Here is a good tutorial on the subject of random number generators: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html The math requirements aren't too onerous, and translation from the Fortran90 examples to C or C++ shouldn't be too difficult. My wife is a particle physicist and Monte Carlo routines and RNG's are her life blood. Most …

Member Avatar for rubberman
0
144
Member Avatar for ousmanhayu

You are not providing enough information to help you. I assume you are just closing the display, probably putting it into sleep and later hibernate mode. That said, I think you need to be sure you have enabled a hibernate file. If not, then before you shut the cover, shut …

Member Avatar for rubberman
0
33
Member Avatar for Chris Nicola

Getting a new system will likely be less expensive than fixing this one.

Member Avatar for rubberman
0
49
Member Avatar for MasterHacker110

GNU has a fortran compiler as part of the GCC compiler suite. I don't know if it is 2008 compliant or not, but it is usally fairly up-to-date. What OS are you running on?

Member Avatar for covert
0
142
Member Avatar for dippy78
Member Avatar for jwenting
0
306
Member Avatar for Pazuzu156

Try ` system("java -jar ./myJar.jar");` assuming that the file is in the same directory as you started your C++ application and it did not change directories before it executed the system() call.

Member Avatar for Pazuzu156
0
191
Member Avatar for come_again

First, what language are you using? Next, why isn't this in the Software Development forum?

Member Avatar for Hiroshe
0
191
Member Avatar for RikTelner

There a built-in open source nVidia driver for Linux called Nouveau. nVidia also has proprietary Linux drivers for their gear which work very, very well. The proprietary drivers are much more efficient than the Nouveau driver. I run Nouveau on my laptop which has an nVidia GPU, and the proprietary …

Member Avatar for RikTelner
0
170
Member Avatar for yvonne.lundeandreassen.9

Well, what you need to do depends upon whether you are running Linux (or other *nix), or Windows. If Windows, it will find and mount the file system automatically, as drive E: or something. If linux, you will probably need to manually mount it on your file system. So, let …

Member Avatar for LaxLoafer
0
415
Member Avatar for YiLiang

Anyway, we need to see your code, especially where you take input for the password, and how the input stream is configured.

Member Avatar for rubberman
0
188
Member Avatar for sikander.nawaz1
Member Avatar for rubberman
0
305
Member Avatar for covert

> after compiling,when i run program my 'FTN 95\PLATO' recently showing me black DOS box,only reading "PREES 'RETURN' to cotinue" without executing the program. could u say why is this happening ? Not without a lot more information. How are you compiling it? Is there a file "PLATO.exe" in the …

Member Avatar for Schol-R-LEA
0
148
Member Avatar for userasad

This is a chicken and egg problem. No drive, cd/dvd won't work. You either need to get an external drive, or have someone write it to a USB thumb drive that your system can boot from.

Member Avatar for thirsty.soul
0
181
Member Avatar for RikTelner

These days, a 4 CPU system will have from 8 (more likely 16) cores, to as many as 32. More cores == slower clock speeds. You can overclock 4 core high-end Intel CPU's to about 5GHz, and possibly more with agressive liquid cooling.

Member Avatar for Hiroshe
0
765
Member Avatar for nhrnjic6
Member Avatar for Mahkoe

What operating system/version are you using. According to the Linux man page for fopen, the usage of "a+" is this: a+ Open for reading and appending (writing at end of file). The file is created if it does not exist. The initial file position for reading is at the beginning …

Member Avatar for rubberman
0
141
Member Avatar for Saranya_2

What Schol-R-LEA said. For a cross-platform GUI development tool set, use either Qt, or Wx - Qt is preferred. That said, they are C++, not C API's. AFAIK, there are no standard GUI tools that are strictly C based, other than text-based ones such as curses/ncurses.

Member Avatar for rubberman
0
115
Member Avatar for rohan1111

I assume this is a shell script. When you execute the argument as a command, it has to be found in the system's PATH environment. Try `./$1` instead. That tells the shell to look for the command (argument) in the local directory, where you executed the ss4 command.

Member Avatar for rohan1111
0
191

The End.