Posts
 
Reputation
Joined
Last Seen
Ranked #776
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
51
Posts with Upvotes
49
Upvoting Members
26
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
7 Commented Posts
4 Endorsements
Ranked #402
Ranked #425
~107.18K People Reached
Favorite Tags
Member Avatar for histrungalot

["Objects that are instances of an inner class exist within an instance of the outer class"](http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html) Even though I attempt to create an independent instantiation of the inner class, the outer class is always there because of the statement above. ##Is that ture? If true, then that would also mean …

Member Avatar for histrungalot
0
172
Member Avatar for Major Aly

Hey guys, So I've thoroughly gone through the topics by searching this site but I couldn't find something which can help me. I'm making a task for my friend and let me tell you that it's been a year or more since I've used C++. I've moved on to C# …

Member Avatar for histrungalot
0
329
Member Avatar for jude416

Hi guys. I am currently making a Question and Answer multiple choice Program. So far it is good. I used Array to shuffle 50 questions. the problem of the program is it cannot count the right answers and display it. This is the part of the program that has an …

Member Avatar for DeanMSands3
0
269
Member Avatar for angelineang

Your program is nt behaving as wat u expect where sometimes it output the correct and at times incorrect result. During debugging,u manage to locate the problem to the following statement. A/b == c Where a,b,c are using the ieee 754 floating point representation and where the value c is …

Member Avatar for geojia
0
130
Member Avatar for nataraja833

Hi All , This is my code snippet [CODE]typedef struct { char *name; } CELL; typedef struct { CELL *cell; char *name; } INST ; int main () { INST **top_inst_list ; int i,j; char string_name[100]; printf("Enter number of insts in design\n") ; scanf("%d",&i); top_inst_list = (INST **)malloc(sizeof(INST*)*i) ; for …

Member Avatar for deceptikon
0
135
Member Avatar for triumphost

I'm trying to generate Unique ID's for a buffer unless they contain the same content. Inother words if the buffer has the same content as another, the ID should be the same; otherwise different. I've found someone using this algorithm for the same kind of buffer: DWORD CalcChecksum(DWORD *pData, int …

Member Avatar for triumphost
0
130
Member Avatar for mchung90

Hello, I was curious to how I would go about modifying an existing text file (to all upper case) by the use of mapped memory. I think I have done the mapping correct, however I am stuck on how to modify the file. Help would be much appreciated, thanks! #include …

Member Avatar for mchung90
0
136
Member Avatar for mike_2000_17

Hi all! This is a simple piece of code that I wrote about a year ago, in response to a question on Daniweb. I decided to infuse it with some C++11 magic, which led to a pretty sweet code snippet, full of neat little techniques you might want to use, …

Member Avatar for mike_2000_17
3
1K
Member Avatar for lxXTaCoXxl

I've been given a homework assignment in which I have to create a linked list, then store 25 random integers within it, after I've stored the values I have to find the sum of these 25 numbers, and then the floating point average of them. So for the most part …

Member Avatar for histrungalot
0
203
Member Avatar for iAndrewMeyer

Am I freeing and declaring this 2d array correctly? int **ratings; ratings = (int**)malloc(sizeof(int *) * (numCouples*2)); for(i=0; i<numCouples*2*numCouples;i++) ratings[i] = (int*)malloc(sizeof(int) * numCouples); //Data is read into each array position for(i=0; i<numCouples*2;i++) for(j=0;j<numCouples;j++){ fscanf(ifp, "%d", &ratings[i][j]); //printf("%d",ratings[i][j]); } for(i=0;i<(numCouples*2);i++) free(ratings[i]); free(ratings); Thanks Drew

Member Avatar for Trentacle
0
134
Member Avatar for dyl_ham

This is a school assignment. I have to write a function in my program that opens a file stream and returns a heaped value to the main function. I believe the file opening function works but after it passes the ifstream pointer to the main function, I'm having trouble dereferencing …

Member Avatar for dyl_ham
0
1K
Member Avatar for paranoidSandra

hi there!here's the problem in a nutshell: there are 2 files.the program creates 2 processes: the parent process outputs text lines from the 1st file and for each one of these lines the child process outputs relative info from the 2nd file. e.g. <1st line from file1> <relative info from …

Member Avatar for paranoidSandra
0
119
Member Avatar for SCass2010

Hi everyone, At the moment I'm trying to create a class that contains a DOMNode* pointer, something like this class MyDOMNode { public: MyDOMNode (DOMNode* node) : mDomNode (node) { } bool operator== (const MyDOMNode& rhs) { if (mDomNode == rhs.mDomNode) return true; return false; } bool operator!= (const MyDOMNode& …

Member Avatar for deceptikon
0
158
Member Avatar for Crynix

First things first, I'm relatively new to C++. I'm just finishing up my first semester of computer science and I'm getting the error "Segmentation Fault (core dumped)" while opening a file in my final. I believe the error has to do with pointers and occurs somewhere in the while(!file.eof()) { …

Member Avatar for histrungalot
0
346
Member Avatar for mcjiwe

my_funcs.c: int x = 0; FILE *stockIngredientes = fopen( "C:/Dropbox/Work/ISEC/P/ingredientes.txt", "r+" ); while( fgets( tmp, 100, stockIngredientes ) != NULL ){ ingredientes[x].nome = strtok( tmp, ":" ); ingredientes[x].identificadorNum = strtok( NULL, ":" ); ingredientes[x].quantStock = strtok( NULL, ":" ); ingredientes[x].limMin = strtok( NULL, ":" ); ingredientes[x].consumoMed = strtok( NULL, ":" …

Member Avatar for mcjiwe
0
137
Member Avatar for 9tontruck

Hi guys, I need to parse JSON data from an HTTPS protocol so I downloaded and integrated libcurl into my VS2010. Everything works fine and sample codes work fine when I use "http" protocol. However, a CURL error keeps coming out when I try to read from "https" protocol.... The …

Member Avatar for 9tontruck
0
3K
Member Avatar for coutnoob

Hi all and thanks in advance for your help ! I have a very simple class called circle and i wanna add the ostream << so i can have the ability in main to write cout<<a<<b<<c; the theme is i'm getting many compile errors in the same row eg iso …

Member Avatar for histrungalot
0
344
Member Avatar for Lucaci Andrew

I was wandering what could be the causes of this error message? Like in general. `\\: *stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",frame={addr="0x00402d53",func="Domain::Movie::show",args=[{name="this",value="0x1"}],file="..\\src\\Domain\\Movie.cpp",fullname="e:\\eclipse for c++\\workspace\\lb6-8oop\\src\\domain\\Movie.cpp",line="36"},thread-id="1",stopped-threads="all"` 10x.

Member Avatar for gusano79
0
696
Member Avatar for haris riaz

suppose i got a matrix 0 1 0 0 2 0 0 0 4 0 5 0 2 1 3 4 4 5 0 0 0 3 2 0 2 Select a matching by choosing a set of zeros so that each row or column has only one selected. It …

Member Avatar for histrungalot
0
158
Member Avatar for risen375

Hi I need help with this program. When I run this program, it will not print out the correct kilograms which always displays 0. Please help #include <iostream> #include <istream> #include <iomanip> #include <vector> using std::vector; using namespace std; using std::endl; using std::setw; struct PatientInfo { string name; double weight; …

Member Avatar for histrungalot
0
125
Member Avatar for Z33shan

hello :) i'm looking for an algo to find out all possible combinations of a 2d array entries, wich are (Tasks x Processors). i.e, i have to find out all possible schedules to schedule tasks against processors. numbers of tasks and processors are variable. Suppose : ............P1.......P2.......P3 .................................... T1........3 ........6..........4 …

Member Avatar for raptr_dflo
0
294
Member Avatar for jwill222

#include<iostream> using namespace std; int main() { int Partnumber[15] = {112,130,156,173,197,150,166,113,123,143,167,189,193,117,176}; int Quantitynumber[15] = {12,30,56,17,19,50,66,13,12,14,16,18,19,11,76}; int hashTable[19][2]; int collisions = 0; int index = 0; for(int i = 0; i<15;i++) { index = (Partnumber[i] % 19); hashTable[index] = Partnumber[i]; if (hashTable[index] != 0) { do{ index++ }while(hashTable[index]!=0) } if(index >= …

Member Avatar for jwill222
0
603
Member Avatar for pattilupwned

Hello, I am writing code that mimics the game Mastermind. The computer randomly comes up with a code based on the "colors" RGBOY. The user has ten guesses to guess what the code is. Right now my code displays the secret code at the beginning just so I can test …

Member Avatar for histrungalot
0
177
Member Avatar for saneeha.nust

I am defining the below function in order to calculate combinations .... it works fine on borland... but when i run it on vc++ 6.0, it generates the error "error LNK2001: unresolved external symbol "public: void __thiscall bruteFrce::generate_combination(int)" (?generate_combination@bruteFrce@@QAEXH@Z) Debug/AlgoProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe." …

Member Avatar for histrungalot
0
243
Member Avatar for pattilupwned

Hello! I am writing a program that mimics the game Mastermind. However, I am having trouble getting past the first step. We are using letters as the "colors", a string containing "RGBYO". Each time it goes through trying to get the initial "secret code", it needs to get rid of …

Member Avatar for pattilupwned
0
303
Member Avatar for histrungalot

##I was working on something and saw this oddity, thought I would share it. $ ./a.out in.val = 86.3115158 -> Its a valid floating point number out1.val = nan -> Swapped it and now its a NaN! That's OK swap it back. out2.val = 86.4365158 -> What, its not the …

Member Avatar for histrungalot
0
162
Member Avatar for FraidaL

This is a minor issue that I'm having in a larger program. The program is for factoring a second degree polynomial. The function below is supposed to find the factors, which is does, but let's say a=6, b=1, c=-12 so a*c=-72 and I want the two numbers that will add …

Member Avatar for histrungalot
0
628
Member Avatar for bgx90

This is my first time to try using STL maps. The code looks correct as far as I can tell, but when I try to compile a test file that does nothing but include the header for the class and declare a variable of that class, I am getting compiler …

Member Avatar for bgx90
0
3K
Member Avatar for phorce

Hello, I have 2 vectors, and I'm trying to search/scan the first vector for the second vector. Let's say I have this vector/Matrix: M1 = 0 1 1 0 0 1 1 1 1 0 1 1 0 0 0 1 M2 = 0 1 0 1 Then I will …

Member Avatar for histrungalot
0
172
Member Avatar for SillyNoob

I'm at an absolute complete loss with this. I'm a using a pointer-pointer to "remember" the last node of a linked list so a function in the loop can add another node and then return the address of that new node so it's known for the next loop. Sounds easy, …

Member Avatar for SillyNoob
0
89