thats what im triying to make :)
Type: Posts; User: karb0noxyde
thats what im triying to make :)
If you have a really big binary number that is bigger than the maximum size of the built-in types of c++, how can you represent it in binary?
dont worry i solved it
How exacly do i overload the + operator for my class, i try to overload it but it says that couldnt find the function. By the way the class is templated.
thanks
is that standard?
oh ok thanks :)
Say i have a variable myvar that is of type unsigned char,
what happens if the variable = 200 and then i sum it 200,
will it be 256 or 200?
for the first thing, yes, thats why I said that you could use it at very low level, and i already fixed the second thing
true
.
.
.
.
and
.
.
.
.
its just a tutorial, i wrote is so it could go to the FAQ... what is wrong?
oh sorry =P
what post?
my compiler is Visual c++ .NET. I think the problem is that Im running the debug configuration because with the release configuration works fine also :)
Ok, ill post the files:
main.cpp:
#include <iostream>
#include "bigint.h"
#include "binary_funcs.h"
using namespace std;
using namespace bigint_ns;
In C++ you have three places where you can store variables:
* Register
* Stack
* Heap
Each of them have their own advantages and disadvantages which I'll cover here.
Nowadays the...
the type is int
thanks anyways
¬¬
you feel stressed today?
It's quite good anyways :cool:
Cool game;
Constructive critique: sometimes the "eaters" are a bit dumb and don't eat you
same thing happens with:
template< typename T >
T to_dec( const std::vector< bool > & binary_number )
{
T a;
a++;
return a;
}
but i get an error:
Run-Time Check Failure #3 - The variable 'a' is being used without being defined.
for this code:
template< typename T >
T to_dec( const std::vector< bool > &...
Yup, thats the place i mean, and also, im working with templates on VC++ .NET
If i make a header file (.h) with some functions and then implement them in a .hpp , the functions won't appear at the place where all functions are, what am i doing wrong?
How can I make a function which's return type is given by the user?