No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
Hi, I hope I'll get the answer here. Please tell me why do we divide by 32, when using the timer for serial communication to calculate the baud rate? Thanks,
Why dont you do rounding in this way... #include <iomanip> cout << fixed << setprecision (n) << xyz << endl; where n is an integer, the decimal places and xyz is a type double variable. After you are done, end the fixed manipulation with cout.unsetf (ios::fixed);
Hi, I ve been working on my assignment. Having problems. Please solve them for me. I will be thankful to you all. What I am doing, or want to do is, read a file in a PROCESS, read it character by character, send each character, one by one through pipe, …
Hi all, I want to take the position of cursor from the command line and also want it to go to specific location. But I dont know how to accomplish that. I have tried with cout.seekp () and cout.tellp (). But they didnt worked as I hoped. seekp () and …
Hi all, I have written a code in assembly, assembler used is NASM. The code worked with XP 100% correctly but it is not working with Vista. Please tell me how to make it work on Vista too. In XP and VISTA both, I went to Start > Run > …
Firstly in C++ and in C, I know these only right now, you intialize the variables in this way in line. [CODE]int x = 0, y = 0, z = 2;[/CODE] In the following way, only z will be initialized. [CODE]int x, y, z = 0;[/CODE] or [CODE]int x, z …
Hi all, I ve been given an assignment to be done in LINUX which requires filing for processes. I have studied about the functions to be used, [I]open, read, write[/I]. I have copied the example from the book in my text editor and it gives error when compiled. The input …
Hi, I ve been given an assigenment in which I have to create a process, open a file and read it by that process, then that process the data to the another process (2nd process) through function pipe (), which capitalizes all the letters. The 2nd process then sends the …
Hi, I ve been given an assigenment in which I have to create a process, open a file and read it by that process, then that process the data to the another process (2nd process) through function pipe (), which capitalizes all the letters. The 2nd process then sends the …
Hi, Let the input file be Yes No No I would make this program with the following logic. I will open the input file, and store a line in a string variable (by getline function) and increment the counter variable, will do this till the end of file. Close the …
Will you please give me examples as I cannot understand what do you mean by characters. You want to count all the 1. ALPHABETS (letters) 2. CHARACTERS (like ; ' - + etc) 3. NON WHITE SPACES (includes all file except SPACES). Am I right?? Do you want to include …
Hi, I am facing a problem with allocation of two dimensional char array. The problem statement requires me to get the number of rows and columns of the array from a file. I have saved the rows in "rows" and columns in "columns", both of type int. Here is how …
The End.
Samran