Search:
Type: Posts; User: youngyou4
Search:
Search took 0.04 seconds; generated 45 minute(s) ago.
-
April 12th, 2011, 12:12 PM
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...
-
April 12th, 2011, 10:40 AM
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.
-
April 12th, 2011, 08:33 AM
Ok now I have everything working except my upheap and downheap functions.
They are not sorting like they should.
-
April 11th, 2011, 11:39 PM
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)...
-
April 11th, 2011, 11:36 PM
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...
-
April 11th, 2011, 11:03 PM
Ok I have moved all the functions into prog8.cc
#include "/home/turing/onyuksel/courses/340/progs/11s/p8/prog8.h"
int main()
{
-
April 11th, 2011, 08:02 PM
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*,...
-
February 15th, 2011, 02:59 PM
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...
-
February 15th, 2011, 02:50 PM
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:...
-
February 15th, 2011, 02:32 PM
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...
-
November 22nd, 2010, 06:38 PM
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...
-
November 21st, 2010, 07:27 PM
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.
-
November 21st, 2010, 06:46 PM
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.
...
-
November 3rd, 2010, 01:14 PM
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...
-
November 3rd, 2010, 01:05 PM
What exactly should i be modifying?
-
November 3rd, 2010, 01:00 PM
I just saw that...
That should be
ptr =lagPtr->next;
correct?
-
November 3rd, 2010, 12:31 PM
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.
-
November 3rd, 2010, 12:22 PM
I've been playing around with it again, and i think my problems are in the remove method.
-
November 3rd, 2010, 12:07 PM
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...
-
November 3rd, 2010, 12:04 PM
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...
-
November 3rd, 2010, 10:30 AM
Here is assign7.cpp
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <fstream>
#include "Link.h"
-
November 3rd, 2010, 01:23 AM
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <fstream>
#include "Link.h"
using namespace std;
void print_entry(int &, int);
-
November 3rd, 2010, 01:22 AM
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...
|
Click Here to Expand Forum to Full Width
|