15,540 Topics
| |
hey everybody can anyone helps me, please? i must program a projekt but i donĀ“t know how i do it. the projekt: Write a program to convert from 12-hour time format to 24-hour time format. The 12- hour format has the form hours:minutes followed by either A, P, AM, or … | |
Hello to everyone! or should I say, "Hello World"? I am new to C and new to this forum, and this is my first post. I wrote a simple C program which I called: isitprime.c and generated [B]isitprime.exe[/B]. I can call this program [B]isitprime.exe[/B] from the command line with an … | |
my program creates a file then copies a file into the file created then i can copy another file into the file created turning it into one bog file i am having troubles when coming to extracting the exact file, can anyone suggest anything on how about to achieving this.? … | |
int a=10,b; b=(a>=5)?b=100:b=200; printf("%d",b) why does the output shows as 200? Plz explain | |
hi i want to create a program which will be working like a agenta,meaning a user will fill in a form with an action he wants to perform and the time he must do it and my program should pop up a window which will be trigered by his computer's … | |
#This is a homework assignment# I need to calculate how many seconds old I am in C. I'm thinking that I can take my birthday as user input and convert it to a date with strptime. I then would like to take the present date and put both it and … | |
Construct a C program that will accept up to 3 digit integer number and display the hundredth's digit, tenth's digit, and one's digit. Example: Enter integer number (maximum of 3) : 143 Hundredth's place : 1 Tenth's place : 4 One's place : 3 | |
hey guys ive made a project in vs2010 that has a hardcoded (int val; val=800000; in main) amount set at start , the amount is 800000 (800k) i gave it an int type , and it works all well but when i try to run it in the anicent turboc … | |
to find the size of image by knowing the height and width....and by knowing the pixel depth...any solutions plz help..... | |
hi if i copy a copy file into another file does it equal 2 files with 2 eof or does it become 1 file ? | |
Hi, i am working on a project that involves converting 8-bit hex numbers into integer. Firt, I have to say that my hex number is not a number right now, it is only a bunch of characters. for example: int d; char code[9]; code="FFFFFF01"; d=strtol(code,NULL,16); when I try to printf … | |
i am new to programming............i just want to create a linked list program plz check for error for me [code] #include<stdio.h> #include<conio.h> #include<malloc.h> void insertAtEnd(int no); void insertAtBegin(int no); void insertAtPos(int no,int pos); template <span= id="IL_AD" class="IL_AD">Display</span>(); <span id="IL_AD5" class="IL_AD">struct</span> LinkedList { int num; struct LinkedList *next; }; typedef struct … | |
Hi, I need to write a program to open a file in usb mass storage devive(pendrive) without using mount point.I used libusb API to open the device but how to open a file in that without knowing the mount point.Any API functions are there to open text file in that? … | |
Hello.. i am facing the problem in dynamic allocation to read the data in structure. here is the code. typedef struct { short int fft; short int diff; }symbol; typedef struct { symbol detail; float RE[]; float IMG[]; }receive; fun() { float a[fft_size],b[fft_size]; //here i am allocating the memory for … | |
That had a string delimiter that you could specify. It would be quite useful if you guys could help me remember. It might have been fscanf or might have been a c++ function. | |
i get a undefined reference to get_menu_choice error message but i dont know why ? [CODE] int get_menu_choice( void); int main() { //code// while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) //code// } else if (choice == 2) //code// } if (choice == 3){ puts("you chose … | |
I'm working on a program to score a bowling game. Right now, my terminal says that my program has a seg fault, but I can't tell where. Any other insight on how to help my program do what it's supposed to do would be helpful. I'm still not sure how … | |
Hi, I've been searching all over trying to find an answer to my problem about reading/writing text files. I saw this very old post/code snippet and am wondering if you could help me with my own: How about if I have this input file: 39882 M 7:45 18:16 10 hours … | |
Hey everyone, I've got a question about something called struct tm. I'm not really even sure if it is a string, array, or what, otherwise I would've said that instead of 'something'. I need to know how to use it. I've been searching the internet for the past hour, and … | |
I have a problem. I wrote: [CODE] for(i=0; i<n; i++) { m++; char **exP = realloc(exParam, m*sizeof(*exParam)); char **exT = realloc(exText, m*sizeof(*exText)); exParam = exP; exText = exT; explode = strtok(lines[i], "#"); while(explode != NULL) { exParam[m-1] = malloc(strlen(explode+1)); strcpy(exParam[m-1], lines[i]); exText[m-1] = malloc(strlen(explode+1)); strcpy(exText[m-1], explode); explode = strtok(NULL, "#"); … | |
please give me an example c program that uses an array of records | |
the given input as image.....later we have to find which is the storage format like 4:4:4 or 4:2:2 or 4:2:0.... any suggestions plz.....in C | |
I was finally able to get the html code from web pages. Just to face another problem! Now I have to extract all the hyper links from the html, i was trying to do this with strtok.. no luck at all. Is there any other function that can help me … | |
Good day! we have an exercise on how to create a list but i do not know how to do it without an algorithm. Can you help on what is the algorithm to create a linked list? | |
Dear guyz, I am creating a file archiver/extractor(like tar), using POSIX API system calls in C. I have done part of the archiving bit. I would like to know if any one could help me with some C source code(using above) to create [B]a file header for a file in … | |
Hi, I have started to study the C language, and as anyone, problems are on. I am having problems with the for comand for; I do apologise if I am not using the CODE and the ICODE correctly. here an example: [code] #include<stdio.h> int main() { int i; int b; … | |
hello. i have been studying C++ and i programmed the following. can any one convert this in C language please it is urgent. [code] # include <iostream> # include <iomanip> # include <windows.h> #include <conio.h> using namespace std; void pw (int,int); void swap( double&,double&); void main() { double arr1[10][10],arr2[10][10],arr3[10][10],d,d1,d2,d3,X,Y,Z,x1,x2,x3; int … | |
HI the prgram below request a user to enter 3 character id number and interger age. a function must be used that tells the user how many years to retirement. i must pass the age and print a message in the function. retirement age is 65 for persons over 45 … | |
Hi there, hope you guys are having a good start of 2011. I want to download the html code of any article on wikipedia. I am able to find wikipedia's ip and establish a connection, but how do i reach articles? also i tried using send() and recv(), i was … | |
[CODE] //myMalloc.c #include<stdio.h> #include<unistd.h> #include<stdlib.h> void *newMalloc(size_t vol); void newFree(void *adPtr); void save(); void search(); void *findSpace(); void freelist(); static int buf[12500]; void *newMalloc(size_t vol){ // some code } void save(){ // some code } void search(){ // some code } void newFree(void *adPtr){ // some code } void *findSpace(){ … |
The End.