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
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for invinate

hi, i'm having trouble compiling this code: SparseMatrix.h: [CODE] #ifndef SPARSE_MATRIX #define SPARSE_MATRIX #include <ostream> class SparseMatrix { //class data ... SparseMatrix operator+(const SparseMatrix& rhs) const; SparseMatrix operator*(const SparseMatrix& rhs) const; }; ostream& operator<<(ostream& out, SparseMatrix& rhs); #endif [/CODE] SparseMatrix.cpp: [CODE] #include "SparseMatrix.h" ostream& operator<<(ostream& out, SparseMatrix& rhs) { ... …

Member Avatar for invinate
0
197
Member Avatar for invinate

Hello, I start a thread that runs exec and sets the global variable to True, meaning that the thread finished. The main thread that creates this new thread runs in a loop while the global var is False. The problem is that the exec job is also running in a …

Member Avatar for invinate
0
81
Member Avatar for invinate

hi, i'm new here and got a really simple problem. i need to parse a conf file, where # is a comment, like this: [CODE] # Begin conf VAR1 = VAL1 VAR2 = VAL2 # end [/CODE] i want to skip all comments and read VAL1 and VAL2 to members …

Member Avatar for satarupa
0
529
Member Avatar for invinate

I recenly read this piece of code: [CODE]heap.push((Edge){x, 0});[/CODE] where Edge is something like [CODE]struct Edge { int a, b; }; [/CODE] I wonder how standard this syntax is? do all compilers understand this and is it ok to write such code?

Member Avatar for Ancient Dragon
0
77
Member Avatar for invinate

Hi, i'm reading from a URL that has cyrillic content, and when i try to display it, it shows lots of questions marks or sometimes other strange letters. how do i make it work correctly ?

Member Avatar for Phaelax
0
75
Member Avatar for invinate

Hi, i've been reading about c++ advanced concepts such as polymorphism, (multiple) inheritance, templates, operator overloading and others. It all seems more or less clear to me but i know i would never really understand all these language features until i've used them. the problem is that i don't know …

Member Avatar for invinate
0
108
Member Avatar for invinate

ok, quick question for those who know the standard well. when is a variable (and array and class object) set to 0 by default (all elements, all members) in C++. i know that if it's global it should be (is it?). are there any other cases?

Member Avatar for invinate
0
86
Member Avatar for CStallion

I am having problems with a code that I would like to go something liek this [code] string array; int z = rand()%2; switch(z) { case 0: array = {"entry 1","entry 2",...,"entry n"}; break; case 1: array = {"entry A","entry B",...,"entry (letter)"}; break; } //then do stuff with array [/code] …

Member Avatar for SpS
0
443
Member Avatar for atrusmre

I am working on a project that requires me to recive data from a network application. After I recive the data I'm suppose to break it up. Now I know of a way to sorta do that by using "tokens" and strtok (if you don't know strok breaks up a …

Member Avatar for atrusmre
0
151
Member Avatar for Daishi

I happen to be writing a very simple text browser, and I'm having a problem connecting to servers using HTTP1.1 GET messages... HTTP1.0 works fine, I just have a string like this: [CODE] const char *request = "GET / HTTP/1.0\n\n"; [/CODE] This works great, and I receive my html back …

Member Avatar for Daishi
0
165
Member Avatar for Acidburn

Hello, I've been given this algo code to rewrite in c++ : if the list is not full then n <- n+ 1 L[n] <- new item else ERROR ("List is full.") end if [code] int main() { int list[MAX]; int i,n = 0; if (n!=MAX) { for ( i …

Member Avatar for invinate
0
111