Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~740 People Reached
Favorite Tags
Member Avatar for qwertymk

Lets say I want to show [url]http://www.whatever.com/longWebPage.html[/url] and [url]http://www.someOtherDomain.com/alsoALongPage.html[/url] and [url]http://www.ranOutOfNames.com/youGetThePoint.html[/url] All on one page with one scrollbar. I want it to seem like I copy pasted all three sites one after another on my page. I tried using frames but that splits up the window into parts. What I …

Member Avatar for qwertymk
0
83
Member Avatar for qwertymk

I have the following code and was wondering if it is a memory leak [CODE] #include <cstdlib> #include <iostream> #include <iomanip> #include <vector> using namespace std; template <class T> class live { vector<T> _data; live<T> *_next, *_temp; public: live(int elements, int chunk = 10) : _next(NULL) { if (elements > …

Member Avatar for Agni
0
106
Member Avatar for qwertymk

I know I'm supposed to use new and delete, but I really need to use realloc, and I'm curious to how it can be done. [code] myclass { ... public: myclass() { cout << "Hi, I'm the constuctor" << endl; }; int main() { myclass *m; m = (myclass*) malloc …

Member Avatar for Narue
0
141
Member Avatar for qwertymk

I have a line of code that looks like this: [code] _data = new (nothrow) T[_size]; [/code] This code is inside a classe's constuctor The problem is that it initializes each element to zero which I don't want it to do. Is there to just have it reserve the memory …

Member Avatar for qwertymk
0
114
Member Avatar for qwertymk

Is there a way to determine the largest amount of continuous memory using either new or malloc(), preferably malloc tho. I am looking for a quick and easy function call and I don't want to have to loop through different values and see if it's available. A function that goes …

Member Avatar for kvprajapati
0
74
Member Avatar for qwertymk

this is what I made for a = operator: [code] matrix matrix::operator= (double a[]) { for (int i = 0; i < rows * clms; i++){ //std::cout << i<< "=" <<a[i] << " "; *(x +i) = a[i]; //std::cout << i<< "=" <<x[i] << " "; } return *this; } …

Member Avatar for qwertymk
0
121
Member Avatar for qwertymk

This will go faster if I show you what I want to do. [code] class matrix { public: double *x; int clms, rows; matrix(int unknowns) { rows = unknowns; clms = unknowns + 1; x = new double[rows * clms]; } matrix operator = (double a[]) const { matrix tmp(rows); …

Member Avatar for qwertymk
0
101