132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for joshilay

int i=0,j=1; cout<<(j++)&&(i++); //output=1; i=0,j=1; printf("%d",(j++)&&(i++)); //output=0 can anyone please tell why this difference in output ???

Software Development c
Member Avatar for ~s.o.s~
0
93
Member Avatar for Rotak

Hi! I am writing a tool, that uses a HSQLDB database. The databases can get pretty big (the test DB is 21MB). I am using a standalone DB, so my application also acts as the DB-Server! Here's the problem: I want to show a message like "Loading database... Please wait!" …

Software Development gui java
Member Avatar for Rotak
0
130
Member Avatar for moe1983

[B][U][COLOR=#000000]part iII: project[/COLOR][/U][/B] [B][U][COLOR=#000000]Problem 1[/COLOR][/U][/B] [COLOR=#000000] [/COLOR] [COLOR=#000000]a- Compute the median of a data file. The median is the number that has the same number of data elements greater than the number as there are less than the number. For purposes of this problem, you are to assume that the …

Software Development c++ printer
Member Avatar for WolfPack
0
376
Member Avatar for shadevar

Hello, This is my first post here, although I have been browsing these forums for a while now, and I must say this is quite an informative place. I have a small question that I would like to post, more to verify if I am correct or not in how …

Software Development c++ first-post visual-studio
Member Avatar for shadevar
0
117
Member Avatar for dilip.mathews

I have to write a function which takes an integer array as input and it should return true if the array contains 1,2,3 or 4. Conditions 1) The function should pass thru array only once. 2) Can use two local variable. 3) Preferably using bit manipulation. Now suppose if the …

Software Development c
Member Avatar for WolfPack
0
135
Member Avatar for karkar_87

Hi, I need some help for my project. I had finished up my login page and I can be logined. The problem is that I want to allow new users to register themsevles before they can login but I have used various way I can't be directed to the Register.aspx …

Software Development asp session web-server
Member Avatar for gurudatta.verma
0
119
Member Avatar for bkelly

Two questions: 1. What function will output N bytes of data? The data may contain and may end with numeric zero. 2. What function will cause the process to suspend for N milliseconds? An explanation for question 1. [code] struct modbus_structure { char device_address; char function_code; UINT function_address; UINT address; …

Software Development c gui
Member Avatar for Dave Sinkula
0
293
Member Avatar for maharba

I have a question. I'm writing a small program in c++ for my kid to help her with maths and to teach myself how to program. I'm using srand() to get a few random numbers for her to divide with the number she choose. All is fine until I get …

Software Development c++
Member Avatar for bkelly
0
104
Member Avatar for sciocosmist

I am having some trouble trying to get a JApplet to display in a Browser. The [applet](http://javafaq.nu/images/smiles/icon_sad.gif) does compile and does come up (displays) in a Microsoft Windows window frame, but does not display in a browser. I have several components that I place in JPanels and successfully place those …

Software Development java java-swing microsoft-windows samba
0
70
Member Avatar for freesoft_2000

Hi everyone, I do not actually have web page i can test this with but would really appreciate anyone with experience on this topic. You see i am trying to upload a html page called wt.html from my disk to a website called [url]http://www.rt.com/rf/wt.html[/url] using the HttpUrlConnection by first authenticating …

Software Development java web-server
Member Avatar for jwenting
0
93
Member Avatar for nwiner

[code]#include <iostream.h> int fred[] = { 11, 22, 33, 44 }; int *fp; int main(int argc, char *argv[]) { for (int i=0; i<argc; i++) cout << argv[i]; cout << endl << "Hello world." << endl; fp = fred; cout << *fp++ << *fp++ << *fp++ << *fp++ << " - …

Software Development c++
Member Avatar for nwiner
0
108
Member Avatar for abayden

Hi, I am having trouble with wxPython on SUSE Linux Enterprize Server 9. The Computer has several Itanium 2 processors, and the version of Linux is for these processors. Python works just fine. So do other graphical toolkits Tkinter, pygtk, and qt. However when I try to use wxpython it …

Software Development python qt suse tkinter windows-server
Member Avatar for bumsfeld
0
133
Member Avatar for hasan2003

hi every one .... thanks for comming to this thread ... Dose any one know how to separate mantissa and exponent of a double and store them in two integers? :?:

Software Development java
Member Avatar for Melldrin
0
2K
Member Avatar for scharan

Hi all, This is charan new member of this team. Iam having one Question to all of you What is the difference between static and dynamic Dll and how the mechanisim of static dll goes in VC++ --------------------------------------------------------------------- [quote=neuronco]You can have a DLL without DllMain function. Its purpose is for …

Software Development c++ pascal
Member Avatar for Ancient Dragon
0
196
Member Avatar for comp_sci11

can someone help me about creating a window in turbo c?? because i can't find anything about creating a window in turbo c! is there a site explaining or about creating a window in turbo c??

Software Development c++
Member Avatar for Ancient Dragon
0
177
Member Avatar for krayJ

[code] { int input; cout<<"Please select a number from 0 to 127: "; cin>>input; if (input<127 && input>0) MarkNumber(input); else cout<<"Please enter a number from 0 and 127!"<<endl; } void MarkNumber(int input) { int loop=0, n=0; while (loop!=input) { cout<<n; n++; //incrementing number from 0 loop++; //incrementing counter for loop …

Software Development c++
Member Avatar for dilip.mathews
0
102
Member Avatar for knorden

Hi all. I am new to C, at least to the concept of pointers. I am trying to write a process scheduling simulator for my operating systems class (at the last minute of course). Anyway, I wrote a program just using arrays and got it to compile but then of …

Software Development c data-structure operating-system queue
Member Avatar for knorden
0
111
Member Avatar for Shital Parab

I am novice of c++. How to set co-ordinates of console using c++? e.g. what to do if i wanna print pyramid of astericks at the center of the screen. should i use gotoxy(x,y) function to go to the center of the console?

Software Development c++
Member Avatar for WaltP
0
87
Member Avatar for chepps

Hi, Iam a new comer.Joined today.Would like to clear one of my doubts. I have a doubt regarding the columns in datagrid. Iam using vb.net2005 (win application) I have a typed dataset, with the column names as that of the database(sql) table fields.i had set a datagrid's datasource to this …

Software Development dataset vb.net
Member Avatar for chepps
0
69
Member Avatar for bkelly

I have opened COM1 for I/O and need to input data. How do I check for data without being stuck if there if the port has not received any data? The compiler is lcc-win32 running under Windows XP. Thanks, bkelly

Software Development c
Member Avatar for bkelly
0
183
Member Avatar for NavidV

;) Hello, I have just started to learning C++. I have a question regarding a small code snippet that I am having trouble with. I get a compiler error saying that there is a parse error before the { token. Can anyone help me with this? Thanks, Navid Here's the …

Software Development c c# c++
Member Avatar for NavidV
0
97
Member Avatar for CoffeeDude

Hi, I am pretty new to Visual Basic 6 and I'm having a problem with a small program I'm writting for fun. Now when I do the following: [code]If ClockTime = #6:52:50 PM# Then [/code] The whole code works 100% find and dectect that the time has hit that time. …

Software Development visual-basic
Member Avatar for CoffeeDude
0
87
Member Avatar for himanjim

Can u anybody of u explain me how the following statement works?? y=x++<=5;:!:

Software Development c
Member Avatar for Dave Sinkula
0
79
Member Avatar for Shadowchaser

Hey everyone, I'm a student at a local community college and working on my last project for the summer. I've been working on this script for the last two days and cannot figure out what I'm doing wrong here. Hoping that some of you might be able to figure out …

Software Development shell-scripting
Member Avatar for jim mcnamara
0
131
Member Avatar for Covinus

i was trying out some java gui's and when I tried the Panel nothing seems to come out. The frame does! but no panel. i was wondering it could be the JDK was old my version out home is jdk1.0.5 something like that. or my code was old school. The …

Software Development gui java
Member Avatar for hooknc
0
99
Member Avatar for colinhc

Just wondering if it is possible to register an Access database as a date source using code in a java program rather than going to Windows to register the data source with the database manager. How would this be done? If anyone could point me in the right direction I …

Software Development java
Member Avatar for hooknc
0
403
Member Avatar for Bernard Kane

Hi I am a new user of VB (or any prgramming for that matter) and keen to learn. A very simple example of what I was looking for was the code for a button to open another form. Does anyone know where I can access simple event proceedure codes - …

Software Development visual-basic
Member Avatar for Comatose
0
104
Member Avatar for lover99509

Hi guys, i have a problem in vb6 . lets say i have a command button named print in form1 then after clicking the print button it will transfer me to form2 which will control the number of copies,quantity and these things of printing options. The problem is how to …

Software Development visual-basic
Member Avatar for Comatose
0
169
Member Avatar for srired

hi, im kindof new to these things.iv just learnt a little python and am looking to learning something about parsing XML from APIs etc. could anyone give me a few pointers. also any advice as to what should i learn from now on would be very much appreciated(could you please …

Software Development python tkinter xml
Member Avatar for bumsfeld
0
93
Member Avatar for korbynlehr

I have some code that I need help with. The code compiles but I get a runtime error. Here is the error and the code: ERROR: Exception in thread "main" java.lang.Error: Do not use MessageLog.setLayout() us e MessageLog.getContentPane().setLayout() instead at javax.swing.JFrame.createRootPaneException(JFrame.java:465) at javax.swing.JFrame.setLayout(JFrame.java:531) at MessageLog.<init>(MessageLog.java:23) at MessageLog.main(MessageLog.java:90) Press any key …

Software Development java java-swing
Member Avatar for hooknc
0
165
Member Avatar for MitchellH

Hi, I have been using the windows API for some time now and feel quite comfortable with it. I know for larger projects MFC is a better choice over the raw API. I've been google searching for some good tutorials on MFC but haven't really found any good ones like …

Software Development api c google google-api windows-api
Member Avatar for Eddy Dean
0
84
Member Avatar for whitemoss

Hi all, I'm a newbie in C..Right now, I have to write a code to read a text file and then insert all the info inside that text file into database. Should anyone have a simple sample of it, maybe you can share with me in order for me to …

Software Development
Member Avatar for whitemoss
0
110
Member Avatar for priya123

[code]#include<stdio.h> #include<stdlib.h> #define MAX 30 int menu(){ int choice; printf("1. Add a new reservation\n"); printf("2. Show details of a reservation (given reservation number)\n"); printf("3. Make Payment (given the reservation number and payment amount)\n"); printf("4. Confirm a Reservation (given the reservation number)\n"); printf("5. Quit\n"); printf("Enter your choice: "); scanf("%d", &choice); return(choice); …

Software Development c
Member Avatar for himanjim
0
186
Member Avatar for freesoft_2000

Hi everyone, I have a rather confusing question but please bear with me for a while. You see i am trying to upload a file to a certain website called [url]http://www.doubleZ.com[/url]. I am using java's HttpUrlConnection class. Connecting to the website is okay and i am also getting its outputstream …

Software Development java
Member Avatar for jwenting
0
116
Member Avatar for imran_mani

i have made a database application in c# which is using SQL Server 2000.Now i want to send my application setup to client.i want to make a setup that not only install my application but also MSDE to the client machine.can anybody tell me how will i make a setup.

Software Development client-server
Member Avatar for alc6379
0
80
Member Avatar for squadjot

Hey all i'm stuck in my little project. My plan is to build a application that can interact with a q3-engine game, nothing fancy, i just want to be able to read and send to the game console. magically i managed to actaully create a .exe that does this.. (alltho …

Software Development c++
Member Avatar for squadjot
0
150
Member Avatar for rxgmoral

Ask a problem,About CEdit control i write code..... <<<<<<<<<Static Dll>>>>>>>> ****************CmEdit.h********** [code] class AFX_NOVTABLE CmEdit : public CEdit { public: __declspec(dllexport) CString CmGetDlgItem(int nID); };[/code] ***************CmEdit.Cpp********** [code] CString CmEdit::CmGetDlgItem(int nID) { CString Str; GetDlgItem(nID)->GetWindowTextW(Str); return Str; }[/code] <<<<<<<<<<<<Static Exe>>>>>>>>>>>>> [code] #pragma comment(lib,"Dll.lib") #include "CmEdit.h" void SocialSecurityData::OnBnClickedOk() { CmEdit d; CString …

Software Development c
Member Avatar for Ancient Dragon
0
116
Member Avatar for comp_sci11

[code]#include<stdio.h> #define size 21 #define max 10 typedef struct id { int idnum,q1,q2,q3; char fn[size]; char ln[size]; char mi[2]; float ave; }id; id l[max]; id a; int menu() { int i,s=0; while(s<1 || s>4) { clrscr(); gotoxy(5,5); printf("MENU"); gotoxy(5,7); printf("1. insert"); gotoxy(5,9); printf("2. delete"); gotoxy(5,11); printf("3. display"); gotoxy(5,13); printf("4. exit"); …

Software Development c
Member Avatar for Ancient Dragon
0
280
Member Avatar for vhinehds

hi its me again... can someone please explain what a class can do? how to call a class? or if just give me a good link where i can refer to it. thanks a lot.

Software Development visual-basic
Member Avatar for Bharati Krishna
0
1K
Member Avatar for Maria_19

Hey guyz I got this search macro from the web for my excel project but as Iam a beginner i really dont know how to modify it. I need to use this search code to identify and retrieve documents for that its going to scan through a especified location. I …

Software Development visual-basic
Member Avatar for Comatose
0
153
Member Avatar for degamer106

This program is supposed to make two passes through a file; the first pass counts the number of elements inside the file to get the total size; the second pass will fill the array and sort it. The problem i'm having is that on the second pass, the array is …

Software Development c file-system
Member Avatar for degamer106
0
790
Member Avatar for MckeMowse

Hi all, I'm pretty new to Perl and already I'm finding myself lost. I have created a form for my website that allows users to enter news articles (a textarea) and then my code saves the text entered ($Text) to the database. I have set the Text to longtext through …

Software Development perl
Member Avatar for Comatose
0
114
Member Avatar for ultra vires

My friend just gave me a c++ problem.. well the problem was to make small circles on circumfrence of a big circle that is positioned in the middle of screen... well i can get that middle of screen by getmaxx()/2 ... but all i can get to find locus of …

Software Development c++
Member Avatar for jim mcnamara
0
329
Member Avatar for BurekDom

Hi is it possible to hide Delphi's splash screen at the beginning, Delphi 7? I tried "delphi32.exe -ns" but doesn't work, is there a new switch for this? Does anybody have a list of switch commands for delphi32.exe command line execution? Thank you Burek

Software Development delphi pascal
Member Avatar for Zsolti
0
204
Member Avatar for chaosfromthesky

Hey I am not that well versed in C++ and just recently switched my microsoft visual program from 6.0 to the 2005 version (computer switch.) I saved all my programs and converted them over to the new program however it keeps saying LINK : warning LNK4076: invalid incremental status file …

Software Development c++
Member Avatar for Ancient Dragon
0
127
Member Avatar for hiphoprules

This is a input file DEL 0050 XYZ 0050 0310 CCU 0710 MAA 1325 TRZ 10415 KWI 0050 FJR 0325 0325 CCJ KWI 0050 FJR 0325 0425 CCJ 0925 1005 i.e maximum items(column entries) in a row can be 8 but their data type will be in same order i.e …

Software Development c file-system
Member Avatar for Dave Sinkula
0
157
Member Avatar for NewVBguy

Hi, A newbie to vb.net and I am trying to learn this datagrid. Here are my questions: 1. How can I populate a datagrid with selected column of a table without using a query. 2. How can I put a variable column width 3. Can someone show me a code …

Software Development vb.net
Member Avatar for NewVBguy
0
148
Member Avatar for raviss_03

I have created an Excel file through Cognos Reportnet SDK. This Excel file has a reference to another htmlfile which has the data. So when I open the Excel File, I get this message: Some of the files in this web page aren't in the expected location. DO you want …

Software Development open-source vb.net
Member Avatar for raviss_03
0
124
Member Avatar for hiphoprules

hi! this is my input file by name SC.txt CD 737 123457 AM 320 246 XY 543 357 AR 222 2 TY 212 1357 now i want to read this file and compare the last column entires with a user entered number. i.e user enters a no. for example 2 …

Software Development c
Member Avatar for hiphoprules
0
127
Member Avatar for anyone

send me a program to remove unnecesary space from a string in turbo c++

Software Development c++
Member Avatar for Salem
0
110

The End.