Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
32% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
5
Posts with Downvotes
4
Downvoting Members
4
7 Commented Posts
0 Endorsements
Ranked #977
~15.5K People Reached
About Me

Eternally Happy go lucky guy

Interests
Programming
PC Specs
Windows XP
Favorite Forums
Favorite Tags

52 Posted Topics

Member Avatar for AnnA.B

What do u mean by "four in a row game" 1)Explain the game how it is.(game rules) 2)Also you can share ur coding and approach for the game.

Member Avatar for joao.jose.520
1
1K
Member Avatar for rickylakhay
Member Avatar for VulcanDesign
0
356
Member Avatar for Dream2code

Hi All, 1)I want to watch a directiory in unix using a shell script. 2)In case any change happens to any of the files inside that e.g new file creation or new directory creation or any file modification we need an automated mail. 3)Mailing part i will take care 4)on …

Member Avatar for Dan08
0
155
Member Avatar for Dream2code

In which path gcc resides in IBM AIX.Due to some change change in my .profile the path variable got changed now i am not able to get the path of gcc. please help me

Member Avatar for Dream2code
0
161
Member Avatar for thakur.ravi26

i dont think that command intrepreter need to be loaded after the os starts. its just an application progam..which can execute other programs..dats it..!!! typing a external command and pressing enter means double clicking it on mouse!!!!

Member Avatar for Salem
0
191
Member Avatar for Dream2code

Can any one suggest me how to read EBCDIC Files (which generally comes form mainframe systems) using C. EBCDIC:Extended Binary Coded Decimal Interchangable Code (not sure about the full form)

Member Avatar for yellowSnow
0
1K
Member Avatar for MrNoob

Why dont you use strstr() fucntion to find the beginning address of the match then get the string length of the 2nd sting.

Member Avatar for MrNoob
0
135
Member Avatar for MrNoob
Member Avatar for MrNoob

sorry for the post..actually i posted it before visiting page 2..so editied it....!! IGNORE THIS.. thanks...!!

Member Avatar for Dream2code
0
230
Member Avatar for Curgol

igot what exactly you want: i think you want to convert your test string into hex code and store that in a file.(encryption) Again decrypt that and read as your previous string form that file. right? your problem: ------------ while converting a char to hex 1 byte takes 2 bytes …

Member Avatar for Curgol
0
2K
Member Avatar for wesduncan

Dear Wesduncan, 1)Your indentation is relly bad.No one will look into your code.Arrange your code properly. 2)Before posting your code describe your problem verbaly along with the expected result and the result you are getting. 3)If possible try to post the required part of the code.No need to mention full …

Member Avatar for WaltP
0
97
Member Avatar for atreyeepal1

its not a place that we can solve your homework problem. still take some hints and show ur effort , the code you have tried so far.Then only you can expect something from this forum. 1)rand() function is used to generate random numbers. [code=c] int y=rand(); int num=(y-1)/y; [/code] then …

Member Avatar for Dream2code
0
154
Member Avatar for exia

when you want to hold integer value in a char..!! use modulo operator to ensure the range in 0-255!! like int a=300; char ch=a%256; so it will store 54 in ch. modulo operator ensures the range...!! why char stores on the range of 0-255 ------------------------------------------------- As an char takes 1 …

Member Avatar for Salem
0
129
Member Avatar for kalodakilla

use break; in the end of while loop to exit from the loop. [code=c] while(1) { int a , b , result; printf("Input a: "); scanf("%d" , &a) ; printf("Input b: "); scanf("%d" , &b) ; result = a/b ; printf("Result: %d\n" , result); break; } [/code]

Member Avatar for Dave Sinkula
0
124
Member Avatar for samli88

Solution:1 ------------- If you have strings consisting of many words like "abc def xyz" use strtok functions (space as a delimeter) to get the words. limitation:if multiple spaces occur like abc def xyz " it wont work perfectly. Solution:2 ------------- 1)read the string charecter wise (one char at a time) …

Member Avatar for tux4life
0
270
Member Avatar for iPKu

include the proper header files.which all header files you are using?

Member Avatar for bbinesh
0
400
Member Avatar for waqarafridi

SHA-1 of a given string??what does that indicate?state through an example please....!!

Member Avatar for Dream2code
0
340
Member Avatar for yasaswyg
Member Avatar for Hiroshe
0
180
Member Avatar for hughesadam_87

use [icode]exit(1);[/icode] to exit from the main program. else use [icode]return (1);[/icode]

Member Avatar for Hiroshe
0
88
Member Avatar for nicenaidu

solution:1 ------------- 1)Do like strstr(mainstring,pattern) 2)until return not NULL.. increase pointer by strlen(pattern) e.g. "i am going am here" 1st pointer point to beginning of 1st am 'am' on the 2nd pass change return of strstr pointer by strlen(pattern). and so on. solution:2 ------------ 1)Do strtok(base_str,pattern) for each iteration...your end …

Member Avatar for Dream2code
0
155
Member Avatar for reggaehista

No problem with your code.Its running fine. But you are not sure what you want 1)The inventory.ini file is opens only for record count purpose.you are not reading any data from the file. 2)The code is not fully complete. As of now its fine.Clarify you requirement and finish the code …

Member Avatar for reggaehista
0
130
Member Avatar for vishalkhialani

Dear Killer Typo, "multi-threaded database administration tool" can you give some ideas/features of your project..!!! e.g the user interface Features and your design architecture so that one can think on that..!! how u managed your tables..data structures you used..memory mgmt...and so on..!! Thanks, DP

Member Avatar for vishalkhialani
0
135
Member Avatar for anuizath2007

[QUOTE=anuizath2007;930308]does anyone know how todisplay the following using a for loop in my program question:if n=5 where n is the ht of the pattern ********* **** **** *** *** ** ** * * if n=4 ******* *** *** ** ** * * SOLUTION I TRIED OUT IS #include<stdio.h> #include<conio.h> void …

Member Avatar for Dream2code
-3
93
Member Avatar for vijayalakshmisn

[QUOTE=vijayalakshmisn;930385]hi, anyone help me with the solution in C program applying file pointer concept[/QUOTE] Mention clearly what exactly you want i.e your program input expected output and also show your approach so that we can help you...!!!

Member Avatar for Dream2code
0
180
Member Avatar for RobBrown

Here is your modifed code...changes are marked ac CC in comments [CODE=C] #include <stdio.h> #include <stdlib.h> int main() { int i; char TC; /* Character variable to count text and load ASCII array */ int TL = 0; /* Counters the number of characters in the entered text line */ …

Member Avatar for Dream2code
0
232
Member Avatar for rcbhat

The real problem over here.Why the code fails. ================================= 1) ++*p++; ==>> ++ (*(p++)) ==> ++ (*k) where k=p+1(note:in k address of p+1 is stored) 2) ++ (*k) means it tries to increment the value at address of k by 1 which is a falure. 3)it should be *(++k) SOLUTION: …

Member Avatar for Alibeg
0
516
Member Avatar for MrNoob

[CODE=C] #include <stdio.h> int copyarr(const int Mainarr[],int Target[], int * end); int copyarr(const int Mainarr[],int Target[], int * end) { while (Target < end) //change need to be done here *Target++=*Mainarr++; //change need to be done here } int main(void) { int const Mainarr[]={1,2,3}; int target[2]; int *end; end=target+3; copyarr(Mainarr,target,end); …

Member Avatar for MrNoob
0
93
Member Avatar for bubblellicious

[QUOTE=bubblellicious;926001]I need that in order to decrypt Vigenere's code. I have to count the distance between the repetitions in a text. My code does find the repetitions but not the distance, and that's why do I want to know, because I've tried many possibilities but none worked.[/QUOTE] Give two strings …

Member Avatar for Dream2code
0
101
Member Avatar for StephNicolaou
Member Avatar for steel dr@gon

Your coding standard is really horrible.anyways two problems found... the fucntions names in prototype and defination were not matching. 1)change menu to Menu 2)change Intialize to Initialize in the function definations [CODE=C] void Menu() //CC-1 menu changed to Menu { printf("\tchoose a task : \n"); printf("\t1] MakeNull \n"); printf("\t2] Insert …

Member Avatar for Dream2code
0
108
Member Avatar for tatyakadam

compile with -I option like tcc -I /tc/include(full include directory path) test.c

Member Avatar for Dream2code
0
97
Member Avatar for Kurt Kubing

I appriciate adatapost for this kind of encouragements. While swaping try call by value and also try call by reference.

Member Avatar for Dream2code
0
128
Member Avatar for cheqmate

If the file is like this in each record u have a namefield and u want to find out name from each record. here is your modified code. comments are marked. file sample: ----------- John smith 23 bbsr John smith 23 bbsr John casio 23 bbsr linga mary 21 wasington …

Member Avatar for Dream2code
0
94
Member Avatar for waqarafridi

Dear waqarafridi, if you use scanf to get a string it will never take spaces so no question of triming. e.g [code=c] char a[10]; scanf("%s",a); //if u enter "hello world" printf("%s",a); //o/p will be "hello" [/code] Its the limitation of scanf. and for gets ..we dont specify the size of …

Member Avatar for Dream2code
0
2K
Member Avatar for waqarafridi

[QUOTE=Ancient Dragon;927162]In C language the fgets() function will trim leading and trailing spaces from words read. It will also skip over '\n'. Text files do not contain '\0' bytes; if your file does then it is not a text file.[/QUOTE] may be you are confused with fread(). fgets will read …

Member Avatar for Dream2code
-1
152
Member Avatar for sal9000

Tell your exact requirement in plain english.Then only we can help you to resolve it. provide following things: 1)Requirement 2)Desired input to the program 3)Desired output and then what is the issue you are facing? Are u able to run this code?if yes then provide stand alone piece.

Member Avatar for sal9000
0
196
Member Avatar for dknoebber

NO PROBLEM WITH THE CODE POSTED BY YOU. only 'P' is in caps in the printf function. thats it. and if u need the resule the move the line 9 to in between 12-13 as suggested by Ancient Dragon. [CODE=C] #include<stdio.h> int main() { float foperand1 = .0725; float foperand2 …

Member Avatar for DoEds
0
195
Member Avatar for karpaklu
Member Avatar for vimalamtwu
0
82
Member Avatar for MrNoob

Find the corrected code.nothing to wierd about this.try to find out values of each elemnts manuall before writing the code. [CODE=C] #include <stdio.h> int main(void) { int num[2][3]= { {1,2,3},{4,5,6} }; int i; int x; int total=0; for(i=0;i<2;i++) [RED] for(i=0;i<3;i++)[/RED] //here i SHOULD BE x { total+=num[i][x]; } printf("%d",total); return …

Member Avatar for MrNoob
0
149
Member Avatar for Para2x

Be clear about your requirement: 1)How many fileds each line will contain. 2)How many lines the file will contain. 3)What all operations you will do after reading data from file After getting these things clear u can design your code. still if u need to read each field den 1)get …

Member Avatar for Aia
0
123
Member Avatar for Dream2code

While we allocate memory using malloc/calloc.That much bytes is reserved by the program.When the program terminates and we didnot free it what happens exactly? How to check memory usage by a program by writeing a C program.

Member Avatar for Dream2code
0
125
Member Avatar for Kurt Kubing

i agree with ancient Dragon , You can call Win32 API . One request to you, while asking for any help reagarding coding please mention the ENVIRONMENT and COMPILER you are using. Below link gives some hint: [url]http://www.codeproject.com/KB/GDI/fontnamefromfile.aspx[/url]

Member Avatar for Dream2code
0
124
Member Avatar for mrestrepo30

> Hi! > I'm just starting to code in C, and I'm trying to read the information in a dat file, to then use it in some calculations. I read the information in the file and then save it in an array. However when I try later to access that …

Member Avatar for Dream2code
0
148
Member Avatar for prashanth s j

'seq' may not work in all environments. Here is the code. [CODE] !#/bin/bash for((j=1;j<=1000;j++));do mkdir subdir_$j 2> /dev/null done [/CODE] to delete again: [CODE] !#/bin/bash for((j=1;j<=1000;j++));do rmdir subdir_$j 2> /dev/null done [/CODE]

Member Avatar for Dream2code
0
199
Member Avatar for anne_1000

if u can do some manual work then 1)Open your Unicode file with notepad and save as ANSI. Then read that file it using C or else in DOS use command:[I]type filename > filename1[/I] Then read the filename1 using C ----------- If your want to develop a Unicode reading tool …

Member Avatar for Dream2code
0
295
Member Avatar for bubblellicious

here is the function which serves your purpose int string_pat_find(char *string1,char *patten); it take 2 arguments: 1st the char string 2nd the string to be found within and retuns the count occruance. Code attached below: [CODE=C] #include<stdio.h> #include<string.h> int string_pat_find(char *string1,char *patten); int main() { char string1[1000]="abcapplesarriveataplacethenifounditappleajajajajajajajajajaj"; char *letter[]={"apple","arrive","aj"}; int …

Member Avatar for bubblellicious
0
120
Member Avatar for shtikk

Hello Dude, Here is the idea presented for you.work it by yourself and let me know in case of any issues. 1)initialize an array with charecters a-z. 2)use rand function with a modulo 26 to get the random charecters on the screen 3)use gotoxy() for the fall. 4)The letters falling …

Member Avatar for Salem
0
121
Member Avatar for Dream2code

Hi All, My requirement is like this.It a part of a software devlopment team as i am devloping a tool its a part of it. Its bit long but my explanation is clear to get it. 1)we need to read a data file using a description file. Usage: programname <description_file> …

Member Avatar for Dave Sinkula
0
445
Member Avatar for ermithun
Member Avatar for Dream2code
0
94
Member Avatar for calicocat

I do agree with TOM GUNN.Its a nice way to do things using structure. Still u can use simple variables. [CODE=C] int *a={2,3,4,5,6,7}; int no_of_variables=6; int value_to_match=2; int counter=0; for(i=0;i<no_of_variables;i++) { if(a[i]==value_to_match) counter++; printf("match variable is a_%d",i); } printf("Total mathch variales found is %d",counter); } [/CODE] NOTE: Here variable are …

Member Avatar for Dream2code
0
95

The End.