Creating a new stack from an exisiting one.2038 (11/3/2012 2:45:02 PM) comp.lang.java.programmer I have stack like the following..
[1, 4, 10, 20]
What I need to do is pop the top item off the stack such that it looks
like the following..
[1, 4, 10] [20]
Then, starting at [20], I need to be abl... Chad
How would I go about decoding the following http packet dump..543 (6/20/2012 10:32:53 PM) comp.programming This might possibly be off topic, let's say I have the following from a pac=
ket sniffer..
6/20/2012 2:10:21 PM:734]
00000000 9D BB A1 4F 72 6B B4 10 15 1A C1 93 CD CB D1 BF ...Ork.. .....=
....=20
0... Chad
Homework help - File encrpytion/decryption problem...755 (5/8/2012 2:28:26 PM) comp.lang.c++ The following program is supposed to encrypt and decrpyt a file. The professor told use that we have to use XOR (exclusive or) when encrypting and decrypting the file. //Homework 8, question 2 #include #incl... Chad
Precision on size int in C...249 (2/8/2012 11:48:10 PM) comp.programming The output of 2 to the 30 for a signed int in C on my 32 bit machine is: 1073741824 The question is how does my computer get 10 digits of precision? I thought it might be something like 2^K = 10^N N = K Log... Chad
mod calculation2936 (11/13/2011 4:20:12 PM) comp.lang.java.programmer I'm working on a school project. Part of the requirement is to read in the following data file 37259 9819 46363 22666 46161 79934 5693 31416 91459 8272 72792 9493 83603 8372 77842 64629 84792 747 1299 178 And... Chad
Java downcast question140 (10/24/2011 1:40:42 AM) comp.lang.java.programmer Given the following code... class X {} class Y extends X {} class Z extends X {} public class Main { public static void main(String[] args) { X x = new X(); Y y = new Y(); Z z = n... Chad
Why can't I downcast in the following code1442 (10/24/2011 1:22:38 AM) comp.lang.java.programmer Given the following... class X {} class Y extends X {} class Z extends X {} public class Main { public static void main(String[] args) { X x = new X(); Y y = new Y(); Z z = new Z(... Chad
prefix notation question1036 (10/17/2011 3:15:19 AM) comp.lang.java.programmer I'm supposed to write a program that calculates arithmetic expressions using prefix notation. The one example our professor gave us is (+ (- 6) (* 2 3 4) (/ (+ 3) (* 1) (- 2 3 1))) Which evaluated sucessively... Chad
Java casting question546 (10/13/2011 1:27:29 AM) comp.lang.java.programmer Given the following... class X { void f1() { System.out.println("XXX");} void f2() { System.out.println("AAA"); f1();} } class Y extends X { void f1() { System.out.println("YYY"); } } class Z ext... Chad
Array of Integers ?4140 (11/8/2011 7:51:51 AM) comp.lang.c I wrote my blog on Insertion Sort some time back and used words "Array of Integers" on that. I was told by someone that there is nothing like array of integers in C. C has array of objects only. So how do we... sunrise2(598)
mod calculation2936 (11/13/2011 4:20:12 PM) comp.lang.java.programmer I'm working on a school project. Part of the requirement is to read in the following data file 37259 9819 46363 22666 46161 79934 5693 31416 91459 8272 72792 9493 83603 8372 77842 64629 84792 747 1299 178 And... cdalten(976)
C arithmetic question.6054 (1/18/2012 6:32:57 PM) comp.lang.c $cat hunh.c #include int main(void) { long int a = -58; unsigned long int b = 37; a %= b; printf("%ld\n", a); return 0; } $cc -std=c99 -Wall -pedantic -o hunh hunh.c $./hunh 23 ... rubrum(243)
Packet relay server in c549 (1/25/2012 2:18:32 PM) comp.lang.c I need to write a packet relay server which will have the following functionality: 1.It will listen on multiple ports(udp/tcp). Upon receiving packet it will manipulate the packets without knowing anything abo... etothepowerpi(41)
error: initializer element is not constant663 (10/3/2012 1:16:46 PM) comp.lang.c Hello all,
I am currently trying to get started with the code for Chapter 3
'Parsing' in Appel's 'Modern Compiler Implementation in C'. After
downloading the files and fixing some small bugs in it, the ... MyFirstName.MyLastName(522)
Most portable compiler: llvl llc or pcc or gcc rtl?2531 (10/9/2012 12:39:02 PM) comp.lang.c After reading about The history of Unix, portable c compiler, pcc contributed to the dominance of C over other languages because it is available
quickly and cheaply, while maintaining reasonable performance.
... othmana1(6)
Large number libraries/algorithms3631 (10/22/2012 9:11:28 AM) comp.lang.c Does anyone know of an API that will do standard math ops (*,+,-,/,% etc) on
very large numbers (stored in char arrays presumably)? ie The sort of numbers
that have no chance of fitting in even a 64 bit int... boltar20032(164)
Creating a new stack from an exisiting one.2038 (11/3/2012 2:45:02 PM) comp.lang.java.programmer I have stack like the following..
[1, 4, 10, 20]
What I need to do is pop the top item off the stack such that it looks
like the following..
[1, 4, 10] [20]
Then, starting at [20], I need to be abl... cdalten(976)
scope of function parameters2945 (2/5/2013 9:09:58 AM) comp.lang.c I was asked in an interview :
What is the scope of the parameters that are passed to a function inside the function?
For ex : int add (int a, int b)
{
return (a+b);
}
... theemeraldsoul(8)