19,876 Topics
![]() | |
Header asks the question. my include files are in /abc/bcc/include/ path which are used in programs like; [code] #include "radar.h" [/code] I think, -? option will tell the compiler to do that. Could u plz give a little compiling sample with gcc. Thanx. | |
Hello everybody, does anybody have some experiences with scanners or other imaging-hardware? I am now looking for several weeks for good introductions in this topic, but so far, I couldn't find anything useful apart from the EZTwain packet that costs money. Maybe you have a hint how to use the … | |
I start C tomorrow and reading my book. When I run and compile this code it comes up in DOS and runs the code but then the DOS window closes. I'm new with C, can someone tell me why the DOS window flashes and then closes? Here's my code: [CODE] … | |
I have created a simple DLL in C that in which contains a function to implement a Low-Level Mouse Hook to Clip the Cursor to a window. I have done this because I feel the ClipCursor() API is inadequate. Anyway.. the DLL header file contains the following code.. [code=c] #include … | |
I have to create an array from an input file and then extract the calculated information from the array back to an output file. I understand how to bring in an input file but I am unsure how to put this information into an array. Here is the assignment incase … | |
Hello guys, I'm having hard time to insert/create a code for one projects component. The issue is how could i call a stored procedure and how could i execute it. | |
I have downloaded the free Borland compiler Bcc32 and am delighted with it. I also downloaded the turbo debugger. I have a lot of experience using a debugger from an integrated environment but the Borland download includes only the command line version of the compiler and I don'y know how … | |
can anybody help me to write the following program. program that will return the day of the particular date and year? i.e.,user gives date,month and year.we have to print the day of it. | |
Hello guys. I'm currently having problems concerning displaying a student with the highest grade. I tried to start the calculation under totals but I'm currently having a hard time with it. May someone please point me in the right direction. [CODE=C] /*+*+*+*+*+*+*+* Preprocessor Directives *+*+*+*+*+*+*+*/ #include <stdio.h> #include <string.h> #include … | |
I need to set up a serial communications port using DEV C++ to the CMUcam2 under windows. I have to send small strings such as "GH" "GM" and receive packets of information of varying sizes that will need to be parsed to analyze the information given. I've found some code … | |
Hi, Is there any tutorial that tells how to do dynamic binding in C. Thanks in Advance. | |
first greeting to everyone here. this is a nice forum that we can share and discuss. I used to do a GUI program in c using GTK 2.0 under the cygwin platform, but the built file (.exe file) can only display the GUI at the Unix environment (cygwin X11 server), … | |
Hello All, Supose we do close(0) and the dup it to another file descripter to use the new file as the stdin input. Is there anyway to restore the keyboard as the standard input in the same program Thanks, Majoni | |
[code] 105(decimal) = 01101001(binary) [/code] for example, i want to skip first 3 bits of binary and get the number to the right and assign it to an integer: [code] 01001(binary) = 9 (decimal) [/code] could you plz give a little code sample? thanx. | |
can anyone help me with this code i just cant understand ! its about filling a deck of cards thx [code] for (i = 0; i < 52; i++) { deck[i] = (i % 13)<<2; deck[i] += i / 13; if(i/13 < 2) deck[i] += 64; [/code] | |
Please tell me from the scratch how to compile and run a .C programme in Turbo C++ Explorer IDE. I'm finding it difficult. Whenever I try to compile and run the .C files , I find these commands as dimmed command in the project and run menus in the IDE. … ![]() | |
[COLOR=#000000]Hi all, need some advice I’m writing a program in c. And its objectives would be; 1. Monitor error code occurrences, 2. Deleting Instance in the DB and having a graceful exit. And writing this program in UNIX environment I’ve been searching for some samples thorough, and suggestion?[/COLOR] | |
hi everyone, i have a doubt on file handling using C. Can anyone just tell me how to change file extension of a file(ex .txt to .dat ..etc..) using a C program. thank you | |
hi everyone, the below program is yielding error "segmentation fault",when it is run under unix. This is a file copy program using command line arguements. Without using command line arguement,i mean,taking filenames directly in the program runs successfully. Can anyone tell me what "segmentation fault" means in unix? ------------------- [code=c] … | |
Alright, here's the beef. I'm basically writing a program for a PIC18 microcontroller. There's just one problem, my main asm file, it compiles C into assembly and then turns it into bytecode, is too big to be loaded into memory. So I'm getting compiler errors telling me the section is … | |
I wrote some kind of code But i wrote it in Notepad now i want to run this in C Compiler how i can transfer it Into C Compiler.Or any other method is there | |
hi. i would like to ask if the following operation is possible. imagin a device which has a number of rs 232 ports. in this case we shall take four. then imagin that you have two keyboards and two computers connected to these ports. now is it possible to write … | |
Hello everyone ^_^ I need to know how to pause the execution of a code, without using sleep() or any sleep()-kind function thats it... thanks XD | |
i'm sending a NULL pointer of type unsigned char to a function. i allocate space for this pointer in the function and return nothing. [code] unsigned char ucBufr = NULL; Allocation(ucBufr); [/code] [code] void Allocation(unsigned char * ucBufr) { /* nDataSize and ucData is got from a file here. */ … | |
I need program in c to print keywords and their frequency of occurence in a given c program ![]() | |
I understand what pointers are, but I don't understand why they are useful. I have read many tutorials about pointers, and yet I still don't know why someone would want to use one. Could anyone explain it to me? Or give me a link to something that explains it well? … | |
Anyone know where I can find a good MySql and C++ Tutorial? I want to us MySql w/ MFC C++ Thanx, Atrus | |
i wanted to do a c project.please can anybody give me ideas about any project. | |
hai i am doing a small project. can write program that listen to usb port? if suppose an device is connected to usb port a message should come describing the nature of the device connected? is this possible in c? if not can you suggest me how to do this? … | |
For those of you who also code in JAVA*: Does anyone know of anything in C++ that is at all like paintComponent or the Graphics class? HALP! *ROFLwaffles to those who do | |
Consider the following code: [code] [COLOR=green]#include[/COLOR][COLOR=green]<stdio.h>[/COLOR] [COLOR=green]#define[/COLOR][COLOR=green] SET_BIT(buf,n,val)buf[n]=val[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] main()[/COLOR] { [COLOR=green]char[/COLOR] ch=[COLOR=green]'D'[/COLOR]; [COLOR=green]char[/COLOR] *name=[COLOR=green]"Yankee Duddle"[/COLOR]; [COLOR=green]int[/COLOR] i=5; SET_BIT(name,i,ch); printf([COLOR=green]"%s"[/COLOR],name); } [/code] When compiling with Borland C it worked fine. However when I tried cimpiling it with VS 2005 I got the following error: "Unhandled exception at 0x00413529 in Learning … | |
hi, I am a beginner and haven't decided to learn how to program in C or Python. Is there any free tutorials in C that is very good? I can run searches in google but i am not sure what tutorials are good or not good. Another question, later in … | |
Can anyone help me out to start graphics in C!!! i cant understand what books i need to reffer n which online tutorials i should take!! | |
My friend who is a VB6 programmer is doing a benchmark against C and the VB is running faster than the C but we know this isn't a reliable benchmark Could you look at our benchmarks and tell us any thing that might be causing this. MINGW [code] #include <stdio.h> … | |
Hi Could anyone help me out with the following programs. 1. 'C' code for RS232 null modem connection(pc2pc) using WIN32. Also please let me know how to test on the second PC after transferring data from the first PC. [details of connection: DB9 connector at both the ends] 2. WINSOCK … | |
Hi! I cannot access my "Debug Windows" in VS 6. All the windows are grayed out and I cannot select them. What do I need to define to be able to access them? Thanks ![]() | |
Hi! I'm looking for a tutorial to explain handles and messages in C. I tried searching google for a while with no real success. Maybe I'm using the wrong keywords... Thanks. | |
Hey everyone, I'm new to C++ programming and have just started the semester and having a bit of trouble with my second homework assignment. Here's the assignment: Write a program that accepts a 7-9 digit integer andechoes the number with commas between every three digits from the right. Here's what … | |
Hello guys, I'm currently having a problem with converting uppercase to lowercase. For example in my code below when a user enters in the class number I'm trying to let them be able to type it in both uppercase and lowercase. Like instead of only being able to type ABC101, … | |
hi everyone, i would like to do a project in c where i can control hardware devices using c programming. where can i get the material(how to start n what are the prerequisites).plz help me | |
hi...i would be very greatful if someone could help me in solving this problem. i am very new to c language and only familiar to "printf" and "scanf". Problem: [CODE]Write a program that calculates the wages of an employee for the month.(Input from user must include YEAR,MONTH,TIME IN & TIME … | |
hai this is the most important and use full material on C++ and data structures. it is usefull for bot Engineering and Graduate students. Links: <url snipped> Download it as a free Enjoy | |
i actually feel like a n00b asking this, but i'm a little of what you might call rusted in this stuff, since i hadn't need to handle files for a year now... i searched for some guide, but i only found out how to [B]open[/B] a file... like this:[code=c]ofstream *pfile; … | |
i get 3 build errors when i use the numbers, the simple payroll program aint so simple for me im using java tools in x-code [code=cplusplus] #include <iostream> using namespace std; main() { int employeeid; int hoursworked; float hourlyrate, grosspay, taxamount, netpay; float const TAXRATE = 0.10; cout << "ENTER … | |
After using [INLINECODE]FILE *pFile[/INLINECODE] for file I/O (all the way from [INLINECODE]fopen(pFile, ...)[/INLINECODE] to [INLINECODE]fclose(pFile)[/INLINECODE]), my [INLINECODE]pFile[/INLINECODE] pointer still points to [INLINECODE]0x7803a710[/INLINECODE]. So I figured I better free it. However, when I try [INLINECODE]free(pFile)[/INLINECODE], it pauses execution (while debugging - though no breakpoint is set). When I hit F5 again … | |
[code] #include <stdio.h> void printarray(const int arr[][3]); int main() { int arr[][3] = {{1,2,3},{4,5,6}}; printarray(arr); getchar(); return 0; } void printarray(const int arr[][3]) { int i,j; for(i=0;i<2;i++) { for(j=0;j<3;j++) printf("%d\t", arr[i][j]); printf("\n"); } } [/code] This above code tends to give me a warning. [code] 9 D:\cprogramming\arr1.c [Warning] passing argument … | |
i have a char array of 4 elements : [code] 00000000 00000000 00000010 00000111 [/code] how can i assign these bytes to 4 byte integer (this means 519), could you please give a modular code sample? thanx. |
The End.