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

Search:

Type: Posts; User: youngyou4

Search: Search took 0.02 seconds.

  1. Re: Trouble with Linking to Object File Undefined Reference.

    Okay I tried your way but It only sorts some of the numbers.

    This is my upheap



    template<class T,class P>
    void upheap(vector<T>& v, int start, P func) {
    T x = v[start];
    while (start...
  2. Re: Trouble with Linking to Object File Undefined Reference.

    Yes Paul thank you. It worked out great.

    Russco is that all there is to it for why my sort is not working. It also says im not using all parameters but I don't see how i can use them.
  3. Re: Trouble with Linking to Object File Undefined Reference.

    Ok now I have everything working except my upheap and downheap functions.
    They are not sorting like they should.
  4. Re: Trouble with Linking to Object File Undefined Reference.

    std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]’
    prog8.cc:115: instantiated from ‘void print_list(std::vector<_Tp, std::allocator<_CharT> >&, int, int, P) [with...
  5. Re: Trouble with Linking to Object File Undefined Reference.

    z1578264@turing:~/340$ compile.340 prog8
    prog8.cc: In function ‘void insert(std::vector<_Tp, std::allocator<_CharT> >&, const T&, P)’:
    prog8.cc:60: error: ‘ve’ was not declared in this scope...
  6. Re: Trouble with Linking to Object File Undefined Reference.

    Ok I have moved all the functions into prog8.cc





    #include "/home/turing/onyuksel/courses/340/progs/11s/p8/prog8.h"

    int main()
    {
  7. Trouble with Linking to Object File Undefined Reference.

    Im having issues on my program assignment. I keep getting errors like


    undefined reference to `void get_list<int, std::less<int> >(std::vector<int, std::allocator<int> >&, char const*,...
  8. Replies
    6
    Views
    925

    Re: Help with Maps... Couple Errors

    Hmm... I got rid of all the errors and warnings and such. I figured out why its saying that command is not found. I forgot to link and create executable file. But now when i try and create the...
  9. Replies
    6
    Views
    925

    Re: Help with Maps... Couple Errors

    in clean_entry

    I changed int p1 = 0, p2;
    to unsigned int p1 = 0, p2;

    And it got rid of the warnings...
    But when i open up prog3.out for the output of my file. It still shows
    -bash:...
  10. Replies
    6
    Views
    925

    Help with Maps... Couple Errors

    I got this assignment for my class. Its to create and write an interactive program to scan and process an input stream of an ordinary text. Then it checks for punctuation marks, and deletes them from...
  11. Re: Processing expressions of either infix or postfix

    int evalExp( const string & )

    This function evaluates only postfix expressions and returns the result of the expression. The argument to this function is a string that contains a postfix...
  12. Re: Processing expressions of either infix or postfix

    Yes i did read it, but how am i suppose to write the assign9.cpp ? I don't want the code but like the logic on what i need would help.
  13. Processing expressions of either infix or postfix

    Hey, I'm working on a program for class and I have part one of the assignment written but I'm not quite understanding this expression of infix or postfix.

    This is the link to the assignment 9.
    ...
  14. Re: Segmentation Error in program... Cant Figure out why

    Thank you, I think i get it,
    One more thing,

    You think you can show me exactly where i need to change it at?
    I'm still a bit confused, and I'm trying to find it in the book but i just don't get...
  15. Re: Segmentation Error in program... Cant Figure out why

    What exactly should i be modifying?
  16. Re: Segmentation Error in program... Cant Figure out why

    I just saw that...

    That should be


    ptr =lagPtr->next;


    correct?
  17. Re: Segmentation Error in program... Cant Figure out why

    I've checked the logic over and over again... But I'm still getting a **** segmentation fault. I dont understand what is wrong with it.
  18. Re: Segmentation Error in program... Cant Figure out why

    I've been playing around with it again, and i think my problems are in the remove method.
  19. Re: Segmentation Error in program... Cant Figure out why

    The segmentation error i believe is coming from the insert method, but i dont see anything wrong with it. A segmentation fault is only from a ptr being wrong or trying to access node when it is not...
  20. Re: Segmentation Error in program... Cant Figure out why

    I ran the debugger, it is showing that its coming from my insert method but i dont see how. The ptr is right. The only thing that causes a segmentation error is when you try to access node when you...
  21. Re: Segmentation Error in program... Cant Figure out why

    Here is assign7.cpp


    #include <cstdlib>
    #include <iostream>
    #include <iomanip>
    #include <fstream>

    #include "Link.h"
  22. Re: Segmentation Error in program... Cant Figure out why

    #include <iostream>
    #include <iomanip>
    #include <cstdlib>
    #include <fstream>

    #include "Link.h"

    using namespace std;

    void print_entry(int &, int);
  23. Segmentation Error in program... Cant Figure out why

    This program is running and compiles, and prints out the information but its getting a segmentation fault somewhere in the program, i believe its in the insort1 and insort 2 but i'm not sure.

    For...
Results 1 to 23 of 23


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center