Guys I would like to ask you how to read line numbers in files that if i not only want to read all the words in a file but also the linenumber that each of the...
... <snip> First cross-posting without indicating so is a bad idea in general. I won't repeat here why. Second repeating your question twice won't make us more...
Hello Everyone Can someone give me C or C++ code (Turbo C++ 3.0) that can calculate products of two numbers x and y where both x and y are natural numbers ...
... Sagar, if you would have said, no more than app. 30,000 digits, I would have responded, no problem, just use the gmp library (Gnu Multiple Precision) as a...
Thank you for replying to me. As you have pointed out, it is not possible to do that with Turbo C++. Is it possible under VC++ then? As for why I want to do...
Iam sorry guys my english is poor so couldnot type everything properly. What iam trying to do is iam trying to read a text file and trying to build an index on...
... It's up to you why you want to do it. I have not only asked for curiosity but also because knowing the exact circumstances (in particular the so-called...
... And what help do you need? Understanding what a Karnaugh map actually is? Designing the data structures and algorithms for it? Implementing the data...
... Now you've made yourself clearer. Thanks. Finding out a line number is easy: just count the lines while you are reading them. Set up the line counting...
Dear Nico, I am grateful for your interest in my doubt. Let me explain you what I need to do. I am basically working on a formula that can tell if a number is ...
... <snip> ... First I would like to note that you probably mean something else. The first term in your equation is: [(2a + 2b/ / 2] which is the same as (2a /...
hi im studying in 12th class i want c++ project for my cbse exam plz if any one knows any site or has a c++ project mail to me at givemeabreak_hoo@... ...
Hi,friends This is my project that I have to write it in c or c++ or any kind of object oriented languages . Below you can see the question ,please help me I...
... <snip> Read Algorithms In C by Robert Sedgewick; the chapters about graph theory are really good. Adapt the sample code to C++ or whatever language you...
hi guys watch out my program kbc-2 http://www.programmersheaven.com/zone3/cat1157/index.htm for all those who want projects etc in c++ mail me your response ...
#include <stdio.h> main() { int c, nl; nl = 0; while ((c = getchar()) != EOF) if (c == '\n') ++nl; printf("%d\n", nl); } Hi, when i execute this program on...
... (debugging) Perhaps you should print more than just a number in the printf? (printf("Lines counted: %d\n", nl); ... (more debugging) Print something in the...
... As far as I understand the program it will simply accept input until the end of input has been reached; only then will it print out the number of lines. ...
Nico Heinze is correct; you won't see any output until the EOF character arrives. While you could just redirect the stream (as he suggests), you can also use...
Hello, I'm having some unexpected result while using void perror(const char *s) The man page reads as under routine perror() produces a message on the...
... <snip> ... To me it looks as if perror() is #define'd somewhere and meaning something completely different than what you (and I) would expect. Please check...
Get the free reference now.. ebooks link, freeware download, mobile stuff, usefull forum, some free hosting.. http://www.geocities.com/xenophobia_inc...
hi every one i wont to lern the ( c++ programming ) and i hop that your group will providing helpfull staf for me the iraqi hawkeye ... Do you Yahoo!? Get on...
please send the set of various problem or any chllenging code in c&c++. bcoz i am vary much bore in my vacation. can u send as an attachment like that. send me...