15,550 Topics

Member Avatar for
Member Avatar for Scoobs

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 …

Member Avatar for iamthwee
0
71
Member Avatar for minorityreport

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) …

Member Avatar for Narue
0
251
Member Avatar for bofarull

/* 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 …

Member Avatar for bofarull
0
293
Member Avatar for shlinky

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.

Member Avatar for shlinky
0
150
Member Avatar for minorityreport

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 …

Member Avatar for Narue
0
84
Member Avatar for chelo77

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 …

Member Avatar for Narue
0
223
Member Avatar for shakoush2001

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 …

0
71
Member Avatar for thehakan

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 …

Member Avatar for Narue
0
119
Member Avatar for AhmedHan

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?

0
92
Member Avatar for neeludhiman

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 …

Member Avatar for Salem
0
84
Member Avatar for avik1612

I wanted a pragram in C showing the working of various CPU scheduling algorithms like SJF, Round robin.priority etc.

Member Avatar for Salem
1
160
Member Avatar for chaitanya.b

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 …

Member Avatar for SpS
0
150
Member Avatar for osean

Can someone give me an example on how to listen on multiple ports with Winsock? I have been trying for hours with no luck..

Member Avatar for osean
0
564
Member Avatar for crws416

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 …

Member Avatar for crws416
0
162
Member Avatar for winbatch

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 …

Member Avatar for winbatch
0
192
Member Avatar for atrusmre

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 :) )

Member Avatar for WolfPack
0
130
Member Avatar for ani_manit

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 …

Member Avatar for WolfPack
0
80
Member Avatar for hak

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 …

Member Avatar for bumsfeld
0
200
Member Avatar for narsimha.ram

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

Member Avatar for Salem
0
102
Member Avatar for squall8985

[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...

Member Avatar for Narue
0
252
Member Avatar for squall8985

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 …

Member Avatar for squall8985
0
204
Member Avatar for AhmedHan

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 …

Member Avatar for WolfPack
0
392
Member Avatar for joshuatree

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. …

0
81
Member Avatar for jhdobbins

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(); …

Member Avatar for Ancient Dragon
0
238
Member Avatar for egor

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

Member Avatar for dwks
0
104
Member Avatar for vicky_dev

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 …

Member Avatar for vicky_dev
0
129
Member Avatar for bemrag

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,&currentaverage"); printf("Enter the final exam weight\n"); printf("as a percentage of the course grade"); scanf("%lf,&weight"); if …

Member Avatar for 830916
0
373
Member Avatar for rasheed1982

how to optimize this code in c? int j=4,k=4; for(i=0;i<1000:i++) { j+ =i: k-=i: }

Member Avatar for Ancient Dragon
0
135
Member Avatar for apcxpc

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 …

Member Avatar for Ancient Dragon
0
205
Member Avatar for thinhbk1802

Well, I have a small problem with checking the data type input by user. I want to make sure that the data got from keyboard must be "int" type. If User gives us another data types such as "char", "float, etc the program should report an error!!! :!:

Member Avatar for iamthwee
0
135

The End.