Search:

Type: Posts; User: c_weed

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. What are available for getting a program written in C++ to output to a website?

    I have a program written in C++. I makes use of the GMP library. I would like the program to be accessible through a website. What options exist? The old school was is CGI and the new way is...
  2. How to add times elapsed from function inside a loop?

    I have implemented two ways of doing something inside a loop. I'd like to time them to find out which to keep.


    for(int i = 0; i < 1000; i++)
    {
    int x = whatever(i);
    foo1(x);
    ...
  3. Replies
    1
    Views
    19,183

    Which methods in std::vector are thread safe?

    Which methods in std::vector are thread safe? If none, what data structures are there that support insert, read and replace operations that are thread safe? I'm using c++14
  4. Replies
    2
    Views
    17,331

    I installed GMP using the MinGW installer so...

    I installed GMP using the MinGW installer so that's done. Now I can't figure out how to actually configure Netbeans to use it?
  5. Replies
    2
    Views
    17,331

    How to install GMP on Windows?

    I have never installed a library written by someone else before and not sure what the first steps are? I know I need to download the files from The GNU MP Bignum Library I have Mingw installed on...
  6. Replies
    5
    Views
    2,595

    Ok. No ones answered when they should be used....

    Ok. No ones answered when they should be used. For example if it doesn't matter, like your getting user input, should int or uint16 be used?
  7. Replies
    5
    Views
    2,595

    When to use uint32?

    I just red this stackoverflow post and still don't get it. Aside from serializing to file, when would an int not work and a uint32 would be better? Same question for uint16 and uint8. I know uint32...
  8. Replies
    11
    Views
    1,810

    Wouldn't binary be 1s and 0s where as I see...

    Wouldn't binary be 1s and 0s where as I see ���s�h1̼8�������e�E|3���l
  9. Replies
    11
    Views
    1,810

    ifstream ifs; ifs.open(argv[1],...

    ifstream ifs;
    ifs.open(argv[1], ios::binary);
    if(!ifs)
    {
    cerr << "failed to open file" << endl;
    return -1;
    }
    string content(...
  10. Replies
    11
    Views
    1,810

    How to read binary img file

    When reading a binary .img why is it when you read it by slurping in the file, then save it to a string and cout, you don't see the binary but random garbage?
  11. Replies
    14
    Views
    1,641

    What exactly is an interupt?

    What exactly is an interrupt (for example hardware interrupt or software interrupt). Hear me out. Most sources define an interrupt as when a device sends a signal to the CPU telling it what to do....
  12. Replies
    6
    Views
    1,625

    Is c++ pass by refrence or value?

    I passed a std::vector object to a function that searched for a particular element and then deleted it. After much trouble, I realized c++ doesn't work the way I thought it did, and needed to add &...
  13. Thread: Freeing memory

    by c_weed
    Replies
    11
    Views
    1,073

    I've never heard of a leack checker. How does it...

    I've never heard of a leack checker. How does it work?
  14. Thread: Freeing memory

    by c_weed
    Replies
    11
    Views
    1,073

    Freeing memory

    I'm not very knowledgable about when memory leaks occure and how to prevent them.

    I have a for(;; ) loop and inside there is a variable, that gets written over each itteration,

    char** vecDat...
  15. Difference between the words: argument, option and flag

    Say you are typing in a termainl running the bash shell and write "ls -la /usr/bin"

    What is considered the argument, option and flag?

    Also, how does the interpreter know where the end of one...
  16. Why does C/C++ have so many C/C++ and are there any common traits to them?

    This question applies to C++ too. It seems like C/C++ take great liberties to come up with new types, for example waitpid returns pid_t instead of int or char. It sure makes knowing all the types and...
  17. Replies
    1
    Views
    763

    What parts are there to the C language?

    I recalled making a multithreaded program but forgot if I used C or C++. When I google searched if C is multi-threaded I came across this stackoverflow post.


    "C is not intrinsically a...
  18. Replies
    9
    Views
    1,117

    How to get familliar with an algorithm

    What does it mean to know an algorithm? I thought I had known quicksort by years, but then I realized I couldn't implement it without looking to other sources. I then found that there are quite a few...
  19. So in a nut shell the reason is, while assembly...

    So in a nut shell the reason is, while assembly is fairly specific compared to higher level languages (e.g. specific to an architecture, like x86) microcode is EVEN MORE SPECIFIC where it is...
  20. Couldn't this is achieved by high level languages...

    Couldn't this is achieved by high level languages (such as C, C++) in the sense they provide another layer of abstraction so that a programer only needs to know the high level language and let the...
  21. But assembly is already architecture specific.

    But assembly is already architecture specific.
  22. Isn't it misleading that people say there is a...

    Isn't it misleading that people say there is a "one-to-one correspondence between assembly language instructions and machine language instructions" because there may not be a one-to-one...
  23. Full break down of high level language to executed code

    Every time I think I know the full process of turning source code into the thing that get runs, it turns out I'm missing a step (this time it was microcode). So the complete hierarchy, soup to nuts,...
  24. Replies
    17
    Views
    1,929

    Can a debugger be used too much?

    I am just getting into using a debugger and see I've been missing out big time ;) I used to use a lot of cout statements to print intermediate values, now with a debugger I will probably stop doing...
  25. Replies
    15
    Views
    3,693

    Why do you need pointers to pointers?

    I'm having trouble understanding why pointers to pointers arise and am hoping someone could give me a very high level general explanation. For example
    int **myVar

    One thing I don't understand is...
Results 1 to 25 of 133
Page 1 of 6 1 2 3 4