24 Archived Topics

Remove Filter
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
1
594
Member Avatar for Jishnu

Hello, I've downloaded the setup of Netbeans-6 IDE JavaSE for Windows from Sun's website. When I run the setup, it says, "Error starting program: A required .DLL file, USERENV.DLL, was not found". Has anyone faced this problem before? Please guide me.

Member Avatar for jbennet
0
119
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
109
Member Avatar for 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.

Member Avatar for Jishnu
0
101
Member Avatar for Jishnu

Hello, I'm using MAPI component to send email messages via VB6. Here's my code: [CODE] Option Explicit Private Sub cmdEnd_Click() Unload Me End Sub Private Sub cmdSend_Click() MAPISession1.SignOn MAPISession1.DownLoadMail = False DoEvents MAPIMessage1.SessionID = MAPISession1.SessionID MAPIMessage1.Compose MAPIMessage1.RecipAddress = txtSendTo.Text MAPIMessage1.ResolveName MAPIMessage1.MsgSubject = txtSubject.Text MAPIMessage1.MsgNoteText = txtMessage.Text MAPIMessage1.Send False MAPISession1.SignOff End …

0
395
Member Avatar for Jishnu

Can ne-1 explain 2 me the output of the following code ? (Mind well, it's completely legal C code !! ; n it actually won the International Obfuscated C Code Contest.) #include<stdio.h> main(t,_,a) char *a; {return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t == 2 …

Member Avatar for Jishnu
0
223
Member Avatar for Jishnu

Hello, I searched this forum for similiar threads but the difference is that I'm using Windows Me. So, I'm starting a new thread. I've a USB port on my motherboard. As the version is ME, it must be plug and play. But when I connect the flash drive and go …

Member Avatar for 01Pilgrim
0
179
Member Avatar for Jishnu

Hello, I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible? Thanks in advance, -Jishnu.

Member Avatar for Jishnu
0
356
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
155
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
142
Member Avatar for Jishnu

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.

Member Avatar for Jishnu
0
120
Member Avatar for Jishnu

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]

Member Avatar for Jishnu
0
218
Member Avatar for Jishnu

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 …

Member Avatar for lookof2day
0
332
Member Avatar for Jishnu

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?

Member Avatar for Jishnu
0
319
Member Avatar for Jishnu

[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?

Member Avatar for WaltP
0
98
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
153
Member Avatar for Jishnu

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. [CODE] import corejava.Console; /**************************************************************** **cLASS bANKaCCOUNT REPRESENTING THE …

Member Avatar for Ezzaral
0
260
Member Avatar for Jishnu

Hi everybody, I'm new to Java language & was previously working with C++. I'm totally confused as to what is the mechanism of passing variables having 1) built-in datatypes 2) array datatypes 3) user-defined objects as datatypes to any function. Is it pass by value or reference ? If arguments …

Member Avatar for jwenting
0
118
Member Avatar for Jishnu

Hello, The code below calculates the determinant of the matrix. I know that the method of global 2-d pointers is a poor programming practice (so u don't need to reply saying that!!!), but it is a simple method for an amateur programmer. As the code didn't work, I set two …

Member Avatar for Salem
0
72
Member Avatar for Jishnu

Hello every-one, I am new to java. Can any-one suggest some basic-level yet solid book for transition from c++ to java ?

Member Avatar for leehyokug
0
98
Member Avatar for Jishnu
Member Avatar for iamthwee
0
68
Member Avatar for Jishnu

Hello eveyone, I am working on a program that uses the graphics.h library functions and the 0x33 mouse interrupt. When I click at a particular place on the screen, the graphics nearby the mouse are saved and displayed on the new screen (that appears due to the mouse click) when …

Member Avatar for ~s.o.s~
0
153
Member Avatar for Jishnu

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 ?

Member Avatar for Ancient Dragon
0
137
Member Avatar for Jishnu

Does anybody here know how can i manage global data in multifile C programs ? Plz do reply.

Member Avatar for jwenting
0
289

The End.