33 Topics
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 … | |
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. | |
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. | |
Hi, I'm trying to build UART communication channel between ATmega16 microcontroller and hyperterminal. I'm using MAX232 as a level convertor between the two. See the attachment for the connection diagram. I'm using Bascom-AVR for programming ATmega16. Here's my test code, which I've copied from its help section: [CODE]$regfile = "m16def.dat" … | |
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, 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 … | |
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 … | |
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 … | |
CAN YOU READ THIS?? [B]fi yuo cna raed tihs, yuo hvae a sgtrane mnid too. Cna yuo raed tihs? i cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht … | |
Hello, I wonder why am I getting negative reputation for starting threads in the geek's lounge. Take a look over here. [url]http://www.daniweb.com/forums/member115698.html[/url] When I put the cursor on the link to geek's lounge, the screen tip says, "A random forum for chat about anything... ". I did not say that … | |
Hello, I just saw this text displayed on DaniWeb (See the attached image). I think the sentence should be 'This site is monetized by Google AdSense. | |
Originally discovered by technicians on crash tests at Cailfornia in 1949, Murphy's Laws spread quickly. They were spotted everywhere: buses always came in threes, desperately needed objects became invisible, etc... Well, let us post them over here.. These are some of my favorite picks among the Murphy's Laws regarding software/technology. … | |
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. | |
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 … | |
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 … | |
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 … | |
Hi every=one, This is in continuation to my last post. Eve after initialising the 2d pointer a, as suggested, the same probllem as described earlier persists. Plz help -Jishnu. Hello, The code below calculates the determinant of the matrix. I know that the method of global 2-d pointers is a … | |
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 … | |
Hello every-one, I am new to java. Can any-one suggest some basic-level yet solid book for transition from c++ to java ? | |
Hi everybody, Would any-one send me java compiler at <email snipped> ![]() | |
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 … | |
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 ? | |
Using the Turbo C++ Project facility, I have linked some 5-6 files which consist of function definitions with a file which contains the definition of main(). main() uses the function definitions that are given in the other files. There are a lot of variables which need to be accessed by … | |
Does anybody here know how can i manage global data in multifile C programs ? Plz do reply. |