132,726 Archived Topics
Remove Filter ![]() | |
illegal starts of expression. public check() at line 50. can anyone hepl me please. class waiters { private double tab; public waiters(String name); { System.out.println("my name is"+name+",i''ll be your waiter!"); tab = 0.0; } public double priceof(String s) { double price; if(s.equals("chicken")) {price = 5.95;} else { if(s.equals("burger")) {price = … Software Development java | |
This is my first visual basic 5 project and it's for work not a school assignment. Any help is appreciated. I'm displaying lines from a file in a listbox and I'm highlighting each line according to a timer. I don't want any user clicking in the listbox, but when I … Software Development visual-basic | |
Can someone look at this and tell me if it actually is doing what it's supposed to. [php]from __future__ import division counter = 1 while True: li = [] for i in range(1,(counter+1)): if (counter/i) % 1 == 0: li.append(i) if len(li) <= 2: print counter,"is a prime." counter = … Software Development python | |
hi.......can anyone tell me how do i call a subroutine created inside my dll from another project example:- i hv created a dll having a sub-routine named "initialize" in it .....when i call this sub-routine from my project after having made all the necessary declarations its giving me an error … Software Development visual-basic | |
Hi everybody: I'm trying to do the practices on the top of forum. I started from beginner's level. This time I will show you my solution to implement a simple database in C++. If you could give some advice on the following aspects or other, it would be so nice … Software Development asp c++ data-protection database-design | |
Hi,sir.I encounterred a person who said that C++ is an unsafe language.I try the follow code ,but when I input an non-int type,the program will fall in a bad loop.(gcc4.1 in Linux) [CODE] #include <iostream> #include <string> using namespace std; class bot { private: int password; public: bot():password(567){} virtual ~bot(){}; … Software Development c++ | |
Hello, I have generated a group of random numbers but I can not figure out how to display the numbers in groups of 4. Any suggestions? [CODE]srand ((unsigned int) time(NULL)); int i, high, low, number; high = 47; low = 19; for (i=0; i<20; i++) { number = rand() % … Software Development c++ | |
Hello there, is there a scsipt.h version for Linux? I've been looking for this because I really need that header file. Software Development c++ | |
Attempting to read the Shoutcast stream using inet. I connect ok, I receive streams. But I can't get anything from "GetChunk" Is it a way to find out what has been sent and received??? [code=VB6] Private Sub Inet1_StateChanged(ByVal State As Integer) Dim txt Dim vtData Dim bdone Select Case State … Software Development visual-basic | |
I read somewhere about somebody importing the sys.py module. I can't find the bugger on my system! I have python 2.5.1 installed on this Waxows XP machine. I did a search for sys.py in the c:\python25 folder and sys.py isn't there! Isn't it supposed to be installed by default? If … Software Development python | |
I'm completely new to this and have fallen at the first hurdle.:( I'm only playing so its not urgent. Here is my little bit of code: #!/bin/ksh print Content-type: text/html print print '<pre style=font-family:Fixedsys>' [B][COLOR="Red"]gtacl -c 'files $usvol1.ssdxl' [/COLOR][/B]|{ while read line ;do print "${line%%=*}" done } print '</pre>' Don't … Software Development shell-scripting | |
Hi, I want to know how can I capture the system date using a java program. I want to run this code automatically when the system is login. I want to capture the system date even if the user change the system date. Kindly waiting for your suggestions Thanking You … Software Development java | |
public class GradeSystem { public static void main (String args[]) { ........ public int searchStu(int id){ // problem happen int i=0; for (i=0; i<4; i++) { if (student[i].getStudentID() == id) return i;} return i;} int id; boolean d; id = Integer.parseInt(JOptionPane.showInputDialog("Please input ID number : ", JOptionPane.QUESTION_MESSAGE)); d = Student.isStudent(id); … Software Development java | |
Im working on a project in access and my partner and i are making a who wants to be a millionare kind of thing. the problem is that we want to do an if statement involing an option button but we keep getting an error message saying value not valid … Software Development visual-basic | |
Hi I have a VB5 application which will print to both dot matrix and laser printers. Gnerally works fine However with HP laserjet 1020 print job is sent to printer. It appears in queue, the printer warms up and nothing else happens. Sometimes the job dissappears from queue, othertimes it … Software Development printer queue visual-basic | |
![]() | I am trying to write a simple Lisp function for my Articficial Intelligence class and am running into a problem. The compiler is seeing the line [inline] format t "Enter a number, press return and enter another number"[/inline] as a an error. It is the placement of the line of … Software Development |
In the VS command prompt that is part of the VS SDK you can enter the following to generate an xsd file from an xml file: xsd XMLfilename.xml This will generate an xsd file with the same name as the xml file Then you can enter: xsd [.xsd file generated … | |
I have been stuck on this one problem for sometime now and I have tried looking this up in all my references but was not able to come up with a solution to this error. Can someone help me with it please. My gratitude to you in a thousand years … Software Development c++ | |
Hello, I'm fairly new to Linux and have managed to make this script below work. Basically it gets my current external ip and emails it to me. It works great as a cron job daily but I was wondering if some of you guru's may be able to augment this … Software Development email shell-scripting | |
This a problem i faced .When i made applet the access file i faced the following exception: [INLINECODE]java.security.AccessControlException: access denied (java.io.FilePermission text.txt read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at CheckTopScore.<init>(CheckTopScore.java:30) at MainFrame.<init>(MainFrame.java:200) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native … Software Development java | |
please help me i really need this badly i'm trying to write all the possible code but the outcome i needed is not right i write a program that you input a string then the output will be the last letter of you input will come first then follows example: … Software Development c++ | |
Hi, I was just browsing through some stuff about Initialization lists in C++ and got stuck with a doubt.. Why is it necessary to use initialization lists while giving a value to constants or references ?? Why is it not possible to do so in the normal way..i.e initializing them … Software Development c++ | |
How would one handle right clicks on a specific control for example, if the user was to right click a static control and I would like to display a menu.. I thought that I could do something like this.. [code=c] LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM … Software Development c++ | |
Situation: I have a working shell script on our file server (OSXS Tiger) to connect to a workstation, which is using a portable home directory (phd), and rsync a user's MirrorAgent.log. I'm not that strong of a scripter, but I would like to add other workstations to this script as … Software Development shell-scripting | |
Hi, I have a problem with the function [code]i=(abcdario[g]+h)%27;[/code], because i need to add this, but it gives me the error "invalid operands to binary +" The full code is the following [code] #include<stdio.h> //fopen() ,fclose() #include<stdlib.h> //malloc() int main (int argc, char*argv[]) { FILE *entrada, *salida; int caracter(unsigned char … Software Development c | |
Hello, I am developing an application in Visual Basic in which i have to enter the details of candidates and after that clicking on the print button, the details of that particular candidate get printed out without using/going to a report. I want to know how can i do that, … Software Development visual-basic | |
Can anyone explain why the OnKeyPress Event does not work with a TButton on the same Form. What am I doing wrong? procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption:='button'; end; procedure TForm1.KeyPress(Sender: TObject; var Key: Char); begin if Key='a' then Label1.Caption:='OK'; end; Software Development pascal | |
This is the first time I have really done any GUI work. I had a console app in C++ that I rewrote into C# and am trying to make a GUI for it. However I am not sure how to display my classes show methods in the Text box. I … Software Development gui | |
I am a biggner in vb.net. I need to develop a miniproject. Would u mind helping me in reccomending small academic projects if u have any? thanks Software Development vb.net | |
Hi, I have created a convaluted and hacked script here for comparing unix dates. Can someone help me use calc or date w/ julian param or something to look back a week, a month or even a year and compare dates or add/subtract the dates somehow in a shell script? … Software Development shell-scripting unix | |
Hey all: I've been trying to figure out how I would go about doing the following task. Basically, I have a folder with about 20,000 notepad files. My goal is to have one big word document, and append the contents of each notepad file to the word document. Each notepad … Software Development | |
[COLOR=#008000]I am having problems with the following program. We are to create a biary tree that takes words form a text file and then create a link list the the number the word was found on. I have the tree created but I am unsure how to incorporate the link … Software Development c++ ![]() | |
this is a program that i have, i dont know why it doesnt work. Could some one help me? thank you very much [code] #!c:\Python24\python.exe # Fig. 35.22: fig35_22.py # A program to illustrate Python's database connectivity. import MySQLdb print "Content-type: text/html" print print """ <html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en" … Software Development apache first-post mysql python xml | |
i'm having this problem and i would like to ask for some ideas on how i will read a file backwards, that is, from end, read the file backwards(forward, naturally) by line.. thanks Software Development c | |
Hello All, i want to add a word/text file in database(MS-Access), for this i am using datatype ole object for that particular column. i am using a text box to catch the file name and the complete path of the file and putting the value of textbox in that table … Software Development file-system visual-basic | |
[code]class abc { public: virtual ~abc() {} static void operator delete(void*); }; int main(int argc, char *argv[]) { abc _a; return 0; } [/code] Software Development c++ | |
I am relatively new to Borland 2006 C++ Builder. I have a form which has about 6 buttons and a text box for selecting and inputting values respectively (e.g. Clicking on Button 1 should return "100" to a variable in the calling form. Likewise, entering 100 into the text box … Software Development c++ | |
i have taken a look around and it seems to me as if visual c++ is an outdated technology. I mean it appears as if no one is using it anymore. Even Deitel, which sells some good textbooks, list them as "old products". Is it worth the effort to learn … Software Development c++ | |
In my program I have a loop with a variable that shows the players name, they choose something then it goes back to display their name and all it shows is arrows.... why? I'll post my code, run it and enter 3 or 4 players are playing, give them some … | |
Hi everybody I use a javascript to select and deselect items in a listbox depending on checkbox selection The problem now i have is, i am calling the javascript from server side What happens is as the listbox 1 get populated, and selected with checkbox selection in my application, i … Software Development javascript vb.net | |
error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [1]' to 'LPCTSTR' plz send me: [email removed -Narue] thanks Software Development c++ | |
[code] [COLOR=green]Private[/COLOR][COLOR=green]Sub[/COLOR][COLOR=green] BindingNavigatorDeleteItem_Click([/COLOR][COLOR=green]ByVal[/COLOR][COLOR=green] sender [/COLOR][COLOR=green]As[/COLOR][COLOR=green] System.Object, [/COLOR][COLOR=green]ByVal[/COLOR][COLOR=green] e [/COLOR][COLOR=green]As[/COLOR][COLOR=green] System.EventArgs) [/COLOR][COLOR=green]Handles[/COLOR][COLOR=green] BindingNavigatorDeleteItem.Click[/COLOR] [COLOR=green]Dim[/COLOR] rowDeleting [COLOR=green]As[/COLOR] portfolioDBDataSet.CRS_AccomplishRow rowDeleting = PortfolioDBDataSet.CRS_Accomplish.Rows(CRS_AccomplishBindingSource.Position) rowDeleting.Delete() [COLOR=green]Me[/COLOR].CRS_AccomplishTableAdapter.Update([COLOR=green]Me[/COLOR].PortfolioDBDataSet.CRS_Accomplish) [COLOR=green]End[/COLOR] [COLOR=green]Sub[/COLOR] [/code] this is the function I have, it shows no errors, but if I try to delete the first record it shows that it deletes all of … Software Development visual-basic | |
hi....actually wen i am loading a form from the module.....its loaded but its not holding on to the screen and it is performing the actions listed in the form load procedure......can anyone tell me what should i do to make the form hold on to the screen....it would be of … Software Development visual-basic | |
In VB6, I have a main form (frmMain) with three subsidary forms. The latter set various properties on frmMain, e.g. frmMain.NoCopies = x I have a number of procedures that I want to put this in, so I need to pass the name of the form as a variable - … Software Development visual-basic | |
I would like to know how to take input from a user and populate an array? I know how to do an array normally. I know how to have a user input information into a file that I create. But, I don't know how to put the two together. Any … Software Development visual-basic | |
Please can anyboby help send me codes to add scroll bars to a form Software Development visual-basic | |
hey everybody i need some help with my school project im useing visual basic 5 the project is to make a program for a radio station with 3 forms a main a new and a uniquenumber. the idea was that everysong saved into the program was given a unique number … Software Development visual-basic | |
Okay I had a thread on this already but it was under my friend's account and when I replied to it under my own account nobody knew what was going on and nobody responded after that so thats why I'm making a new one. What I'm trying to do is … Software Development c++ | |
Hi, I am trying to write a program to convert an integer to a character. Below is my code. Can someone tell me what I am doing wrong? It is for the MIPS chip. thank you, Michael [code=assembly] # A test to print charactors from numbers. # Does not work … Software Development assembly |
The End.