15,551 Topics
| |
Hi. I have this codeline: [CODE=c]fprintf(file, "The\necake\nis\na\nlie");[/CODE] When I compile and run in Linux it outputs nicely like so: The cake is a lie but when I compile and run in Windows (Vista), using cygwin, the newline doesn't work and output is like this: Thecakeisalie Anybody have an idea why? | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
/* 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 … | |
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 … | |
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 … | |
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 … | |
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! | |
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]; } | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Could Someone tell me whats the diffrence between call-by-value with call-by-refference? | |
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 … | |
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? | |
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 … | |
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 … | |
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 ? | |
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[]) … | |
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. | |
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 … | |
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 … | |
Program to identify the colors in a picture. code can be in any language | |
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 … |
The End.