184 Posted Topics

Member Avatar for somjit{}

code for : Percolation using Weighted Quick Union Find Algorithm. this is a homework assignment. iv made the code do what its supposed to do, and it works perfectly. The only problem im facing now is to model the code structure according to the given API. when i try to …

Member Avatar for somjit{}
0
299
Member Avatar for somjit{}

im learning some algorithms , and trying to come up with a version for Quick find using union find. the algorithm works like : 1. get user input for size of the array (the array holds the data on which quickfind will work) 2. create and initialize the array based …

Member Avatar for somjit{}
0
190
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 kieranrea

> it's the classic stream garbage problem when mixing formatted and unformatted input. is what one of the morderators, deceptikon, had this to say to me when i was having similar problems some time back. you can read about it more [here](http://www.daniweb.com/software-development/c/threads/428244/big-confusion-with-gets) so back to ur code, i modified it …

Member Avatar for somjit{}
0
159
Member Avatar for nitin1

@nitin1 the division by substraction seemed pretty straight forward.. atleast for non complicated cases with small inputs. this is a simple code i came up with just sitting down with a pencil n paper .. #include<stdio.h> int main() { int divsr,divden,i=0,rem=0; divden=30; divsr=5; printf("before division:\n"); printf("divident: %3d quotient:%3d\n",divden,i); printf("now dividing...\n\n"); …

Member Avatar for somjit{}
0
224
Member Avatar for Rizwana Begum.A

basically used to parse a text into smaller tokens, based on the delimiter u provide... [c89 standard strtok](http://www.cplusplus.com/reference/clibrary/cstring/strtok/).. should give u an idea... $ is the delimiter here, the function takes the address of the stringto parse, so NULL probably means your not passing any string to it. and if …

Member Avatar for somjit{}
0
169
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 nitin1

> result= sqrt (number); doesn't sqrt() take argument of type "double" by default?? the book says sqrt() will return non sensical values if given argument of type int? but it seems to work.. so why say that in the book?

Member Avatar for somjit{}
0
174
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 GoldenEagle4444

[QUOTE]PS: I'll be making a nice donation to the cause, in thanks to you for your outstanding bedside manner dealing with a crusty old man who's trying to keep up. [/QUOTE] hey mister goldeneagle4444... im a 20 yr old, n i too had a hard 30 mins keeping with this …

Member Avatar for jamie4445
1
2K
Member Avatar for Teachingmyself

[QUOTE]Battery backup - Prevents losing the data stored in the RAID cache (short term memory) in the event of a power cut. If a battery isn't installed anything not yet written to the physical hard drive will be lost. [/QUOTE] if i have a ups, then will that do the …

Member Avatar for cheaphosting
1
719
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
343
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 happygeek

[QUOTE]But that's the Achilles' heel of the Intel CPU, it doesn't deliver three times the performance of the AMD and so falls behind in terms of the power:cost ratio. [/QUOTE] this goes for even the lower budget processors from intel... iv seen most of my frnds buying the intel dual …

Member Avatar for dogbreath077
0
584
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
Member Avatar for Nosa09

hi nosa :) welcome to the daniweb family.. and sure ull learn a lot here .. enjoy ur stay at daniweb :)

Member Avatar for e-papa
0
69
Member Avatar for salvador01

the AMD one offers better core clock speed as well as external bus frequency, and that to at a lower price. so better value for money. also, motherboards for amd chips also in general offer greater value for money than ur standard intel ones at this range of the budget. …

Member Avatar for ztdep
0
133
Member Avatar for GeoMarine

hi geomarine, for a basic rig, cooling solutions and cabinet choice does not pose much of an issue, but for a gaming rig, where temperatures can get a bit on the high side, you should look for cabinets that offer better cooling. you could try out something the cooler master …

Member Avatar for crunchie
0
284
Member Avatar for lizhiyuan

hi there katokato.. regarding this.. [QUOTE]you can increase speed by having 2 hard drives and putting the swap file on another hdd and have the main os on a primary one.[/QUOTE] so is that the same thing as putting your hard drives in a RAID config? oh and that post …

Member Avatar for somjit{}
0
3K
Member Avatar for susheelsundar

[QUOTE]dhonnobad :)[/QUOTE] haha!! welcome to daniweb bhai!! er.. rather dada :D !!

Member Avatar for susheelsundar
0
97
Member Avatar for Sturdy

hi there sturdy :) im sure u'll learn a lot from daniweb, so keep visiting frm time to time, chances are something new will definitely be there for u to check out each time u visit. im new here as well, n i love this place :) hope u do …

Member Avatar for caisandy1110
0
79
Member Avatar for AntonAL

[QUOTE]Unfortunately, these methods are getting not true MAC address[/QUOTE] try this: go to the command prompt n type ipconfig[COLOR="Green"]<space>[/COLOR]/all this should tell u ur true hardware mac address.. it worked for me, the mac address will be given under something like "physical address".. cheers :) somjit{}

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

[B]Name[/B]: Somjit Nag [B]from[/B]: Kolkata, India. [B]what i do[/B]: i'm a 2nd year b.tech student doing my degree in electronics and communication engg. [B]college[/B]: budge budge institute of technology. [B]school[/B]: Nava Nalanda. [B]things i like[/B]: music, facebook, chatting with frnds and computer hardware. [B]hobbies[/B]: photography,n again..chatting..:) [B]music[/B]: linkin park, u2, …

Member Avatar for somjit{}
0
172

The End.