Search Results

Showing results 1 to 40 of 83
Search took 0.01 seconds.
Search: Posts Made By: Luckychap ; Forum: C and child forums
Forum: C Sep 2nd, 2009
Replies: 3
Views: 488
Posted By Luckychap
You can use {} with arrays only when initializing.

char ba[25][12] = {"item[0][0]", "item[0][1]", "item[0][2]",......, "item[0][11]",
"item[1][0]", "item[1][1]",...
Forum: C Sep 2nd, 2009
Replies: 2
Views: 295
Posted By Luckychap
What you want from us to do from this crapy code. No code tags, no comments.

Please put code tags and comments in your code.
Forum: C Aug 11th, 2009
Replies: 9
Views: 639
Posted By Luckychap
Sorry got no clue.

But may this will help: http://support.microsoft.com/kb/245184
Forum: C Aug 10th, 2009
Replies: 9
Views: 639
Posted By Luckychap
Can you post the code that result in termination.
Forum: C Jul 31st, 2009
Replies: 10
Views: 714
Posted By Luckychap
As far as I know:

Alt + f9 -> just complile
use:
Ctrl + f9 -> compile + run

:)
Forum: C Jul 31st, 2009
Replies: 21
Views: 1,676
Posted By Luckychap
I just wrote this code to give you an idea for how to do conversion manually (In fact this logic can be used in any language).
you may have to change the code as per you requirements: ...

Done...
Forum: C Jul 31st, 2009
Replies: 21
Views: 1,676
Posted By Luckychap
I have no idea about any available method to convert Hexa String to unsigned char. But can also be done manually.

maintain a array for all possible hexa numbers :


char hexa[] = {'0', '1',...
Forum: C Jul 30th, 2009
Replies: 21
Views: 1,676
Posted By Luckychap
Hey all,
Posting code based on assumptions is totally useless.
Why we take pain when post starter is not bothered at all, after so many assumptions posted.
Forum: C Jul 30th, 2009
Replies: 21
Views: 1,676
Posted By Luckychap
What you really want to do? Explain more.
Forum: C Jun 2nd, 2009
Replies: 5
Views: 419
Posted By Luckychap
Based on jephthah comments I tried to write code:


float *save_array(int N) {
float *a,*b;
int i;
// Allocate memory for N floats
a = malloc(sizeof(float) * N);
// Assign...
Forum: C May 19th, 2009
Replies: 4
Views: 760
Posted By Luckychap
Correction:


for(i = 0; i < row; i++)
Forum: C May 15th, 2009
Replies: 8
Views: 539
Posted By Luckychap
Modifying little bit:


void insert(StorePtr *store, CategoryPtr *cPtr)
{
CategoryPtr previousPtr;
CategoryPtr currentPtr;

(*cPtr)->nextCategory = NULL;
Forum: C May 15th, 2009
Replies: 5
Views: 554
Posted By Luckychap
Forum: C Mar 20th, 2009
Replies: 4
Views: 760
Posted By Luckychap
for simplification returned array will be of type:

int array[100][20] ;

or u can modify above function to get variable 2D array:

int** foo(int row, int col)
{
int i;
int** array =...
Forum: C Mar 17th, 2009
Replies: 11
Views: 879
Posted By Luckychap
can't we use hooking mechanism?
Forum: C Feb 22nd, 2009
Replies: 3
Views: 431
Posted By Luckychap
Steps:
1. Draw a object at (x,y) position on screen.
2 Hide the object
3. Calculate new (x,y) position
4. Repeat steps 1-3 until u get the final (x,y) position.
Forum: C Feb 22nd, 2009
Replies: 2
Views: 380
Posted By Luckychap
Are u talking about 'Interrupt Vector Routine' IVR.

Clarify your problem!!
Forum: C Feb 4th, 2009
Replies: 4
Solved: Prime numbers
Views: 438
Posted By Luckychap
In line no 9: for (i=2; i==num; i++)
It should be: for (i=2; i<num; i++)

AND

your logic for prime number is absolutely wrong.

Should be like this:
Forum: C Jan 17th, 2009
Replies: 3
Views: 1,220
Posted By Luckychap
In both the code above head of the list is changed, which is wrong!

Check this out:


liste_t* Insert (liste_t *listptr, int val) {
liste_t *tempHead = listptr;
liste_t *pre;
...
Forum: C Jan 14th, 2009
Replies: 0
Views: 1,684
Posted By Luckychap
A simple graphical year calendar.
Compiler: Turbo C

In main current year is set manually, for more generic way use date function to get current year.
Forum: C Dec 24th, 2008
Replies: 6
Views: 571
Posted By Luckychap
you are doing somthing like this in for-loop:

hold = x[i];

where x[] is an array of int.
Forum: C Dec 24th, 2008
Replies: 18
Views: 1,226
Posted By Luckychap
I was late a posting so deleting this post>
<deleted>
Forum: C Dec 23rd, 2008
Replies: 7
Views: 857
Posted By Luckychap
Some guys from which corner of the world comes in a IT Discussion Community and start with all those things which can have no relation with the actual discussion.

These guys just blame others to...
Forum: C Dec 23rd, 2008
Replies: 18
Views: 1,226
Posted By Luckychap
You want 'glblclrtab' to be an array, but C compiler have no idea what your intentions are. So allocate memory before storing.
As arrays have predefined space in the memory, we do not allocate...
Forum: C Dec 15th, 2008
Replies: 2
Views: 390
Posted By Luckychap
I am posting this, absolutely not to find error in your code(coz its really hard to understant your code) but to tell you, how you can improve your coding style so that the error rate becomes less.
...
Forum: C Dec 13th, 2008
Replies: 6
Views: 571
Posted By Luckychap
I have no idea why his algorithm had taken variable 'hold' as double instead of int?
Forum: C Dec 13th, 2008
Replies: 7
Views: 857
Posted By Luckychap
I want to know who is the mother of C-Language HURRY ITS URGENT.
then we will ask her. who is your husband. :D :D
Forum: C Dec 13th, 2008
Replies: 5
Views: 957
Posted By Luckychap
WOW!!

More assignments for daniweb!!! :D
Forum: C Dec 13th, 2008
Replies: 3
Views: 2,267
Posted By Luckychap
Really!!

We have done our home work, it your time now :D
Forum: C Dec 10th, 2008
Replies: 9
Views: 677
Posted By Luckychap
Forum: C Dec 10th, 2008
Replies: 2
Code Snippet: Analog Clock in C
Views: 3,062
Posted By Luckychap
Here is simple C program for analog clock.
Comipler: TurboC
Forum: C Dec 10th, 2008
Replies: 9
Views: 677
Posted By Luckychap
Forum: C Dec 10th, 2008
Replies: 8
Views: 1,228
Posted By Luckychap
HAHAHA cool catches!!
Forum: C Dec 9th, 2008
Replies: 8
Views: 1,228
Posted By Luckychap
For simplicity just want to add that, loops are just loops. The loop statement is used to execute same piece of code number times.

Further its fully up to you to decide how to loop the number of...
Forum: C Dec 2nd, 2008
Replies: 1
Views: 341
Posted By Luckychap
In line:20 ie

printf("%d",psd.y);


psd is used to access y by dot(.) operator which is wrong because psd is a pointer and to access y you must use ->(arrow operator) ie

...
Forum: C Dec 2nd, 2008
Replies: 5
Views: 1,088
Posted By Luckychap
Forum: C Dec 2nd, 2008
Replies: 5
Views: 1,088
Posted By Luckychap
there is a simple function to calculate a string length strlen(str) defined in string.h where str is the pointer to string of which you want to calculate the length.


#include <stdio.h>
#include...
Forum: C Dec 1st, 2008
Replies: 3
Views: 594
Posted By Luckychap
if u want to print the address of first character in the string it is same as you did with other array. For Ex.


int intArray[3] = {1,2,4};
char *str = "C for Cat";

//This will print the...
Forum: C Jul 9th, 2008
Replies: 4
Views: 461
Posted By Luckychap
#include<stdio.h>
#include<string.h>
float avg(float);
main()
{
FILE *p[2];
int k,students=10,subjects=4,i,j,id_number,date_of_birth,fail=0;
float marks[100],total=0,avg;
char...
Forum: C Jul 5th, 2008
Replies: 3
Views: 482
Posted By Luckychap
What everthing you see can be done with programming( C ). So keep your eyes open when you are using your Windows, Unix Or Linux.

just think what u can add to software, which will be helpful to...
Showing results 1 to 40 of 83

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC