67 Archived Topics

Remove Filter
Member Avatar for somjit{}

this is an exam question i failed to answer properly, im trying to work it out. the code i came up with is below, it works ok, but i was hoping if anyone could help in improving it. iv read in various threads in daniweb itself about making a code …

Member Avatar for Adak
0
294
Member Avatar for somjit{}

this code gives the correct result upto size 6 (i'v run this a few times, and 6 seems to be the boundary), although the intermediate steps are all insane! then onwards, from size 7, it returns minimum value 0 /*minimum of an array using recursion*/ #include<stdio.h> #include<stdlib.h> int findMin(int* arr,int …

Member Avatar for somjit{}
0
362
Member Avatar for somjit{}

i was searching for a code to perform binary XOR addition. Exams coming up, and needed to a quick way to create and verify standard array tables. However, i didnt find anything substantial on the internet, so made my own version of it. can anyone take a look and tell …

0
174
Member Avatar for somjit{}

i dont understand the reason why im geting the errors i am with this code... errors with arraylists, also a few other errors like symbol not found etc s.. i corrected the ones i could, but the ones (5 of them in total )im still geting, i dont understand them... …

Member Avatar for somjit{}
0
261
Member Avatar for somjit{}

this code is my attempt at modifying a simple game i found in the book "head first java".. (pg-98 if anyone's interested) the game is about sinking battleships! ... actually... its just about declaring some blocks of a virtual array to comprise a battleship, and the user makes guesses about …

Member Avatar for JamesCherrill
0
241
Member Avatar for somjit{}

this is my code, from the book *Head First Java* ... class Echo { int count=0; void hello() { System.out.println("Helloooo....."); } } public class EchoTestDrive { public static void main(String[] args) { Echo e1 = new Echo(); Echo e2 = new Echo(); // output 10 //Echo e2 = e1; // …

Member Avatar for somjit{}
0
180
Member Avatar for somjit{}

**the code works perfectly, just i got something i dont understand...** i'v been trying to get a hold of recursion and sorting for about 3-4 days now, im getting some of it, but still not happy enough.. i searched for some good code for binary search and merge sort on …

Member Avatar for somjit{}
0
442
Member Avatar for somjit{}

read [here](http://crasseux.com/books/ctutorial/getline.html) that fgets() is bad, although no explanation given... also i think the default getline() isnt in C , is it?? **why is fgets() bad??** also, the page on getline says it takes in char** as the 1st input type... whats a '**'? why is it used?? i couldnt …

Member Avatar for somjit{}
0
535
Member Avatar for somjit{}

i was watching [this video](http://www.youtube.com/watch?v=jTSvthW34GU&list=EC9D558D49CA734A02&index=2&feature=plpp_video) about type conversion and what the compiler does while converting from small byte formats to large byte formats(and vice versa) etc etc, and tried to write a code for it... but seems that function calls in my code are getting completely bypassed... once again, here …

Member Avatar for somjit{}
0
416
Member Avatar for somjit{}

# code to convert any base input to any base output (base limited upto hexadecimal) # ## scanf() works , but gets() stops working from 2nd iteration ## *i apolozise beforehand for the length of this post, i hope there will be someone who'll bear with me :(* **here is …

Member Avatar for WaltP
0
394
Member Avatar for somjit{}

this is a code from the book "the C programming language" by dennis ritchie, but for some reason its not working! #include <stdio.h> #define IN 1 /* inside a word */ #define OUT 0 /* outside a word */ /* count lines, words, and characters in input */ main() { …

Member Avatar for WaltP
0
199
Member Avatar for somjit{}

i want to take the 1st argument from commandline, ie argv[1] and assign it to a `char target[80]` i know im making some very stupid beginer mistakes... but just cant understand what :( this is my code: #include <stdio.h> #include <string.h> void converge(char *targ, char *src); int main(char *argc[],char *argv[]) …

Member Avatar for somjit{}
0
4K
Member Avatar for somjit{}

# problem with code for converting decimal to other bases # when i give any input, a window appears saying "**a problem has occured, windows needs to close**" ![Cprob1](/attachments/large/3/Cprob1.JPG "Cprob1") i cant understand what im doing wrong here. any help will highly appreciated :) this is my code: #include<stdio.h> #include<conio.h> …

Member Avatar for somjit{}
0
175
Member Avatar for somjit{}

im planning to buy a graphics card.. as of now, i have none. iv seen the specs of ATI radeon HD 6670 model, and i like it... but a few queries remain.. mainly compatibility oriented. [B]my system:[/B] CPU- 3.2 GHz AMD Athlon X2 250 2 GB DDR2 800 MHz ram …

Member Avatar for caperjack
0
195
Member Avatar for somjit{}

a few months ago, i was battered by sality, and was waiting for my friend's external hard disk to backup my data, and do a full format. well, I've done all those things now, and have installed kaspersky 2011 internet security suite(the licensed commercial version). Also, as per the instructions …

Member Avatar for somjit{}
0
344
Member Avatar for somjit{}

hi everyone :) i have this question to ask regarding a ONE-USER ANTIVIRUS.. if i have one such antivirus installed in my computer, and then if i reformat my entire disk, then will i be able to reinstall that anti-virus from its cd after iv made a fresh install? thanks …

Member Avatar for gerbil
0
853
Member Avatar for somjit{}

when i click to open ccleaner, or speccy, or picasa from the desktop shortcut... it opens for a few seconds n then a pop up window shows up, saying - "Runtime error! program: C:\program files\speccy\speccy.exe R6002 -floating point support not loaded" i did a few google search relating to this …

Member Avatar for creekside1698
0
321

The End.