Hello, i was wondering if i could get an opinion on the following code as it is giving me a headache: int counter = 498853097; int k = 0; clock_t start, end; float seconds1,seconds2; start = clock(); for (int i = 0; i < counter; i++) { k++; } end = clock(); seconds2 = (float)(end - start) / CLOCKS_PER_SEC; start = clock(); for (int i = 0; i < counter; i++); end = clock(); seconds1 = (float)(end - start) / CLOCKS_PER_SEC; printf("\n Time 2 [%f] - Time 1 [%f] = %f",seconds2,seconds1,seconds2-seconds1); It's the exact same repetition twice, except one of …

Member Avatar
Member Avatar
+0 forum 2

What is the step count for this in terms of n ? SequentialSearch(a,x,n) { i=n; a [0]=x; while(a [i]!= x) do i = i-1 return i }

Member Avatar
Member Avatar
+0 forum 1

Hi guys, Recently I was struck by a question "[B][COLOR="Red"]HOW MUCH AVERAGE TIME IS REQUIRED TO WRITE A TEST CASE OR TEST STEP FOR ANY APPLICATION. CAN WE HAVE ANY METRICS FOR IT.......[/COLOR][/B] Please Help ! Thanks in advance.......

Member Avatar
Member Avatar
+0 forum 5

For each of the step (even that specific as what editors and other software to use) included into building an application (for me mostly - web (php-mysql-html-javascript)) I really need tips on how to improve them so I could start working really really fast and be able to generate all the required functions in an application like in one day instead of a week. The problem is when I come up with a nice idea, I start to develop it, but it takes way too long and I get bored of it and throw away. How to prevent (well my …

Member Avatar
Member Avatar
+0 forum 18

The below is the main method, the wrapper method, and the array search method for a step recursive method used for finding the index position of the searched string. I am encoutering this problem when whatever search I put in, I get the return value of -1. Why and how is this happening? Thanks! [CODE] public static void main(String[] args) throws IOException { // TODO Auto-generated method stub int n=0, i; //n will store the user input for the number of integers //it is set to its default value 0 //i will serve the purpose of a counter String search=""; …

Member Avatar
Member Avatar
+0 forum 2

If you always thought that OpenStep, Cocoa's base, was limited to Mac OS X, you're wrong. A project called [URL="http://www.gnustep.org"]GNUstep[/URL] is dedicated to creating an open-source implementation of the reusable objects that Cocoa uses. Cocoa, which is the framework that the vast majority of Mac OS X software developers use to create application user interfaces. It uses NextStep's framework to create reusable objects using objective C, which is not dissimilar to C# or Java. Carbon is another application framework that can be used to create Mac OS X interfaces, but the difference is that Carbon is more C-based, using a …

Member Avatar
+0 forum 0

The End.