I wrote a simple code: #include <stdio.h> #include <string.h> main() { FILE *fp = fopen ("a.txt" , "rb+"); char data[200]; fgets(data, 200 , fp); strcat(data,...
Satya Prasad
satya_prakash_prasad@...
Feb 1, 2008 8:52 am
65526
Well this is a specific requirement and our objective is that we need to write a restart able batch that should pick from where it left processing records last...
Satya Prasad
satya_prakash_prasad@...
Feb 1, 2008 8:54 am
65527
Yes, I agree but is it possible using a single file manipulation. The other way I understand is that I create a temp file and write modified data there or read...
Satya Prasad
satya_prakash_prasad@...
Feb 1, 2008 9:11 am
65528
... If you have 5 million rows of data you should be using a DBMS. -- Brett ... "In the rhythm of music a secret is hidden; If I were to divulge it, it would...
... You should have said this at the start. Your problem is actually quite simple. Use a secondary file and write the "record" number to the second file...
Hi. I have written a c++ program in a text editor like notepad. After writing the program, i saved the file with the extension .cpp. Now how can i compile and...
... Well, you first need a compiler. And, these days, C/C++ is best learned using an IDE with a good debugger. Finding a new compiler is quite easy. c-prog...
What OS? Mickey M. Construction Partner Inc. http://www.constructionpartner.com ... From: Aswin Rajamannar <aswin89thee@...> To: c-prog@yahoogroups.com ...
... You can't with Notepad. Do you have a compiler, first of all? I recommend getting an IDE, which has an integrated editor, compiler and debugger (Microsoft...
you should need a compiler to run your program. download a compiler from the net.. if you are beginner go for Borland C compiler.. ... [Non-text portions of...
... Please don't recommend old compilers. Borland Turbo C/C++ and the Visual Studio 6 compiler suites are old, outdated, and non-ANSI C/C++ Standards...
... That's true... but about 99.99999999999999999999999% of the time someone has come in here saying they are trying to do this or that with Turbo C, they mean...
Like nobody has seen this program before...ha I have built a program that takes in an integer and lets the user know if it is prime or not. I wrote a bool...
... What compiler? ... A few issues: 1) 2 is prime. Your code doesn't account for that. 2) Also, you only have to look at the first (int)sqrt(number)...
But wait. I do have a compiler. I want it as an information. In some books, i've read that a c program can be written in any text editor, but should be saved...
I'm new to C programming. While working with files, they say we can open and read or edit files. I can't understand the whole shit. What files can we open? My...
I am using Visual C++ 2008 Express Edition. I don't get any warnings for the Break;, should I? ... the ... When ... program ... to ... numbers. ... should...
... You can use any text editor to write C++ programs, but unless the editor supports calling a compiler externally (Notepad doesn't), you are out of luck. You...
... You can open ANY kind of file in C and C++, text or binary. To a C program, a file is just a stream of bytes and it's how the program intereprets the bytes...
... Actually, using Turbo C++ _DOES_ matter. You and your classmates should NOT be using it. It is non-ANSI Standard, extremely outdated, no one in the...
... Victor - you still around? Remember a while back I said 'bool' had issues under VC++? IIRC, 'bool' becomes some sort of weird COM object'ish thing and...
... <snip> ... This one is buggy; the loop "for (i..." goes up to "number"; however, every integer is dividable by itself, so the loop must have an end ...
... Please keep the language used on this list civil and professional. You are interacting with professionals here. Your friend is wrong. A program can open,...
... <snip> I think one common miconception in such a place (it's not the first time that I stumble upon such questions) is the "we". Who is "we"? In the first...
... Just try Dev C++ from Bloodshed. Investigate the console of the Dev C++ IDE and you will see that it is pretty much self contained. Also, when saving,...
... Aswin; The ability to open, read from, write to, and append to files is far more important than probably what you have been exposed to with your experience...
... <snip> I forgot to mention that the examples of manipulating files found in most books are fairly "cheesy". The examples most authors use are hardly...
I am currently taking C++ online. I have tried using the MinGW and the Dev-C++ compilers and I am still getting error messages. I have even had classmates...