- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
IT/Network Security Intern at LGFCU in NC
Lead IT University Towers, NCSU
Junior in Computer Science NCSU
Brother/Pledge Master of Sigma Pi Fraternity, Rho chapter
- Interests
- Computer Networking, Neural Networks, Abstract/Theoretical Mathematics, Logic, Philosophy, AI, Beer,…
- PC Specs
- Thinkpad T61, 2.4 GHz Core 2 Duo, 2 Gb RAM, WinXP, CentOS dual boot
I am trying to demonstrate to my class mates the run time difference in using bit-wise and logical operators. I chose to do this by writing a simple (I thought) program that reads 2 ints from the console, and multiplies them two separate times, one using the logical multiply (a … |
|
I am trying to define a 2D array of 1000 by 1000 ints and then test which transversal method is faster (row major or column major). I have this written [CODE] #include <stdio.h> #include <time.h> int main() { clock_t start, end; double elapsed; start=clock(); int array[1000][1000]; int row, col; for(row=0; … |
|
Here's my problem. I'm reading in a string of numbers from the user using the scanner class in the main method. I assign that to a variable "s". I pass "s" to a method that converts the String (let's say its a string of 10 numbers) and trying to convert … |