Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
43% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
4
Posts with Downvotes
2
Downvoting Members
3
3 Commented Posts
~18.0K People Reached
About Me

I am an intelligent, super talented, fascinating, extraordinary, terrific programmer...and I love to lie at times !!!

Interests
Painting my mind...
PC Specs
Thumbs up for Open Source !!!
Favorite Tags

80 Posted Topics

Member Avatar for omGac0W

Your code is terribly indented :S...though it didn't look a starter's code... Anyways, I think you got the wrong brace at [B]line no 71[/B]. Always use [B]int main(void)[/B] as the standard main function call, with [B]return 0;[/B] at the end. Also don't use [B]conio.h[/B] as it is outdated (used for …

Member Avatar for chriswelborn
0
581
Member Avatar for baby_c

You can also declare the structure variable at the main function and pass its reference as argument to the read() function. Just update the read() function as: [CODE]void read(struct matrix*);[/CODE] And use .(dot) operator at main function to print the values and use -> operator at the read() function to …

Member Avatar for Banfa
0
758
Member Avatar for kandarpa

Banfa told correctly, its far better to search for the occurance of // in the string. Here's a program for u... Note that I have considered the conditions and possible inputs given by u. That is I haven't considered inputs like [COLOR="Green"]"This is /my number //34"[/COLOR] ([COLOR="Red"]Single "/"[/COLOR] occurance) etc. …

Member Avatar for deceptikon
0
264
Member Avatar for Dewey1040

Do a "sprintf" to store the command string. Then use "system" call. Also file names given as command line arguments "argv" should start from index 1 to (argc-1). Make the changes and try again.

Member Avatar for kings_mitra
0
102
Member Avatar for chirag_mittal

Modify "input" function argument as (int a[10][10], int b, int c) and call it by input(a, m, n); or input(&a[0][0], m, n); That will do I suppose.

Member Avatar for chirag_mittal
0
434
Member Avatar for manaila

Why are you storing all the characters and then getting the correct one from index, rather than storing the right one alone ??

Member Avatar for kings_mitra
0
194
Member Avatar for abylus187

You need to put a proper logic for finding the number of unmatched character. Try out these changes : 1. Combine the two names to a single one and logic will be much easier to implement. (say in an array 'str3') 2. Change the logic to find the unmatched characters …

Member Avatar for kings_mitra
0
142
Member Avatar for zzou

1. Use if statements for replacing 'z' and 'Z' (recommended). 2. Check for characters falling under required series [Eg. (65 - 90) and (97 - 122) as in your case]. Everything else should be discarded.

Member Avatar for kings_mitra
0
140
Member Avatar for theCompiler

If the points are collinear, the sum of the distances between two pairs of points equals the distance between the third pair of points.

Member Avatar for kings_mitra
0
322
Member Avatar for krabz01

Edit the /etc/rc.d/rc.local file and add a line to run the program with the actual path like : /home/sam/program (where program is the binary name) Otherwise, you can copy the binary to the /usr/bin directory (or a sym link will also do) and add only the executable name instead of …

Member Avatar for \007
0
98
Member Avatar for _avishek

Why are you mentioning the value ${ppd_dbg} for one variable and not for the other {evd_comvar_debug}. Possibly that is making the ifeq statement false. Check it out ?

Member Avatar for _avishek
0
594
Member Avatar for alex1050

Can you please put comments for all the calculation steps you have done. I think you will get your problem solved by yourself !

Member Avatar for kings_mitra
0
124
Member Avatar for khakilang

In my opinion, VMware is definitely far superior among all from a technical point of view as it is having the best feature support and great performance. QEMU, on the other hand, has the advantage of being a free software. VirtualBox lacks VMware's speed or features... So, one can get …

Member Avatar for Dan Presley
0
383
Member Avatar for gyuunyuu

Definitely, you are doing wrong with pointers. Your statement [CODE]myword[position].word = str; [/CODE] will make all the pointers to point to the same variable, which ultimately holds the last read word after the end of the loop. So, dereferncing any of the pointers (after the loop) will result in displaying …

Member Avatar for kings_mitra
0
111
Member Avatar for Luckychap

Good analysis Adak... But don't you think the thread is too old to congratulate..!!!

Member Avatar for Adak
0
2K
Member Avatar for ajijacobm

U should be much more specific in what projects u r interested in, ur language capabilities, operating system etc. And what have u done in Multimedia/Animation in ur course that u opted for a project in it ???

Member Avatar for LittleCupid
-1
249
Member Avatar for andylbh
Member Avatar for kings_mitra
0
104
Member Avatar for Rahul.menon

There are two different alternate sequences in your output. For the one with "ab", "abcd"....... sequence you can simply use a single character (ch = 'a') in loop like this : [CODE]for (i = 0; i < no_of_times_you_want; i++) { for (j = 0; j < i*2; j++) { printf("%c", …

Member Avatar for Ancient Dragon
0
135
Member Avatar for harikrishna439
Re: gets

Read your post once before posting...if you coundn't get anything from that, how come others make it out ???

Member Avatar for Narue
0
102
Member Avatar for Davish

It is very easy to get your problems solved or doubts clarified with the thousands of knowledgeable programmers waiting to help you here in Daniweb, and that much difficult to get your homeworks done without showing any intention of learning or trying to solve by your own. Good luck !!!

Member Avatar for kings_mitra
0
97
Member Avatar for DemiSheep

For your case, offcourse arrays will be preferred not because of efficiency but in design point of view. Proper use of data structures increases efficiency as well as maintainability of the code.

Member Avatar for jon.kiparsky
0
191
Member Avatar for rahul8590

Though evaluation of expression varies from compiler to compiler, but generally it will be from left to right. The evaluation of logical operation is done as per truth table, which suggests that for OR operation any one operand yielding to true results the expression to be true. So, only first …

Member Avatar for kings_mitra
0
115
Member Avatar for gabblesargh

Hey, what is that ???:| I think not C language.....may be D, E or F... No, seriously !!! what is that ????:confused:

Member Avatar for peter_budo
0
187
Member Avatar for SHENGTON

If you are adding nodes at the head every time and want to print it reverse you can have a double linked list for the purpose, since you will have to traverse backwards. But its far more easy and convenient to add at the end of the list. Though I …

Member Avatar for kings_mitra
0
182
Member Avatar for Anil2447

The program accepts alphabets and maintains the count of occurance of each alphabet in one array (for all 26 letters). But the range of alphabets considered here does not differentiate between lowercase [a-z] and uppercase [A-Z] and thus converts the uppercase entries also to lowercase to make the calculation simple. …

Member Avatar for challarao
-1
105
Member Avatar for gahhon

Its far far better to have an if-else ladder or nested if-else for the purpose (as mentioned by others) But still if you have to use switch, you can go for a nested switch construct like this: [CODE]int x = 5; switch(x > 5) { case 1: switch(x > 10) …

Member Avatar for Adak
0
178
Member Avatar for ganesh_IT

You can try this for three numbers a, b and c : [CODE]printf("\nLargest among the three is %d\n", ((((a>b)?a:b)>c)?((a>b)?a:b):c));[/CODE] But there are other ways too....try to find out !!!

Member Avatar for 0x69
0
88
Member Avatar for madhusingh123

You will get many threads regarding Final Sem projects in the Computer Science forum. Check it out...

Member Avatar for vijeta sharma
0
90
Member Avatar for GMSI
Member Avatar for kings_mitra
-1
554
Member Avatar for skiabox

Yeah, a higher data type will solve the problem for you... Anyway you have done a mistake in the code. Your for loop counter should start from (x-1) and not x, as the value of x will be one more due to the last "x=x+1" statement at the do-while loop. …

Member Avatar for kings_mitra
0
103
Member Avatar for potato4610

I think your problem is with having the functions in different files...right ??? So, post your code for the main function and the two max-min functions and we will help in the multiple file issue as the next step, only when you post your effort. So, go for it...Best of …

Member Avatar for kings_mitra
0
190
Member Avatar for ellenski

As a simple solution you can try adding a flag for the purpose.... Add a global variable like : [B]int found = 0;[/B] and update its value once member is found. [CODE]if(t->data == num) { printf("\n\n The number is found."); found = 1; }[/CODE] and udate the Case 2 as: …

Member Avatar for ellenski
0
111
Member Avatar for okwy

Check with this thread: [URL="http://www.daniweb.com/forums/thread182010.html"]http://www.daniweb.com/forums/thread182010.html[/URL]

Member Avatar for kings_mitra
0
122
Member Avatar for westony

AD, I suppose that is tripple pointer only... The last one indicates the notation of the cells, like menu-1 pointer-1, menu-1 pointer-2 and so on. Westony, why dont you try to frame the main function by yourself. Just simplify your task... Send the root address(indicated by "All" in your diagram) …

Member Avatar for kings_mitra
0
87
Member Avatar for evinkeating
Member Avatar for evinkeating
0
889
Member Avatar for dgrandfromage

I suppose you are already aware of file read/write operations in C. You can simply put condition in the while loop which you are using for reading the file line by line, and print only the particular lines you want... Post your efforts for any help...

Member Avatar for kings_mitra
0
61
Member Avatar for Akash Mujumdar

Add the MinGW install path to the PATH environment variable. I suppose you are using Windows for your development. Then, right click [B]"My Computer"[/B] and go to [B]Properties->Advanced->Environment Variables[/B]. Add the MinGW installation path by editing the PATH variable. [COLOR="Green"][B]Ex:[/B][/COLOR] Add [COLOR="Red"][B]";C:\MinGW\bin"[/B][/COLOR] at the end of the existing [B]PATH[/B] if …

Member Avatar for UncleLeroy
0
165
Member Avatar for kings_mitra

Shouldn't there be an indicator for the old threads that are bumped up to the top of the list only due to a fellow post ??? Though the date(or time) is already mentioned below the thread title, it generally get unnoticed and many used to post on it again. What …

Member Avatar for ~s.o.s~
0
311
Member Avatar for pawan_sharma777

Yeah, you have done something with your assignment...now ask your doubts...!!! Suggestions : - Make the changes as AD told. - Use fgets instead of scanf for accepting the telephone number as a srting. - Don't use getch(), it is out of date. Use getchar() instead. - Use code tags …

Member Avatar for Ancient Dragon
0
209
Member Avatar for SHENGTON

You are passing only 'n' (the total number) and not the actual integer array to the arguments of the [B]display [/B]function. What you are displaying now is the local array in the display function that contains only garbage. So, pass the array like you have passed in the [B]input [/B]function …

Member Avatar for Ancient Dragon
0
328
Member Avatar for ice_cool

Follow what AD has told. I just wanted to add up a bit more things... - Same as AD's second point you you can remove the variables in line no 21 and declare it inside the [B]converC[/B] and [B]converF[/B] functions as they are only use locally. - The checking you …

Member Avatar for ice_cool
0
166
Member Avatar for largedimples

I think you can use [B]gcc[/B] for the purpose along with flex... Check out the links below: [URL="http://alumni.cs.ucr.edu/~lgao/teaching/flex.html"][COLOR="Red"]Link1[/COLOR][/URL] [URL="http://dinosaur.compilertools.net/"][COLOR="Red"]Link2[/COLOR][/URL]

Member Avatar for gusano79
0
88
Member Avatar for sabalksj

Are you short of words or expressions or you can't type or the keyboard is not working or just not having enough time to properly ask your doubt's :icon_exclaim::icon_exclaim: And you are thinking that we are having a lot of spare time to not only solve and answer your questions …

Member Avatar for nateuni
-2
88
Member Avatar for shirmaster

Change your logic to: [B]if (out_minute < in_minute) then minute = 60 - (in_minute - out_minute) and hour = hour - 1;[/B] You can better have one single function call for your time calculation, rather than calculating minute and hour separately...

Member Avatar for kings_mitra
0
154
Member Avatar for dy/dx

First of all, if its an already build project then further builds are going to give that message to you. So you need clean it with the [B]"Clean Project"[/B] option and then can build it again. Anyways, if you have done any changes to any source code then build option …

Member Avatar for kings_mitra
0
184
Member Avatar for libathos

Try the [B]system [/B]function call... It takes strings (your command) as arguments to it and runs that command at the console. So for your purpose, you can try this... [CODE]system("pwd >>file.txt");[/CODE] So, [B]pwd[/B] command will get the current working directory and >> will redirect the output and append it to …

Member Avatar for kings_mitra
0
128
Member Avatar for fizzle

First of all, you have taken the search string wrong... It will be [CODE]char SearchText[]="#!/bin/sh"; // not "#!/bin/ash"...right?" [/CODE]...a silly mistake !!! Second thing is, still it wont work as fgets is taking \n together with the string you are reading as one line from the file. So, your [B]MainText[/B] …

Member Avatar for fizzle
0
166
Member Avatar for Shikhin

Hi Shikhin, Though it should not be a problem in searching for a bubble sort algorithm, but I am happy you tried it by yourself. Change the for loop as: [CODE]for(i=0; i<10; i++) { for(j=0;j<=9-i; j++) { if(a[j-1]>a[j]) { swap(&a[j], &a[j-1]); } } } [/CODE] I think your code will …

Member Avatar for Shikhin
0
92
Member Avatar for rapids79

I have not gone through your full code. But u can implement timeout for sockets using the [B]"setsockopt()"[/B] function as below : [CODE]struct timeval tv; tv.tv_sec = 60; /* 60 Secs Timeout */ setsockopt(sockid, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, sizeof(struct timeval)); [/CODE] This you can do after your call to [B]"recv()"[/B]...

Member Avatar for rapids79
0
267
Member Avatar for cktbrd

You can use string functions to get the substrings for each part of the time and convert it into integer to store in your variables. Try this out: [CODE]ptrToYourStr = yourStr; for(i = 0; i < 3; i++) { time[i] = atoi(strndup(ptrToYourStr, 2)); //Taking the substring and converting to integer …

Member Avatar for kings_mitra
0
270

The End.