14 Solved Topics
Remove Filter Hi all, I was reading Vijaya Mukhi's The 'C' Odyssey UNIX - The Open-Boundless C (1st ed.). This is in reference to program 43 in the first chapter when file buffering is introduced. [CODE]#include <stdio.h> int main() { FILE *fp; char buff[11]; int pid; fp=fopen("baby1","r"); pid=fork(); if(!pid) { printf("initial file … | |
Hi, There are certain spell-correcting features in search engines like google... What I want to do is this: If the word entered by the user doesn't match with any of the words in the databases, the program should try to find the word in the database that is closest to … | |
Hello, I posted a problem I was facing at the VB6 forum [url]http://www.daniweb.com/forums/thread128475.html[/url] but couldn't get any reply for 5 days... What should I do? Please suggest a solution to me. Jishnu. | |
Hello, I'm getting a compile-time error in jdk1.2.1 which says "Identifier expected" and points to this line in the code: [CODE]Vector<Fish> fishes = new Vector<Fish>();[/CODE] Aren't vectors supported in jdk1.2.1? I'm unable to catch the problem. | |
Hello, This thread is in reference to this thread: [url]http://www.daniweb.com/forums/thread1093.html[/url] If it were not for Duoas, the thread would have continued although the OP had posted it four years back. This happens because new posters like Knightzs are not fully aware of the rules over here. We cannot delete the … | |
Hello, I'm planning to do a project which involoves a lot of GUI. Does anybody know whether there is any IDE available that supports a code wizard feature for C++? For eg in VB, we design the menus, frames, text labels, etc. and when we click on 'generate code', the … | |
Hello, I've read in a book that APIs in the native APIs start with one of the two prefixes: Either Nt or Zw, so that the functions have names like NtCreateFile or ZwCreateFile. What does Zw stand for? It further says: [I]Both versions actually point to the same code in … | |
What is the difference between the back() and end() functions defined for list containers in STL? It is specified in my book that back() gives reference to the last element while end() gives reference to the end of the list. I'm unable to understand how the two functions differ. | |
Hey, what does the following code do? [CODE]#define _ -F<00||--F-OO--; int F=00,OO=00; main() { F_OO(); printf("%1.3f\n",4.*-F/OO/OO); } F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ }[/CODE] I found this interesting question from [URL="http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c"]http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c[/URL] | |
Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static … | |
Why does the JVM initialise the data fields with default values if no constructors are defined in any class? What is the need for such a procedure of calling the default constructor? | |
[CODE]#include<stdio.h> int main() { for(;0;) printf("Hello"); return(0); }[/CODE] This code should not give any output, but it is printing Hello once. I'm using TC++ 3.0. Is something wrong with the compiler? | |
Hi, I am trying out a bank account program using the corejava package. I am getting a run-time eception when I create a new account & am unable to trace where the error is. Plz help. I am giving the code below. import corejava.Console;/******************************************************************cLASS bANKaCCOUNT REPRESENTING THE RUN-TIME MULTI-USER SYSTEM******************************************************************/public … | |
I have seen that writing anything after the completion of any pre-processor compiler directive does not affect either compilation or running of the program. i.e. #include<conio.h> 123as!#@ #define M 100 *&^asdf is perfectly valid. How can such athing happen ? |
The End.