15,548 Topics

Member Avatar for
Member Avatar for erode

hi, i am very new to pointer concepts.how to declare the pointer and how to use it

Member Avatar for erode
0
91
Member Avatar for kkx123

can anyone help me with this? i can get it to run but when i run it, the matrix doesnt execute correctly...i am writing it in "C"..this should be a 4x4 magic square...thanks~ [code=c] #include <stdio.h> #define R 4 #define C 4 void Same(int []); int main() { int array[R][C], …

Member Avatar for kkx123
-1
115
Member Avatar for boujibabe

I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.

Member Avatar for Lazaro Claiborn
0
264
Member Avatar for Sacky

I was having some compile errors with my code, along the lines of this: [CODE]Error 1 error LNK2001: unresolved external symbol "class _CD3D * __cdecl GetD3DClass(void)" (?GetD3DClass@@YAPAV_CD3D@@XZ) DLLBot.obj[/CODE] After some reasearch i found that the problem was directly due to this line: [CODE]class _CD3D { public: void __stdcall CustomSetTransform(D3DTRANSFORMSTATETYPE State, …

Member Avatar for Sacky
0
86
Member Avatar for fulyaoner

Hi to everyone... I am to write a code about finding the least coins number to make up an amount that is given by user. It is a trivial question for a programmer and I did code well. In Canada, there are 2 more currencies, Loonie = 1$ and Twonie …

Member Avatar for fulyaoner
0
405
Member Avatar for tan_vir
Member Avatar for ~s.o.s~
0
52
Member Avatar for tan_vir
Member Avatar for Luckychap
0
104
Member Avatar for mailsteam

Is there any way to get the cuurent time using C in LINUX. I tried with clock_get time(). But i'm getting the same time for a particular amout of function call. The code i've used is given below. Is there any way to get the time in an higher resolution. …

Member Avatar for Lazaro Claiborn
0
118
Member Avatar for spacecowboy123

Hi All, The program I am writing is throwing up an error when it runs on this line [code] runArray[counter]++; [/code] i am trying to increment the number at location counter in the array. Is this the correct way to do this? Thanks

Member Avatar for ~s.o.s~
0
114
Member Avatar for mailsteam

1.I'm Using Posix Timers. I Would Like To Kno Whether It Is Possible To Fire Two Timers With Same Signum. The Signal Event Function Is Different. 2. Is there any way to send an argument to the signal event function other than signum. the functions i used for timer are …

Member Avatar for mailsteam
0
129
Member Avatar for stringgader

can somebody help us in our problem in C language,, im a frend of stringgader,, this is my problem: write an interactive C program that will convert a date,entered in the form mm-dd-yy(example: 4-12-99)into an integer that indicates the numbers of days beyond January 1, 1980. If the year not …

Member Avatar for Salem
0
115
Member Avatar for SHWOO

I am writing a program which has these require ments 1.Program must be command-line based and interactive, allowing the user to control its operation by entering commands. 2. ability to accept new data 3. ability to search for specific previously entered data 4. ability to save data to a file …

Member Avatar for John A
0
229
Member Avatar for Savage221

Hello. I'm stuck on a part in my program. Some numbers are adding up properly, others aren't. I assume the problem is that I'm using integers instead of doubles, however, how would you format the following in C? How to describe it, it's like a chain. I have to take …

Member Avatar for Lazaro Claiborn
0
130
Member Avatar for alaaharb

You are to write a numerical base converter. This application will present the user with a menu to select the originating base and a subsequent menu to select the destination base. You will loop through these menus until the user wishes to quit. You are required to break the code …

Member Avatar for thekashyap
0
120
Member Avatar for jnabeel

i am trying to write a program to take a string and arrange in alphabetic order but iam totally fail to do it please help me

Member Avatar for Salem
0
79
Member Avatar for nelly12

this is the code( not a complete code) [code=c] int master(int argc, char *argv[]) { int slaves_count = 0; m_host_t *slaves = NULL; m_task_t *todo = NULL; int number_of_tasks = 0; double task_comp_size = 0; double task_comm_size = 0; int i; xbt_assert1(sscanf(argv[1],"%d", &number_of_tasks), "Invalid argument %s\n",argv[1]); xbt_assert1(sscanf(argv[2],"%lg", &task_comp_size), "Invalid argument …

Member Avatar for thekashyap
0
105
Member Avatar for Marauder_Pilot

Alright, here's what I'm working on now. It's supposed to go through an inputted list of words, pick out actual words and create a numbered list of them, then, where it finds a number in the list, go back in the list from that number, replace it with a word, …

Member Avatar for underjack
0
143
Member Avatar for stringgader

hi, nu member hir, just hav some question regarding this output: [code] 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 [/code] numbers that are alligned with 1 are 3 5 7 9 1 3 5 7 9 these are the middle numbers... does anybody know how to do …

Member Avatar for stringgader
0
280
Member Avatar for nayrb

I have 3 files that i have included in a project(class,implementation,program) The program will not compile. it says system can not find specified file. Should i save all these files in the project folder or ... . It's my first time using project to write a class and all that.

Member Avatar for thekashyap
0
94
Member Avatar for ctrohana

Hi all, I need ur help.. Actually I have to read the data file which containing character and digits. I need to converts some characters into digit. The data file is like: A11111 B22222 B33333 B4444 A55555B66666 B77777 So far my programming is like this: [code=c] #include <stdio.h> #include <stdlib.h> …

Member Avatar for Salem
0
129
Member Avatar for flageolet

Hi I have a sequence that I want to put into a seperate function: The variables I want to take into that function and back to the main function are declared globally. declaring the function and the testing variable: [code]void sanction (); int test[10];[/code] my main function: [code] int main(int …

Member Avatar for WaltP
0
116
Member Avatar for daddeh

hi am new member here... can anyone give the code of this..i've tried to figure out the code to finish this but i cant......pls help me..... here is the output of my case study Enter amount of Loan: 5000 Enter Interest: .10 Enter terms(month):10 550 445 440 435 430 425 …

Member Avatar for WaltP
0
100
Member Avatar for SHWOO

I am coding a class project where I will have a basketball league. The league will include 3 divisions and each division will have 5 teams. Each team will have a number of players and one coach. I must have 5 seperate classes. I already have two classes called person …

Member Avatar for Lazaro Claiborn
0
240
Member Avatar for Shaabangbang

Hello, my prof gave us a problem from the ACM programming contest, we are supposed to write a program that takes a compressed file as input and generates a reproduction of the original uncompressed file as output, the compression scheme requires making a list of the words in the uncompressed …

Member Avatar for Shaabangbang
0
145
Member Avatar for mapaputsi

Can anyboby help me i really dont get the feeling of big o notation, i just want to understand it.

Member Avatar for ~s.o.s~
0
158
Member Avatar for fightfox06

ok need a bit of help. got a program to set up football league table and input all the scores etc etc just tryin to figure a way to add scores and that from there, also the display code seems a bit messy anyway i can put it into a …

Member Avatar for WaltP
0
1K
Member Avatar for donaldunca

I have some problem with linked list FIFO(first in first out). This is my code: [CODE] typedef int datatype; typedef struct node *nodep; struct node *first,*last,*p; struct node { datatype data; nodep *next; }; void create(); void list(); void create() { char *tl; do { p=(struct node*)calloc(5,sizeof(struct node)); p->data=random(100); p->next=NULL; …

Member Avatar for mathematician
0
205
Member Avatar for endsamsara

Hi, How can I open a file input.txt with the form and divide its info in differents arrays __________ n word word word abcdefgijl ijklmnñov wordxvvc ___________ n is a number, that tells me the number of words that follows here n = 3; i only know the number untill …

Member Avatar for WaltP
0
162
Member Avatar for SHWOO

I was given an assignment to write a recursive function to print a diamond comprised of astrisks (less the dashes) such as: ---* --* * -* * * * * * * -* * * --* * ---* The parameter is the number of astricks in the largest row. I …

Member Avatar for Narue
0
200
Member Avatar for RisTar

I need to create a function the gets a source string pointer and a destination string pointer , so if the source string will contain - "aaaabbbbbbcccdd" the function will return a destination string that contains "4a6b3c2d" This is my code , but its not working and for some reason …

Member Avatar for ~s.o.s~
0
132

The End.