15,551 Topics
| |
pl help me to writea program that takes a decimal number and coverts it to both octal and hexadecimal equivalents with two function detooct and dectohex. The out put willbe as under enter a number 456 Num 456,octal710(710)hex1c8(1c8) | |
I need to write a program that will produce a hollow box of stars. the program has to ask the user how many rows/columns, then use a while loop, if statements, etc. to execute it. I was able to get a box of stars but not a hollow box. Any … | |
Hi, Can anyone tell me if i have done these functions correctly; i maybe missing something; maybe thats why im getting segmentation fault!!! #include "listFuns.h" #include <stdlib.h> #include <stdio.h> listADT stringToList(char str[]) /* desc: converts a C string (array of char) into the */ /* corresponding word (list of characters) … | |
/* compiler used: */ /* simple application to generate basic arithmetic operations */ /* March/3rd/2006, John Bofarull */ #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<time.h> #define RAND__MAX 4294967295 #define OPS 40 /* how many operations per file */ /* poke about these 8 constants to harden or soften tests */ #define SDL 4 … | |
Hello. I am looking for a c library that emulates the double data type (64bit) with integers (32bit). it should have basic arithmetic functions like add, sub, mul and div. already searched the web, but no luck so far. hope you can help me, thanks. | |
Hello, i am developing a software for wordCount; i have done all the functions neccessary; I get segmentation fault when i try and run this : int main() { char* str = (char*)malloc(100); str[0] = 'T'; str[1] = 'e'; str[2] = 's'; str[3] = 't'; str[4] = 0; itemType item … | |
I use cin.get to pause the screen so i can display my data on the screen, cin.get() pauses it good on the first try. Basically if you hit "enter to continue" the loop works great with no jumping over the cin.get(). However, if you hit any other keys on the … | |
Hi I want to make my form transparent, now that is easy..but there is one region in the form "a tpanel" which I do not want to be affected by the transparency. In other words I want it to stay fully visible no matter what the alphablendvalue of the TForm … | |
I want to merge 2 linked list into 1. Is the code below ok? Can you Check please? [code] LIST Merge_List(LIST P,LIST Q) { HEADER h = P; NODEPTR ptr2 =Q; NODEPTR ptr1 = P; NODEPTR prev=P; NODEPTR temp=NULL; /* Second List Pointer */ while(ptr2 != NULL) { /* First … | |
You know glVertex2f(), glVertex3f() and glVertex4f() functions have upper and lower boundaries of -1.0f and +1.0f. And, can you tell me what boundaries[INDENT]glVertex2d(x, y); glVertex2i(x, y); glVertex2s(x, y);[/INDENT]x and y parameters have for the functions above? And one more thing... What is the 4th parameter of glVertex4?() is for? | |
Hi I have FC4 installed on my machine. I am using Evolution as a mail client. I have to write a plugin for Evolution 2.2.2 in C language. Can you please tell me from where can I get an example plugin for Evolution 2.2.2? Or can you tell me what … | |
I wanted a pragram in C showing the working of various CPU scheduling algorithms like SJF, Round robin.priority etc. | |
hello every one, I am allocating memory using malloc library function, In oredr to deallocate memory we have to use free or realloc library functions.But I want to deallocate memory with out using free and realloc library functions, any body has the logic for that code please help me, it … | |
Can someone give me an example on how to listen on multiple ports with Winsock? I have been trying for hours with no luck.. | |
Hi all, I'm having a prob with loading a file into an array. I'm fine with opening the file but when it come to the fread command i seem to be failing as the document size will be variable, so how can i state a file size as "num_of_elements". if … | |
I am trying to write a large file, but it always stops writing when it hits 2GB. (2147483647 bytes to be exact). I know it's not an O/S or disk issue (I'm on solaris) as I'm able to use the mkfile command to create a 3GB file. I'm using the … | |
How do I find out (in a MFC app) if a "window" (or control) is enabled? (Please don't say "just run to program" because I'm looking for a way for the program to know :) ) | |
Hi people, I am making a project in steganongraphy where I need to open a bmp file in C. Can anyone please help me with this because I am not really acquainted with manipulating bmp files in C. Can anyone plz help me in finding a code for this. Also … | |
I know this is a noob question but where do i put my own code in this menu code for windows. [CODE]#include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "WindowsApp"; int … | |
Hi, I am working on a project that finds of the data cache behavior of a given c program containing loops. It calculates the cache hit ratio. Anybody having realted code please post it | |
[COLOR=Green]1 John US [I]1234.00[/I] 2 Jessica Alba United Kingdom [I]23789.00[/I] 3 David UK [I]12.00[/I][/COLOR] Suppose i've this data in my txt file. How am i going to scan the file to get the deposit field(the one in italic) for each user? Thank you... | |
Hello.. I've a question. Let say i've this in my txt type file with id field, name field, address field and deposit field :- [I]1 Jessica Simpson United Kingdom 5687.900000 37 Jennifer Anniston United States 7659.000000 4 Brad Pitt United States 87549.000000 9 Mike Shinoda United States 999865.000000[/I] How can … | |
Hello guys. I'm capturing the keyboard input using the class below. And I have no problem doing that. What I wanna ask is how to understand if a key is pressed, released or being pressed. Let me explain more... When ever any key is pressed the member function GetData() returns … | |
Hi all, I have a problem with my implementation of a unix shell, I'm hoping someone can point me straight... In my shell program, I collect and parse a user's entry from the command line and dump it into an array like `getopts()`. I then call `fork()` and `execvp(args[0],args)` (`(i.e. … | |
I must be missing something here. I am having trouble when I try to get an input. The numbers work fine, but once you get the correct answer, the area: [CODE]void tryanother() { char yorn; printf("Would you like to try another one? (y/n)\n"); scanf("%c", &yorn); if (yorn == 'y') getnum(); … | |
I need to write a program that takes in the values to a 4x5 two dimensional array of integers,then searches the array for values that are less than 0(zero)and displays these values along with there row and column indices.. Anyone have any ideas...newbie | |
Hi, I want to write a function that coverts a double number into its rational form. For example if the input number in 4.33 I must get numerator = 433 and denominator = 100. Here is something I tried, it doesn't work because of floating point inaccuracy : [code] void … | |
hello everyone ı have a problem with writing the program #include <stdio.h> int main(void) { char desiredgrade; double score; double currentaverage; double weight; printf("Enter your desired grade"); scanf("%c,&desiredgrade"); printf("Enter your current average in the course"); scanf("%f,¤taverage"); printf("Enter the final exam weight\n"); printf("as a percentage of the course grade"); scanf("%lf,&weight"); if … | |
how to optimize this code in c? int j=4,k=4; for(i=0;i<1000:i++) { j+ =i: k-=i: } | |
Hi all My program currently loads a bitmap (given a filename) and draws it to a window (win32 application). The problem is that once a different bitmap is loaded and drawn to the window... if the new bitmap is smaller than the old bitmap, the edges of the old bitmap … |
The End.