User profile: JLBorges

User info
User name:JLBorges
History
Joined:
Number of posts:8992
Latest posts:

For some reason the variable "percent" is returning 0 when divided by mArea
Avoid integer division [code]// percent = (sum / mArea) * 100; percent = ( double(sum) / mArea ) * 1...

Create Dynamic Arrays for Matrices named after loop iterator
[code]#include <iostream> #include <vector> int main() { std::size_t n ; std::cout << "numb...

error message
Since the intent is to set values to the arguments passed by reference, they should not be reference...

classes
> Always pass std::string (or any class ) by reference. This is canonical C++11 (exploit move seman...

TCP Server w/o listening/accept???
Something along these lines, perhaps: [code]#include <unistd.h> #include <sys/types.h> #include <s...