18,490 Topics

Member Avatar for
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
335
Member Avatar for shahab03

Write a main program for the MIPS machine that uses syscall to repeatedly prompt the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. Use 64 bits for each integer. Valid strings may only contain the characters ‘0’ through ‘9’. All strings …

0
58
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
520
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
404
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
71
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
178
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
132
Member Avatar for Nitricity

Hi ive been experimenting with basic calculations and using scanf to be able to enter an integer, if i give numb_1 a value it will divide and calculate the remainder fine but i cant get it to work by being able to enter a number, it just sits on the …

Member Avatar for Nitricity
2
174
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
15K
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
84
Member Avatar for priteshdesai

I have been learning Programming since the last year. I know C, C++ Java. I want to code some short but interesting programs, which would help me. Anything like magic odd square thing?

Member Avatar for priteshdesai
0
123
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
99
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
982
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
211
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
209
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
154
Member Avatar for Gaiety

Hi, i am presently working on C but there are some situations i need to know the assembly code of corresponding C program. if any can provide some general info of c - assembly it would be appreciated. i have a program called [CODE=C]int main() { printf("Hello,Plz Help\n"); return 0; …

Member Avatar for gerard4143
0
223
Member Avatar for nymph

i want to program the parallel port pins to control the electronic / electrical devices. the pins 2-9 i know can be programmed.

Member Avatar for dhani017
0
121
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
147
Member Avatar for hket89

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

Member Avatar for BestJewSinceJC
0
220
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
64
Member Avatar for soul310
0
58
Member Avatar for neithan

[ICODE] * Don't use system("pause") to pause your program if possible. Use getchar( ) if you are using C and cin.get( ) if you are using C++. [/ICODE] Why is that? A reasonable explanations for those tips would help to learn.

Member Avatar for marco93
0
707
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
120
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
149
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
399
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
69
Member Avatar for nikhil91

Hello...i m nikhil i m student of comp engg. Nw we are doing work on project..but we hav some problems in it..i request u ..plz help me in my project i send u..my project nmae..plz give me fast reply...m waiting for u r reply.... MY SUBJECT QUESTION IS Que: My …

Member Avatar for matome
-4
79
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
94
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
433
Member Avatar for saisrk

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

Member Avatar for csurfer
0
57
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
304
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
289
Member Avatar for jjepoy

I dont really know how the whole program works. ?_? especially the first one. can someone tell me please. [CODE]#include<stdio.h> int dec_bin(int bin) { int x, y; x = y = 0; for(y = 7; y >= 0; y--) { x = bin / (1 << y); bin = bin …

Member Avatar for necrolin
0
150
Member Avatar for Eko

Hi guys , In Visual Studio 2005 I compiled the following code [CODE] int main() { float a; a=0.1; if(a<0.1) { printf("C\n"); } else { printf("C++\n"); } } [/CODE] I was very surprised when I saw the output C++ . I got the warning C4305 :" '=' : truncation from …

Member Avatar for dwayneb
0
5K
Member Avatar for MrNoob

hey i m reading about pe format but there something that i don't get RVA in documentation it says it just like a temp for addressing memory in other sections ok and it's just a DWORD what if there are many temperoralily variables wouldnt that overflow the that RVA value …

Member Avatar for MrNoob
0
576
Member Avatar for Samyx

Hi everyone, My program is doing what it suppose to do, except that it generates a loop with the answer. ... ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 …

Member Avatar for Samyx
1
195
Member Avatar for ujjwalgoody2

the question is: there is no zero in the number system.there are separete characters denoting ones,tens,hundreds, thousands, ten thousands.....etc... I for one(its a vertical line and not 1) n for ten 9 for hundred 8 for thousand r for ten thousand (the actual egyptian hieroglyphys were more picturesque but followed …

Member Avatar for Tom Gunn
0
161
Member Avatar for Kandeep

#include<stdio.h> main (){ double I; printf ("Enter the value : "); scanf ("%lf",&I); while(I<=0){ printf("**Value must be greater than 0.0\n"); printf("**Try again. : "); scanf ("%lf", &I);} WHAT DO I HAVE TO ENTER HERE? printf(" I is %lf\n", I); }[code]Hi! I create a code so that it checks if the …

Member Avatar for csurfer
0
146
Member Avatar for chrisname

Hi :) I'm trying to get the vendor ID using the CPUID opcode. Again, this is inline ASM with C; but it's the ASM that I need help with. The C is fine AFAIK. I'm not sure if it's the way I'm trying to do this, or if my CPU …

Member Avatar for chrisname
0
250
Member Avatar for rakeshbk402

hello. I need to know what is & where actually the usage of const static variable, const volatile variable, static volatile variable is used. thanks, with regards Rakesh.

Member Avatar for MrNoob
0
74
Member Avatar for geoffy0404

[CODE]#define ADDITION = addition #define SUBTRACTION = subtraction #define MULTIPLICATION = multiplication #define DIVISION = division #define MODULAR = modular #endif int main() { int userInput = 0; int userInput2 = 0; int userInput3 = 'A', 'S', 'M', 'D', 'Q'; int sum = 0; // modular is q while m …

Member Avatar for Gaiety
0
241
Member Avatar for sweetjhin

uhm .. Good day everyone. I would just like to ask if anyone knows what code to use in Turbo C wherein the user will input the year and the program will output the calendar for the whole year. Please help me. Thanks a lot :)

Member Avatar for sweetjhin
1
138
Member Avatar for speedy94519

Hello you guys. Im doing this one homework assignment and i really need some help. My question is, How would you write an if statement that excludes the blank space and how would you write an if statement stating that its magenta when its inside the red space with the …

Member Avatar for necrolin
0
178
Member Avatar for haryny

Shortly I have a techincal interview in citrix for senior software engineer position. I have 6+ years exp in C,C++,VC++,C#,ASP,.NET. I heard there would be many rounds of interview. I want to know what would be the main focus areas in theese technical rounds?...like is it programming skills/projects done/OS internals/Network …

Member Avatar for madhrishi
0
97
Member Avatar for speedy94519

Hello you guys. Im doing this one homework assignment and i really need some help. This is the problem: In the grid below, each row/column intersection is a different color. Write an if-statement, possibly including many nested ifs and elses, to assign the right colors to each row and column. …

Member Avatar for BestJewSinceJC
-1
94

The End.