5,331 Posted Topics

Member Avatar for ikujeyisie

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!

Member Avatar for rubberman
-1
95
Member Avatar for kARTechnology

You expect us to analyze and comment on 300 lines of code and output? Someone perhaps will, but it won't be me. I see a lot of issues with your code, most of which is just silly stuff. You look at it again, with a critical eye and the lessons …

Member Avatar for StuXYZ
0
246
Member Avatar for fernando.sawyer.98

Dell makes some nice laptops for this use. I prefer them to HP because in my experience they have been better at support. Given that my last Dell laptop was purchased in 2006 (9 years ago), my experience is not current... :-) One thing they do provide is an extended …

Member Avatar for Reverend Jim
0
127
Member Avatar for johnruelle

I love this quote from the M-DISC web site: "This new standard of storage engraves your information into a patented rock-like layer that has been proven to last 1,000 years"... Well, since electronic computers have only been around for a number of decades, this seems a bit of a boast, …

Member Avatar for johnruelle
0
120
Member Avatar for Mister17

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.

Member Avatar for JamesCherrill
0
238
Member Avatar for fasihahshaharil

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: …

Member Avatar for rubberman
0
105
Member Avatar for Search_not

You also don't declare the type of the variable "file". That, and you should NOT use NULL in C++ except for `void*` types. Use 0 instead. That is valid for any type of pointer. Some compilers will complain about that, especially if warnings are enabled.

Member Avatar for rubberman
0
145
Member Avatar for fasihahshaharil
Re: c++

There are restricted versions you can get from Microsoft directly that are free, but the professional and enterprise versions are only available by paying a lot of $$. Please do NOT ask us to provide you with any proprietary software like this, free or not. We'll provide links to where …

Member Avatar for rubberman
0
106
Member Avatar for dvamshi0608

C++ allows default values in the declaration/definition of a function, so if there are such, you can leave the ones with defaults out of the call if the default is valid. Example: #include <iostream> using namespace std; // Declaration - may be in a header file. int someFunction( int a, …

Member Avatar for rubberman
0
176
Member Avatar for RikTelner

The usual answer is "it depends". Laptops typically use a 2.5" HDD sata drive format. You can install a large (up to 1TB at least) HDD or SSD in place of the SSD that is provided, but you will have to re-install the OS, which if Windows means that you …

Member Avatar for RikTelner
0
145
Member Avatar for Matthew_10

"Java is to JavaScript as Car is to Carpet." Myself, I would reverse the nouns, as in "Javascript is to Java as Carpet is to Car." :-)

Member Avatar for Slavi
0
245
Member Avatar for Germio_1

Business is business. Some are good at it. Others not so. That said, it is possible to write your own software, especially for mobile apps, and have it sold for you in the mobile device app stores. The cost to entry is not too high, and if your app gets …

Member Avatar for deceptikon
0
134
Member Avatar for RikTelner

Viruses that infect a virtual machine should only affect that virtual machine, unless it has some network connection to the host that can let the virus propagate to the host (rare). If your host is Linux, and the VM is Windows, this is unlikely. I use VirtualBox for this sort …

Member Avatar for Slavi
0
308
Member Avatar for Rizi004

Having multiple readers of a table simultaneously is not a problem and you should not try to lock the table. Having one read it while another is trying to write to it is another issue. Most database implementations will deal with this automatically. If one is updating, but another tries …

Member Avatar for rubberman
0
210
Member Avatar for adebayo23

To quote myself - "We don't do your homework for you!". Until you make an effort, post the code here, and let us know what errors or issues you have, don't expect much... :-(

Member Avatar for rubberman
0
159
Member Avatar for rameshrock

Just remember, we don't do your homework for you. Post your best-effort code and we will critique it and help you fix it, but don't expect us to do it for you.

Member Avatar for rubberman
0
98
Member Avatar for Brandon_7

To see what is going on, before line 8, put in a printf statement that will output i and j. That may help you see the behavior of the algorithm. IE: int i = 1; while ( i < 10 ) { int j = 10; while ( j > …

Member Avatar for rubberman
0
202
Member Avatar for Smn

C++ is derived from C, and is fully compatible with C code. It has added classes, templates, references (vs raw pointers), and a number of other advanced programming features that allow you to write very complex programs much more quickly and with less code that it would require in C. …

Member Avatar for rubberman
0
141
Member Avatar for vell

Also, normally we don't do your homework for you. Of course, you still need to initialize your variables to a sane value. I think Moschops is leaving that exercise to you... :-)

Member Avatar for rubberman
0
61
Member Avatar for AQWst

What ddanbe says. For #2 you need to change the language to Norwegian so it will deal with the extra letters, accents, and such.

Member Avatar for AQWst
0
153
Member Avatar for muhammad_74

PAE - Physical Address Extension - this allows your computer in 32-bit mode to access more than 4GB of RAM, although each process is still limited to that. SSE2 - Here is the Wikipedia article on that: https://en.wikipedia.org/wiki/SSE2 NX - No Execute instruction - helps protect your system from malware. …

Member Avatar for cgeier
0
2K
Member Avatar for aliasadullah

And don't forget to stick your tongue out and flap your arms vigorously while you reboot! Sorry, I couldn't help myself after these other responses! Do let us know WHAT you need help with. We are not mind readers, but we will do what we can to help you if …

Member Avatar for Lardmeister
-1
177
Member Avatar for JamesCherrill

I write quite a bit of Java, and learned about it from the inventor, James Gosling, back in 1995 I believe, at a Boston IEEE Conference. I even got an "official" Java coffee mug from him! Personally, it is a PITA! The standard garbage collector sucks, and the lack of …

Member Avatar for <M/>
1
334
Member Avatar for Ahmad Imran

What Suzie999 says. Don't ask stupid questions until you have exhausted standard search tools...

Member Avatar for deceptikon
0
330
Member Avatar for afiya abdu
Member Avatar for ddanbe
0
129
Member Avatar for surya55

XML is frequently used to serialize objects and such these days. There are many packages that will help you with that for Java, C, C++, and other languages. And don't forget, you still need to de-serialize it at the other end of the connection. This may not be trivial.

Member Avatar for rubberman
0
982
Member Avatar for traconsulting

One is positive, the other negative. Positive and negative charges attract each other. Spyware helps sell antivirus software. Bingo! No spyware... No antivirus! Myself, I run Linux on all of my personal systems, and Windows only in a virtual machine. I have never had an issue with spyware/malware on Linux. …

Member Avatar for rubberman
0
123
Member Avatar for humorousone

Loops have an implicit goto when the terminating condition is met, but it is a compiler construct. Goto's have often been used in lieu of exceptions to break out of a bit of code when an exceptional (bad) situation has occured. These days, most modern languages have exception handling, so …

Member Avatar for JamesCherrill
0
272
Member Avatar for chahinez.abdelo.9

We can't help until you tell us what your problem is. You have clearly delineated what you need to do. What have you done so far? What problems have you encountered? Are you clueless about Perl? If so, there are abundant documentation and tutorials on the Internet for you to …

Member Avatar for chahinez.abdelo.9
0
226
Member Avatar for Adam_21

Making programs in C++... Gee, after 25+ years of C++ programming, I don't know. What tinstaafl said - try some Google searches. There are a lot of good books out there, especially those written by the author of C++, Bjarne Stroustrup.

Member Avatar for Maritimo
0
95
Member Avatar for bikunj

This is either a recovery system bug or the results of a corrupted image (such as a failing hard drive). I would guess the latter. Bug HP for new installation media and a new hard drive. If the system is still under warranty it may not cost you anything. If …

Member Avatar for johnruelle
0
438
Member Avatar for RikTelner

For a bootable image, you first need to write a boot loader. Not too hard - I've done it in the past. The boot loader executes the code found, then relocates to the actual system image to continue. Then it jumps to the actual system code. So, it is a …

Member Avatar for RikTelner
0
370
Member Avatar for fonzali

Why are you worried? Do you think someone is hacking your keyboard/computer interactions? Yes, that is possible, but really unlikely unless you are up to something that the government is worried about, or someone is trying to steal information from your company. A friend of mine developed a high-security Tempus …

Member Avatar for fonzali
0
141
Member Avatar for cambalinho

This is a MS API question, and not relevant generally to C++. We would need to know in detail what the SelectObject() function is doing, and that is not in the pervue of C++. It is specific to the MS API's. Read their documentation for more information would be an …

Member Avatar for cambalinho
0
3K
Member Avatar for exoruel

Also, I think you are passing the array in by value (copy) so it won't be visible outside of the function. You need to pass by reference as in: `void mulTable(int (&arg1)[50][50], int r, int c)`

Member Avatar for rubberman
0
1K
Member Avatar for hany_2

Contact Adobe support. I'm not sure this version of OSX (latest probably?) is currently supported. In any case, do that, and I will contact the Adobe Creative Cloud support group this week to see what the situation is with regard to Yosemite. As I am an Adobe employee, this may …

Member Avatar for hany_2
0
65
Member Avatar for PerpyProgrammer

Networks don't usually crash unless a switch, router, or proxy server goes down. If a switch fails, then all the systems connected to it will not be accessible and they will not be able to access the rest of the network or the Internet. You can install more than one …

Member Avatar for RobertHDD
-2
116
Member Avatar for jalpesh_007

School/class assignment? Do work first. Post work here. If appropriate, we will critique and help you.

Member Avatar for rubberman
0
216
Member Avatar for zzmrzz

Since this is coming from systemd, I have to assume you are using a new/bleading-edge distribution? Please provide more system information.

Member Avatar for rubberman
0
409
Member Avatar for Dyesabel

Actually, most current processors support process segregation, but the OS has to utilize it. Most do these days, including Unix, Linux, and Windows (since Windows 2000). You don't want processes to be able to access memory and other resources in other processes as that would allow them to, accidentally or …

Member Avatar for rubberman
0
134
Member Avatar for apkrieg

Yes, on both 32 and 64-bit systems, usually an int is 32-bits, but in your 64-bit system, you need a 64-bit integer, which is a long in the 64-bit system, and long long in a 32-bit one. The long long distinction is currently irrelevant on 64-bit systems, but that may …

Member Avatar for apkrieg
0
823
Member Avatar for markdean1989

@Nathan If they weren't open then I would expect the input and output operators to throw an exception. @markdean1989 What output do you get if you use cout instead of outfile for the output stream? Do you get sensible values for mathgrade, scigrade, and average. Do you get any output? …

Member Avatar for markdean1989
0
521
Member Avatar for PerpyProgrammer

It's all in the physics - acceleration, inertia, vectors. So, if you want help, or some criticism, post your design here. My wife is a particle physicist. I am an EE and software engineer. My grandson designs robotic aircraft that can self-navigate a course and land autonomously - he does …

Member Avatar for PerpyProgrammer
-2
129
Member Avatar for Jack_11

@Mike2k My grandson is a prodigy, though he has finally hit adulthood (21 this year). At 8 years old he rewired my daughter's kitchen radio in order to receive transmissions from his kid walky-talky in the back yard ("Hey mom, can you bring me some lemonade?"). He designs and builds …

Member Avatar for <M/>
0
672
Member Avatar for newbie14

Without access to the rest of your code I can only say that yes, you could be dealing with a thread race condition here. You might want to consider using a mutex that will keep a second thread from starting if the previous one has not yet terminated.

Member Avatar for rubberman
0
204
Member Avatar for PerpyProgrammer

A self-healing OS? Sounds like a great subject for a PhD thesis in Computer Science. Personally, I don't know of any currently, although the QNX operating system is as reliable as they come, and if any driver or other service (other than the real-time micro-kernel) fails, it can be replaced …

Member Avatar for rubberman
-1
112
Member Avatar for it@61@sec

Nobody really gets this correct. Microsoft certainly doesn't get it right, and Linux engineers are not much better. There are too many factors such as system load, I/O loads, disc read/write speeds, is the source file on one disc and the target on another or the same disc? What are …

Member Avatar for it@61@sec
0
1K
Member Avatar for Haroon_3

Show the C and your C++ code. C++ is C with classes, and some other stuff, like differing syntax for input/output functions. Without code, there is no way to answer your question. FWIW, you can execute your C code if compiled with a C++ compiler, with some minor caveats. The …

Member Avatar for dilantha.prasanjith.96
0
475
Member Avatar for Dragennd

There are experimental systems that support distributed RAM, but bear in mind that they have horrible latencies since they have to operate over the network. With the faster networks we are getting today, such as 10Gbps switches and NIC's, this may become more mainstream in the future, but for now, …

Member Avatar for rubberman
0
175
Member Avatar for Nova6112

The minimum RAM is 512MB and minimum recommended is 2GB. That is basically for the database server. You should double that to 4GB in order to avoid virtual memory swapping. I assume you are running the 64-bit OS and database server? If not, then upgrade asap!

Member Avatar for rubberman
0
329

The End.