15,550 Topics

Member Avatar for
Member Avatar for Ineedhelpplz

Please help me find the endless loop and how to fix it: [QUOTE]blade71(555)% showxbits_2 32 in itox, processing 32 Test Value (b div 16): 2 Value of b: 32 Value of b (# mod 16): 0 [/QUOTE] [CODE]/* * stubs for functions to study * integer-hex conversions * */ #include …

Member Avatar for Gaiety
0
166
Member Avatar for aumi

Hi, i need some help. i have an assignment on "Airline Ticket Reservations System". i have to submit it on 10th August, 2008. I tried but can't solve it. please help me. The question is given below : 1. Consider a new airline agency “BEST AIR” that launches recently in …

Member Avatar for ithelp
0
319
Member Avatar for hket89

Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters associated with them, as indicated by the following table: Digit Letter 2 A B C 3 D E F 4 G H I 5 J K L 6 M N O 7 …

Member Avatar for hket89
-2
501
Member Avatar for smi ensi
Member Avatar for needhelpe

hello! I am having problems with a palindrome program. I have to input an integer between 1 and 9. and then the output has to be: for example if I input 4: output: 1234321 if I input 5: output: 123454321 if 1 output: 1

Member Avatar for twomers
-2
336
Member Avatar for shahab.burki

Hi, Some tough days for me doing a project in network project in C. Now I have seen various sites but found no solution. My question is that how to produce random numbers between 50 to 250 using rand() or srand in C? I am using gcc4. Thanks Shahab

Member Avatar for twomers
0
64
Member Avatar for Gaiety

/* difference between %i ad %d %i reads the value and it recognizes the value as what base it is when we read the value as 023 (base 8) it is 19 (base 10) and 0xa(base 16) it is 10 in (base 10). */ OUTPUT: /* Enter a number:023 Out …

Member Avatar for Ancient Dragon
1
157
Member Avatar for VernonDozier

I've googled this and it looks to me like what I am trying to do is impossible. I'm trying to write a [ICODE]Display[/ICODE]function that can take different parameters and call the appropriate function based on those parameters (i.e. function overloading). I've read that C doesn't allow this, but I figured …

Member Avatar for VernonDozier
0
109
Member Avatar for gmauger

Hi All, I'd like to declare a static array in a header file. Is this possible? I assume there is a fairly simple solution to this, but I have not been able to find documentation on the correct syntax for this. Just to be abundantly clear, I'd like to do …

Member Avatar for gmauger
0
14K
Member Avatar for ingenia

Hi , I am studying C programming.I am suppossed to do a task whic is - if we place an object of any shape or size on a scanner ,the program should foud the pixel of the object placed . Then it should calculate the exact area of the object …

Member Avatar for Rashakil Fol
0
72
Member Avatar for ahaZohan

Hi, I have 2 arrays and i want to put them in one array. array1[10]="hello" array2[10]="you" array12[10]="hello you" How can I do this. Many thx!

Member Avatar for Aia
0
83
Member Avatar for ashok.g15

Why do some code for eg in gstreamer etc use code which has code like struct xxx { int foo; ... .. char arrURI[1]; char data[0]; }

Member Avatar for Tom Gunn
1
943
Member Avatar for macdonald12

Hello all, I'm trying to make a program in C, but it's actually the algorithm that's giving me hell. The goal is to create a program that calculates and displays the [I]total number of end-locations[/I] (all locations, including similar ones) an object can reach in a 2d board (grid), using …

Member Avatar for SVR
0
183
Member Avatar for siggivara

I've made this rather messy method that is supposed to split the message parameter (max 160 byte) into 60-byte strings if it is larger than 60 bytes. The message is always between quotes so I also want to ignore them and just get whats between the quotes. Example: "Hi there …

Member Avatar for siggivara
0
193
Member Avatar for shahab.burki

Hi, I am doing network programming in C. I want to send Hexadecimal data between client and server. But stuck how C handles Hexadecimal values? I would like to put and example. I am having a variable ACK_CODE 0*81. Now want to send it. Since the send call can only …

Member Avatar for gerard4143
0
137
Member Avatar for noble3ad

Hello all, I have written a program that stores randomly generated numbers between 0 and 19 into an array of 100 elements. I create a frequency array of 20 elements that shows the frequency of each number and print it's histogram. Now, I'm suppose to increase the frequency array by …

Member Avatar for mevanga
0
2K
Member Avatar for ritesh chandora

actually I am new comer in C programming environment. The general C language has been completed by me. I want to learn visual or hardware level programming but I have no reference for that. anyone who knows good book, link, or any material related to visual or hardware programming. than …

Member Avatar for ritesh chandora
0
127
Member Avatar for hket89

Could Someone tell me whats the diffrence between call-by-value with call-by-refference?

Member Avatar for BestJewSinceJC
0
170
Member Avatar for moneeka

1. Develop sigma and pie bonding and anti bonding molecular orbitals of 2s and 2p Using C or C++ programming language. Expected Outcome: I. Shape of molecular orbitals must be known in depth. II. Proper assignment of bonding and anti bonding molecular orbitals should be stated. III. Proper computer program …

-2
55
Member Avatar for makymakaru

Is pass by value and call by reference the same? I mean i know theres no call by reference in C but there is similarity int he output of the two isn't it? why do we use call by value and pass by value? what are its uses?

Member Avatar for Tom Gunn
0
102
Member Avatar for geoffy0404

im just so stressed and having a mind block.. i have code please help [CODE]#include <stdio.h> /*pre-defined processor statements*/ #ifndef __OPERATION__ #define __OPERATION__ #define TOTAL 0 #define ADDITION 1 #define SUBTRACTION 2 #define MULTIPLICATION 3 #define DIVISION 4 #define MODULAR 5 #endif int main() { /*assign the variables*/ int num1 …

Member Avatar for Aia
0
126
Member Avatar for Ineedhelpplz

I have already completed my hex to integer conversion function which works properly with the provided driver. However, my integer to hex function gets stuck in an infinite loop and I have no clue why. The red section of my code is the function which is giving me problems. Everything …

Member Avatar for Ineedhelpplz
1
380
Member Avatar for ammalu

please help me to develop a program in C for the given problems? 1. Read the string and print the first letters of word? 2. Read the array elements and find the greater and smallest after sorting it? 3. Read the string and print the digits and vowels ?

0
49
Member Avatar for Sapreaver

I have been coding for a little bit in VB mostly and decided to try C right all is dandy until I try using a function I am getting a conflicting types error in function encrypt here is my beautiful code [CODE]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) …

Member Avatar for Sapreaver
0
5K
Member Avatar for Dlearner

Hi , I want to know, how to implement vtable in C. This is achieved through virtual functions in C++. I feel we need to do what c++ compiler internally does, But i am not sure on the entire implementation. Thanks.

Member Avatar for Dlearner
0
5K
Member Avatar for popcorn99

I made a simple program: [CODE] #include <stdio.h> int main() { printf("Please enter a value: "); int uservalue; scanf("%d", &uservalue); printf("The value entered was: %d", uservalue); return 0; } [/CODE] As you probably already know, this program has many faults. The ones I found are: 1) The program malfunctions weirdly …

Member Avatar for dkalita
0
87
Member Avatar for indianscorpion2

hi i am having a problem with this code.for every input i am getting the same answer 32.any help would be highly appreciated [CODE]/*program to find the factorial of a given number*/ #include<stdio.h> main() { int n,fact; int facto(int ); printf("\nenter the number for which you want to find the …

Member Avatar for sanjeevtanwar
-1
392
Member Avatar for saisrk

Program to identify the colors in a picture. code can be in any language

Member Avatar for csurfer
0
46
Member Avatar for red999

I keep getting this error whenever I stop my program and I am wondering am I freeing memory right. This is my structure and I created a global array named day. [CODE]typedef struct { int hour; int minute; } Time; typedef struct { Time startTime; Time endTime; char subject[20]; char …

Member Avatar for Aia
0
268
Member Avatar for panagos

I have [COLOR="Green"][B]installed NetBeans IDE 6.7.1 and installed the MinGW compiler[/B][/COLOR] for the C/C++ plugin, all was ok until [COLOR="Red"][B][U]i have to use <ncurses.h>[/U][/B][/COLOR] for a project and it doesn't exist. [COLOR="Red"][B]Can you please tell me where to get it and how to install it???[/B][/COLOR] plz...it's for a paper in …

Member Avatar for necrolin
0
258

The End.