-
Replied To a Post in Php vs Node
Node.js is simply (AFAIK) a javascript API that allows you to speed up client-side development. Remember, JS runs on the client, and PHP on the server. PHP can serve up … -
Replied To a Post in Sum of even numbers in an array
You are accessing the array as a 1 dimentional one, but you have defined it as a 2 dimensional array. Your readarray() method is only assigning numbers to array[1][0...9], so … -
Replied To a Post in OOP ideas
Not to mention a main() function... :-) -
Replied To a Post in OOP ideas
// Inheritance example. using namespace std; class base { private: int m_foo; public: base(int afoo = 0) : m_foo(afoo) {} virtual ~base() { cout << "~base() called." << endl; } … -
Replied To a Post in OOP ideas
So, what do you know about these subjects, and implementing examples in C++? Show what you might do, and we can help you, but I will NOT show you directly … -
Replied To a Post in Program functions not working
Turbo C/C++ are so far out-of-date that you and your class should NOT be using them! You can download good open source C++ compilers for Windows that ARE up-to-date, such … -
Replied To a Post in Help me out Please!!!!!!!!!!!!!!!!!!!!!!!!
Also use classes where your constructor or setter methods can set internal variables that can be accessed with a simple getter method. Add to that @tinstaafl's suggestion about array's of … -
Replied To a Post in C: Singly cyclic linked list with BST - print prime numbers in a file
Types are critical. You are passing the address of a pointer to init() and not the pointer itself. Also, your variable TEMP* temp in main has not been initialized with … -
Replied To a Post in C: Manipulation with structures
What @tinstaafl said. You are basically passing the address of a pointer, not the pointer itself in your print() statement. -
Replied To a Post in OOP ideas
There are a gazillion articles on the Net that cover this subject. You need to do some serious reading. The subjects of inheritance (dog inherits from animal, so does human), … -
Replied To a Post in AI - Artificial Intelligence
This is DEFINITELY NOT a simple topic. As for computer languages used for AI applications, some of the common ones were (or are still) Lisp, Prolog, Smalltalk, Snowball, and stuff … -
Replied To a Post in Check if string is a palindrome using singly linked list and stack
The info member of STRING is a `char*`, NOT a numeric or boolean value. What is your intent here? -
Replied To a Post in Windows 10 - fails to see SD card in Card Slots
Those card slots are usually attached to an internal USB hub. I usually fix this sort of cruft by going into the hardware manager, removing all the USB ports/devices, and … -
Replied To a Post in My answer on why I use Linux.
Good post. I left a comment using my Discus Rubberman48 ID. -
Replied To a Post in How to clone Windows and apps from one PC to other PCs?
When I need to do this for clients, I will boot from a Linux live DVD with an external usb drive attached which Linux will auto-mount. Then I use the … -
Replied To a Post in hard drive
Assuming you want to keep your data, you install the new drive in the same place as the old one, boot from the CD, install Win7. Then, if you can, … -
Replied To a Post in forgot password decryption
What @amigura said. Hash values generated by the like of md5, des, sha1/sha256, etc. are NOT reversable by design. -
Replied To a Post in ethernet controller (win7) unable to find updates
First, disable your Windows "firewall", then go to the networking page and delete your network connection, and then add it back. See what happens then. In any case, you should … -
Replied To a Post in C: Sorting and searching data from separated files
You need to study what an insertion sort is. What are you inserting? How are you sorting the array? Also, your for loops in the sorting function is bogus. Didn't … -
Gave Reputation to cereal in In my code is there any possibility for attacking SQL Injection?
No, from SQL injection you're safe with prepared statements, but you are exposed to an XSS attack, here: echo "<div class='alert alert-success' role='alert'>Well done! You successfully created user: <b>".$_POST['username']."</b></div>"; echo … -
Replied To a Post in C: Swapping players in a team
Post your proposed code for the swap function. We are not going to give you the solution for this without some effort on your part. :-( -
Replied To a Post in Cant get items to show up through echo
Please format the register form with proper intentation. Also, you don't indicate where your bogus output is being generated. I can't find it anywhere in your example code (either PHP … -
Replied To a Post in simulation using c++
And do remember, we DO NOT do your homework for you. There are plenty of online resources about simulation software and how to do it. If you want our help, … -
Replied To a Post in JS noob
In this example, it is redundant. However, in other cases, you can pass another function signature to the executeFunction() function, though that seems excessive unless the function to be called … -
Replied To a Post in C: Pointer to function problem
I see you figured out to not apply the & (address-of) modifire to reverseWord in the form_temp_array() call. It depends upon whether the words in the input file are one … -
Replied To a Post in Adobe PDF
I think it has to do with how the printer deals with color variations. In your printer setup in the Acrobat Reader, you may be able to increase the color … -
Replied To a Post in I need a help with this Class I made.
Saying what the errors are is useful. That said, you are assigning your arguments to variables with the wrong variable names in your constructors such as BookTitle when the variable … -
Replied To a Post in Inheritance and Polymorphism
Just this change: class Account { public: Account() { } virtual ~Account() { } private: // Private parts here. } -
Replied To a Post in Stack
So, to close. We don't do your homework for you. We will help you fix your more egregious mistakes, and make suggestions when we think you should be able to … -
Replied To a Post in Stack
So, using a stack to push the words of a sentence on, will reverse them as you pop them off at the end. IE, if you break up the sentence … -
Replied To a Post in Stack
A stack is an abstract concept of, as @DavidW explained, that behaves in a first in, last out manner (or last in, first out if you prefer). To add an … -
Replied To a Post in How does the -'0' and +'0' work in C?
These are character (integer values) so the + or - '0' will subtract the ascii value from the left side of the expression. If you are talking about a zero … -
Replied To a Post in Help in a C++ fucntion
1. Use endl instead of '\n' for newlines in C++ code, especially when pushing to cout. It will force the stream to flush the data to output, which the newline … -
Replied To a Post in Fastest Way to Find Prime
Most Intel-based chip sets support 64 bit math (80 bits internally to reducing rounding errors) which gives you up to 16 quadrillion in total values (16,000,000,000,000,000,000) - something less than … -
Replied To a Post in How Do I Mulitiply Add1 To Sub1, Add2 To Sub2. And The Product Of This Two
You should specify another php or HTML page for the action= component. In that page you can get the post variables and do the math... :-) If you construct your … -
Replied To a Post in Fastest Way to Find Prime
As a final aside, I was about to build my own unlimited precision math library at that time, but I got a job as director of R&D for a software … -
Replied To a Post in Fastest Way to Find Prime
All that aside, the really big 1024-2048 digit numbers used for public key encryption these days requires the use of an unlimited precision math library. The boost library has such. … -
Replied To a Post in Fastest Way to Find Prime
I did just that in the deep, dark past when I was studying RSA and public key encryption in general. That was back in the mid-late 1980's. I wrote a … -
Replied To a Post in C++ heap memory and pointers
This is not an uncommon technique to minimize heap fragmentation; however, unless I can see the complete code for this I have trouble believing that they are returning that memory … -
Replied To a Post in C++ heap memory and pointers
@Ben - yes, simple delete operations on objects won't return the memory to the OS, but will be available to the program for future allocations. I'm not sure about what … -
Replied To a Post in C++ heap memory and pointers
All program memory allocated on the heap within a program will be returned to the operating system when the program terminates. As for your line 30, that should be just … -
Replied To a Post in division help
You cannot divide by zero as you do on line 5 when page-fault-counter is 0. Also, you are doing an integer divide and converting the resule to a double. You … -
Replied To a Post in C++
It depends upon the operating system. There are a couple of problems here, besides the OS issue, what have you tried so far? And is this a school exercise, or … -
Replied To a Post in Binary search tree not printing in-order
So, what is the output from preprint() and iprint()? -
Replied To a Post in I'm beginner learning php. please help me! Add result into modal.
Put your entire HTML section, along with the PHP, properly formatted into a code block. This is unreadable without a lot of effort, and you aren't paying me enough to … -
Replied To a Post in queue
In any case, it isn't easy to traverse a queue. You can pop the entries out and then push them back, or push them into a temporary queue where you … -
Replied To a Post in queue
Sorry. I'm not going to do your homework for you. That said, for #2 you can get the number of elements in the queue with the `size()` method. IE: `cout … -
Replied To a Post in Nested Loops of Clock for MIPS
Lovely! MIPS assembler. I would suggest writing it in C and then have the code compiled into assembler so you can see what a reasonable assembler encoding would be. FYI, … -
Replied To a Post in Binary search tree not printing in-order
Are you sure the mytree print lines are not reversed in order? System.out.println("-------------Pre-order------------------"); mytree.iprint(); System.out.println("---------------In-Order-----------------"); mytree.preprint(); Anyway, please show your input, and your output. -
Replied To a Post in mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given
According the the php documentation, there is no function mysqli_fetch_row. There is mysqli_stmt_fetch. You need to review the documentation more closely. Look here: http://php.net/manual/en/mysqli-stmt.fetch.php
The End.