Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
60% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~6K People Reached
Favorite Forums
Favorite Tags
Member Avatar for helixkod

I have an XML file that is in this format: <root> Test string <Signature> WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==</Signature> </root> I was able to produce the SHA256 and produced a string by using the following: string CalculateSHA256(const string& input) { SHA256 hash; string digest; StringSource _(input, true, new HashFilter(hash, new HexEncoder (new StringSink(digest)))); return …

Member Avatar for plenty.groover
0
397
Member Avatar for helixkod

I have an xml file that I have to read in, convert all the carriage returns to \x0D and line feeds to \0xA, then call it into a function as a string. So for example my XML file is: <TEST> this is a string </Test> I would want a string …

Member Avatar for helixkod
0
1K
Member Avatar for helixkod

current code: [CODE] void showMedian(int *array, int size) { double middle; double average; middle = size / 2; if ( middle % 2) { average = (*(array[middle]) + *(array[middle + 1])) / 2; cout << "The median is: " << average << endl; } else cout << "The median is: …

Member Avatar for cibaiciao
0
247
Member Avatar for helixkod

Current Code: [CODE] void findMode(int *array, int size) { int array2[size]; int count; int x; int mode = 0; for (count = 0; count < size; count++) { x = array[count]; array2[x] = array2[x]++; } for ( count = 0; count < size; count++) { if (array2[count] > mode) mode …

Member Avatar for supergeek60
0
191
Member Avatar for helixkod

I am having trouble printing onto a JPanel. I am able to print any string that i want to. here my code: [CODE]import javax.swing.JFrame; import java.awt.BorderLayout; import javax.swing.JLabel; public class TestDraw { public static void main(String[] args) { final int WINDOW_WIDTH = 300, WINDOW_HEIGHT = 300; DrawPanel panel = new …

Member Avatar for sillyboy
0
164
Member Avatar for helixkod

I am trying to create random rectangles and ovals. This is what i ahve so far: [CODE]import java.awt.Color; import java.awt.Graphics; public class MyRectangle { private int x1; private int y1; private int x2; private int y2; private Color myColor; //constructor with input values public MyRectangle( int x1, int y1, int …

Member Avatar for helixkod
0
125
Member Avatar for ENG ISE student

I need to do this do while loop but I dont know how to exactly get it to repeat itself I got an error when I tried to compare pointer to integer and thats what i have in the code below, any thoughts as to how this should be done. …

Member Avatar for ENG ISE student
0
94
Member Avatar for helixkod

Here is the error: [CODE] cannot convert parameter 1 from 'int *' to 'int *[]'[/CODE] here is my code: [CODE=cpp] #include <iostream> using namespace std; void findMode( int *, int, int); void selectionSort(int *[], int); int main() { int *numbers; //dynamically allocate an array int elements, //holds the number of …

Member Avatar for helixkod
0
107
Member Avatar for helixkod

i am seeing this error: error C2106: '=' : left operand must be l-value here is the code [CODE]bool swap; int numTemp; char charTemp[30]; int count; do { swap = false; for (count = 0; count < (size -1); count++) { if (array[count] > array[count + 1]) { numTemp = …

Member Avatar for Duoas
0
86
Member Avatar for helixkod

Heres my current code: [CODE] const int SIZE = 100; //constant 100 const int COL = 30; //number of columns int testScores[SIZE]; //test score array char students[SIZE][COL]; //student names array int numTests; //the number of tests char *namePtr; //char pointer int *numPtr; //number pointer int count; //counter numPtr = testScores; …

Member Avatar for Duoas
0
108
Member Avatar for neilyan

ok my teacher wants me to write a program using these instructions : A small airline has just purshased a computer for its new automated reserations system. You have been asked to program the new system. You are to write a program to assign seats on each flight of the …

Member Avatar for neilyan
0
105
Member Avatar for helixkod

here is my current code: [CODE]#include <iostream> using namespace std; int bubbleSort(int [], int); int selectionSort(int [], int); void showArray(int [], int); const int SIZE = 20; int main() { //The array with unsorted numbers int numbers[SIZE] = {23, 44, 2, 6, 15, 70, 45, 80, 46, 30, 0, 11, …

Member Avatar for Koldsoul
0
81
Member Avatar for Benimaru025

Hi This is how my input file looks like and i while loop is sorta messed up, i'm a newbie, can someone give me a lil help? Input file: Iron Man 90 80 70 -1 Captain American 90 80 70 60 -1 Spider Man -90 Phil O'Sophy 72 81 63 …

Member Avatar for WaltP
0
143
Member Avatar for people123

So I am learning arrays, and i was given a piece of code in my book here which basically finds the average, min, and max value of a set of numbers, but the thing i don't understand is, when you are finding out the min and the max why you …

Member Avatar for helixkod
0
92
Member Avatar for helixkod

Heres the part of the code That i have: [CODE] #include <iostream> using namespace std; const int NUM_DIV = 6; //Number of divisions const int NUM_QTRS = 4; //Number of quarters void divisionSales(double [][NUM_QTRS], int); void divisionChange(double [][NUM_QTRS], int); void quarterSales(double [][NUM_QTRS], int); void quarterChange(double [][NUM_QTRS], int); int main() { …

Member Avatar for Ancient Dragon
0
217
Member Avatar for helixkod

Heres the situation: I am taking a C++ course online. I had a PC up until about a week ago when i got a Mac. Now i must do all my work on the only computer i have, the Mac. I turn in my work at the end of the …

Member Avatar for vijayan121
0
174
Member Avatar for mandsmom

Hi, I have never used a forum like this before but I am stuck! I have to write a C++ program that allows the user to enter up to 20 students info. It must include Nem, Exam 1 grade, exam 2 grade, Homework average, final exam average. For each student, …

Member Avatar for WaltP
0
225
Member Avatar for Alethea

heya... can any1 plz help me write this program. write a program that the user is converting from and to base, and also from value. thx

Member Avatar for Narue
0
130
Member Avatar for dasani

I have to print out the numbers -2.3 to 2.9 in increments of 0.4, and then add the poss and neg number EX: -2.3 -1.9 -1.5 -1.1 -0.7 -0.3 0.1 0.5 0.9 1.3 1.7 2.1 2.5 2.9 Sum of negative values: -7.8 Sum of positive values: 12 i have gotten …

Member Avatar for Duoas
0
1K
Member Avatar for helixkod

What i need to do is convert the first letter of ever word into a caps letter. I know that in ASCII the lower case letters are between 97 and 122 and all i need to do it -32 to get the caps version. Now my problem is how do …

Member Avatar for vijayan121
0
194
Member Avatar for helixkod

This is the current assignment: Write a program that determines which of 5 geographic regions within a major city (north, south, east, west, and central) had the fewest reported automobile accidents last year. It should have the following two functions, which are called by [I]main[/I] [I]int getNumAccidents()[/I] is passed the …

Member Avatar for Lerner
0
273
Member Avatar for helixkod

this is my current code: [code] #include <iostream> using namespace std; void celsius(double); //Main int main() { cout << "Now displaying the first 20 fahrenheit temperatures and\n" << "showing the Celsius equivalent.\n"; //Loop for displaying the table for (int couter = 0; couter <= 20; couter++) celsius(couter); return 0; } …

Member Avatar for zandiago
0
96