CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: originalmoose

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    12,291

    WPF ListBox with stackpanel

    I have a WPF application that is using Prism regions. I have a listbox declared as a region with a stackpanel as the itemspaneltemplate. The problem I am having is the items are being arranged...
  2. Re: String class, input filename

    thanks a bunch, i cant believe i forgot i could have just returned str. saves me a lot of hassle and about 13 lines of code. Anyways thanks again, as always i get great help from these forums.
  3. [RESOLVED] String class, input filename

    Ok so I have completely re-written my string class based on the advice of some members on these forums and im really glad i did, so far i have been able to fix all the problems and my string class is...
  4. Replies
    4
    Views
    796

    Re: ***glibc detected***

    That seems like a pretty good idea as well, thanks for the tips guys.
  5. Replies
    4
    Views
    796

    Re: ***glibc detected***

    thats what i was afraid i was going to have to do. The reason the code ended up the way it currently is, the assignment we have for my class has us building the class in segments and the way I have...
  6. Replies
    4
    Views
    796

    ***glibc detected***

    I have been digging through my code for the past two days and I cannot seem to nail down the source of my problems. you will have to excuse the mess of all the std::cout calls. I was trying to...
  7. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    Thanks a bunch, I added in a test to make sure the in is valid and that fixed the issue.

    You guys have always been so helpful on this site, as someone learning to program I really appreciate it
  8. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    Ive hardcoded the values in without any issues(well none that i didnt fix).

    I can also read in two sets of values for a and b and calculate c and repeat the same for two new values for a and b and...
  9. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    If I change the main program to this:



    int main()
    {

    bigint a, b, c;
    std::string file_name = "data1-1.txt";
    std::ofstream outfile("results.txt");
  10. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    this will probably just be easier if I attach my files.
  11. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    Sure thing.
  12. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    here is the implementation for >> and operator+ for bigint



    std::istream& operator>> (std::istream& in, bigint& num)
    {
    num.initialize();
    char ch;
    in >> ch;
    ...
  13. Replies
    14
    Views
    1,224

    Re: Segmentation Fault

    I almost forgot here is the output when the program is executed:



    112321554556546546486321435465464488844113546654696873244654
    65873547685735744424554321649523187432184732416847321
    ...
  14. Replies
    14
    Views
    1,224

    [RESOLVED] Segmentation Fault

    Hopefully this should be an easy problem I have looked all over my code and I cannot find where the problem lies. The program reads to large ints from a text file adds them and then outputs the...
  15. Replies
    3
    Views
    2,281

    Re: c++ structs

    wow...I cant believe I missed that, thanks for the help, it compiles after I added #include <string> and <vector>. Thats what I get for programming right after I woke up.

    Thanks for the help...
  16. Replies
    3
    Views
    2,281

    c++ structs

    I am getting pretty frustrated, I cannot for the life of me figure out why I am getting the errors that I am. The program I need to write is for my class, we had just gone over using structs in...
Results 1 to 16 of 16





Click Here to Expand Forum to Full Width

Featured