15,551 Topics
| |
I am new with allegro.I dont know from where I must study for write pacman with allegro in c.please help first what I must do and from where I can study. | |
Hi, is there a way to avoid the conventional Black Background of C program While its execution? can the fonts be changed or can we include graphics/photos in C so that we can view it during its execution? | |
[U]Which is the best IDE for C?[/U] Currently using Dev-Cpp. I am just wondering if there's any other better IDE around. Eclipse, NetBeans, Dev-Cpp, CodeBlocks or other??? thanks! | |
How to build an array containing all consonants in a string of lowercase text? No consonant should be repeated in the array even if it occurs more than once and print the number of consonants occurring? | |
hi! I have to check file's permissions, but I'm not sure how should I check the [B]g[/B]roup and the [B]o[/B]ther permissions. I'm not sure I did it right for the group and the user. for the other - I guess I have to use the "S_IROTH" flaf. here is my … | |
hello i have a simple client server program in which different paramters are asked by client. i want to use cryptographic techniques like DES, AES, RSA but i do not know how and where to use.... i m doing socket programing first time even programing in linux. so i do … | |
Please, someone explain me why when I compile this code in Dev-C++ (Windows OS) the following error message apears: 'clrscr' undeclared (first use this function) int main() { int c; char d; clrscr(); printf(" Example program for PSC232 \n"); setup(); printf("*IDN?\n\r"); send("*IDN?\n"); printf("RECEIVE...\n\r"); loop: receive(); goto loop; } ps: ignore … | |
#define prn(a) printf("%d",a) #define print(a,b,c) prn(a), prn(b), prn(c) #define max(a,b) (a<b)? b:a main() { int x=1, y=2; print(max(x++,y),x,y); print(max(x++,y),x,y); } output:222342 pls explain how we get output 342 at end | |
Hi, I am working on a small program (in Windows) to control the Speed of a CD Drive. So far I have used some of the IOCTL_CDROM_... and IOCTL_STORAGE... Control codes to control the drive by opening/closing it etc. I have now developed a small piece to also control the … | |
Hello, ive been given an assignment to write a program wich will accept possible titles and rearange them in abc order, now beside that the program should also count how many times a title begins with a certain letter. my question is how, or where do i even start to … | |
Hello, I'm writing a lexixal analyzer on FLEX, and i want to open an #include file. Calling fopen(yytext,"r"); as shown in flex manual http://flex.sourceforge.net/manual/Multiple-Input-Buffers.html#Multiple-Input-Buffers does not open the file, although that the string in yytext has the value "<filename>". Instead, when i use fopen("<filename>","r") the file opens normaly and the … | |
I am doing malloc(0) and then doing strcpy and then reversing, and its working, why?? and if i dont do malloc(0) and then try to strcpy program carashed as expected, but how does malloc(0) making a difference.[code]#include <stdio.h> char* reverse(char *data); void my_Strcpy(char* dest,char* source); main() { char* p_Name = … | |
I'm trying to find the curses.h library over the internet and so far I haven't any luck. Please help me sending the code for Windows OS. Many thankx in advance. jmangu | |
I've got a C assignment to make a "Rolodex" project. I wrote out the whole assignment just so you would understand the scope. I'm just getting going on this. Last week's lecture was about Dynamic Self Referential Lists in C, so I get the concept of what I'm supposed to … | |
Hello Friends, I was just writing a program in C. In this program i was trying to give the rotation affect like the for pie-slices are moving. [CODE] #include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> int main(void) { int gd=DETECT,gm,i=1,count=1; initgraph(&gd,&gm,"d:\\tc\\bgi"); do{ i=count%2==0?2:1; setfillstyle(1,i); delay(500); pieslice(319,239,20,60,100); //A1 i=count%2==0?1:2; setfillstyle(1,i); delay(500); pieslice(319,239,120,160,100); //B1 i=count%2==0?2:1; … | |
Hi, I know the code for this post is quite long, but I thought it would be best to be comprehensive about what i'm trying to do as i'm not exactly an expert in this area of programming. I'm stuck trying to work out how to get windows hook procedures … | |
Hi! I copied and pasted a grapics.h example from the help>index in borland C. When I try to run it the compiler gives me 9 error messages, all going something llike this: Linker error: Undefined symbol _closegraph in module "my file name" here's the example: [code] #include <graphics.h> #include <stdlib.h> … | |
I tried to debug Macro variable but i cannot. I use Dev c++ [CODE]#include<stdio.h> #define TIME 5 int main() { int i=TIME; printf("%d",i); }[/CODE] when I run it, of course it gives correct result. but when I debug, it reports "TIME = not found in current context" | |
I want to make a native win32 program that simply moves the cursor to x=100 y=200 on the screen, and then clicks the left mouse button once. Where do I start? For once, Google got me nowhere. I use VC++ 2010 to compile. | |
I know its silly but once i tried this and output is not what it should be.. [code] #include<stdio.h> #include<conio.h> int main() { int i=0; i=i++; printf(i); } [/code] i MEAN post increment will store a value, say 0 here.and then increment but that value is given to the variable … | |
Hi, I recently started using Linux and have come to find that it suits me better than Windows. I am a newbie in C/C++ programming and my questions are [LIST=1] [*]How suitable is Linux for learning C/C++ programming as most of the books i have come across are based on … | |
My question is how would I implement sending arguments to a program running in the background? Can anyone point me in the right direction? | |
hi guys is it timeconsuming to use memset instead of for? i mean suppose we have an array of int int prime[200000]; we use memeset(prime, 200000, 0, sizeof(prime)) also we can use for(i = 0; i < 200000; i++) prime[i] = 0; | |
please any one give me simple code snippet to perform insert , delete, update, search & display operation using linked list. please help me | |
write a general purpose function to convert any given year into its roman equivalent . the following table shows the roman equivalent of decimals number decimal roman 1 i 5 v 10 x 50 l 100 c 500 d 1000 m eg:- roman equivalen of 1988 = mdcccclxxxviii ---||-- ----||----- … | |
Hi i am looking for program that reads and counts chars, lines(rows), numbers and other characters from file test.txt and puts results on screen. Thank you for help I am not a programmer and dont want to do anything with it just need it now thank you. | |
Sairam all, Linux Man pages say > "LinuxThreads currently does not support process-shared > semaphores, thus!sem_init! always returns with error !ENOSYS! if > |pshared| is not zero." > > I have a shared memory area I need to lock(using semaphore). Is there a Linux preferred > method to share semaphores … | |
Hi imagine that I have serie (progression) like Ai=2Ai-2 - 3Ai-1 for i>=2 (i-2 and i-1 are lower indexes) A0= 2.5 A1= 1.2 I need a program which counts and write into the field values from 0-19 and after the program frint sum of these values to screen. Thank you … | |
| A question has been knocking my mind today,is it possible to convert a executable file back to its source code in c++?? |
Hiii.... I am stuck here.. I want a function which can return a string and also it should be able to take DEFAULT string arguments.... can anyone help me wid d syntax?? |
The End.