132,726 Archived Topics
Remove Filter ![]() | |
Hey guys! I have a school project and I cant figure out the coding to make it work correctly. This is what I am supposed to do: Write a class with a main() method and two static methods. Your program should prompt the user for an integer that is no … Software Development java | |
Hi, In my proj i need to populate a gridview based on the selected value. I have abt 5 to 6 fields for searching including dropdown list and textboxes. Dropdown list is for country, region etc.. and the textboxes are for from_date and to_date. i'm using ms-access DB. so when … Software Development | |
In my proj i'm using ms-access DB.. i have two fields namely sms_date,sms_time.. i myself enter the records to the DB.. I need to populate the gridview with the records within the given range of date.. i hav a calendar control to select the date(mm/dd/yyyy) and user should type the … Software Development | |
![]() | i make this progrm . first i generate this of 100 number . then user cheaked the user how many time number is repeated in this series. but i want random series of 100 number . please check it & how to create a random series in this program. [CODE] … Software Development c++ ![]() |
ı could not solve non lvalue assignment problem in this example I thought for long time but ı could not find any answer if you can help me , ı would be very happy include <iostream> using namespace std; void encyrpt(void); void decyrpt(void); void menu(void) { char a; cout<<"(E/e) Encryption"<<endl; … Software Development c++ encryption | |
Can anybody help me with java code to monitor system power,that is to check if a machine is running on battery or on ac power Software Development java | |
Can somebody please help me with the c code for monitoring System power,that is how to check if a pc or laptop is running on power or battery Software Development c | |
Write a java based program to accept numbers from the user and also sum the list of numbers as and when entered. apply the data conversion mehods , if required. implement the best and the shortest way to complete the task. Software Development java | |
Hi, I am new to mysql and have got a problem. I have managed to INSERT into the database and and check from it (a simple login system) but now after i login i want to copy all the data from that row and throw it into an arraylist. I … | |
Hi Ia want to show text in a multi-line textbox, but my problem is how do I start a new line when using code like so.. [CODE] TxtBox_TechTalk.Text = " Good Effort.. You Got " & Lbl_TotalMark.Text & " Lets try the next test. Click the Subtraction Test button to … Software Development vb.net | |
Alright guys, I'm in quite a situation. I have a project for school to create an application in C++ that can create and generate shopping dockets/receipts. This includes being able to add the names of the items, the prices, and then finding the total price of the purchase. We can … | |
Hi I have to XML files and two XSL and HTML documents. I have a 'master' xml file, but I also have a 'slave'. I cant edit the xml files as they are automatically exported from a software package. Table 1 (master) contains e.g.: Master Job Master Part Qty Child … Software Development xml | |
Hi, I have created an application to send data from WCF server application to my client side application. For this I have added a custom serialization instead of the default serialization. And now its sending data to the client as stream and I am able to de-serialize the object back … Software Development client-server xml | |
Hello, Does anyone know how to set the text colour but for a specific character? E.g. If I enter "Phillip" I want it to display: P[COLOR="Green"]H[/COLOR]illip So that just 1 character is coloured? Heres the code I've written: [code] public void paint(Graphics g) { String elements; elements = nameField.getText(); char … Software Development java | |
Hello I would like to implement multiple swing timers, each of which have a different function, but I cannot seem to separate the functions. I have one actionlistener and I cannot make another one. Please help. Software Development java java-swing | |
Was how to form the password one could call the 4 form with each different password. example for the administration can only open the form and form alone administration secretary could only summon his secretary form only & to superiors could open formnya all. thanks for attention & assistance Software Development visual-basic | |
[CODE] Option Explicit Dim rs As ADODB.Recordset Dim savePurpose As String Private Sub getData() Call EnableEntryControls(False) lvRec.ListItems.Clear Set rs = GetRecordset("Select * from tblDocSched") If Not rs.EOF Then 'records exists Call SearchMode(True) While Not rs.EOF lvRec.ListItems.Add , , rs.Fields("PhysicianNo").Value lvRec.ListItems(lvRec.ListItems.Count).ListSubItems.Add , , rs.Fields("PhysicianName").Value lvRec.ListItems(lvRec.ListItems.Count).ListSubItems.Add , , _ IIf(IsNull(rs.Fields("Department").Value), "", rs.Fields("Department").Value) … Software Development visual-basic | |
[CODE]rsInventory.Open "SELECT Expiration_Date FROM YourTable WHERE Expiration_Date < DateValue(Date)", conn, adOpenStatic, adLockOptimistic[/CODE] what should be the value of that date. if i put date [CODE]rsInventory.Open "SELECT Expiration_Date FROM YourTable WHERE Expiration_Date < Date", conn, adOpenStatic, adLockOptimistic[/CODE] ive got an error 'no value given value given for one or more required … Software Development visual-basic | |
I'm having trouble figuring out how to use exceptions to check if a file stream was created successfully. I know I can use if statements, but how do I do this using try/catch statements? It compiles successfully but it gives me an error when I supply a non-existent filename as … Software Development c++ file-stream ios programming-construct | |
class stinker { private: int *pointer; int age; public: stinker() : pointer(), age() { ;} }; if i don't pass a value to my variables in an initialization list, do they automatically get initialized to 0? Software Development c++ | |
I recently wrote an implementation of STL Vector as a programming exercise. The program compiles but I receive a strange error saying: [CODE] terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc [/CODE] I've never come up with this error before and am not sure what exactly should be … | |
Hi, I have been working on this program for a few days.. and I am so far gone I lost myself in my own program. I usually just start from scratch when I get frustrated but there is too much time invested into my heap to give up so I … Software Development c++ mathematics | |
I do not know how to write a function for this. I have written just the base line of the code, but I do not know how to finish it. Here is the description. A void Function tagReader inputs the data collected by the cylinders; it has two parameters: the … | |
Im using this code ! con.Open() cmd = New OleDbCommand("select * from RoomTypeA", con) conreader = cmd.ExecuteReader Do While conreader.Read If conreader.Item("TimeEnd") = Me.TextBox6.Text Then Me.RTypeListA.Items(0).Selected = True Me.RTypeListA.Select() End If Loop cmd.Dispose() con.Close() conreader.Close() i want to select the item in listview that has the same TimeEnd with textbox6.. … | |
i am not a good programmer and so i need help. im not asking for you to write the program but need help with it ! i have some coding but cant figure out how to put the rest together ! ok so this is what i have so far. … Software Development java java-netbeans mathematics | |
Hi guys, I am trying to modify my program so that when i entered an invalid number, it will say that this is invalid and loop me back to the starting point. I just cant find the point to do that. either it will just say invalid and continues, or … | |
hey guys im doing the gridworld case study and am at the part where i program the Zbug class I have to try and write the code in a select case statement. can you guys fix my code? for more info: page 14 on [url]http://www.collegeboard.com/prod_downloads/student/testing/ap/compsci_a/ap07_gridworld_studmanual_appends_v3.pdf[/url] i really need it fixed … ![]() | |
[code=c] int i=0,j=0; char operand[30]; char lbl[20],opr,num[20]; while(i<30) lbl[i]=num[i]=operand[i++]=NULL; cin>>operand; for(i=0; operand[i]!='+' || operand[i]!='-'; i++) lbl[i]=operand[i]; opr=operand[i++]; while(operand[i]!=NULL) num[j++]=operand[i++]; [/code] ..is there any mistake in this piece of code, my execution is getting stuck at [code=c] lbl[i]=operand[i]; [/code] Software Development c++ | |
Hi I need help with the while loop and read from a file to find monthly mortgage payment from the input of Principle, Interest & Term in years. I know I may did something that doesn't make sense here, please take a look and let me know. Thank you in … Software Development file-system java ![]() | |
part of the program i am creating requires me to print out all of the links from a desired webpage. I have absolutely no idea on how to go about this. help? thanks Software Development java | |
I wrote a program that interactively allows you to import files directly from your HDD into another python program. When building a new program, you simply call my program, navigator, and it lets you choose a directory and it prints out a numbered list of file: file a 1 file … Software Development python | |
Hey guys I have a quick question on my hw, I have found everything needed except the "unusual scores". this is the direction given: Determine which of the grades, if any, are "unusual" in the sense that their corresponding z-score is < -2.0 or > +2.0. A z-score is computed … Software Development java ![]() | |
Hi guys. I downloaded pygame and a few other modules for Python. I know that I have to put them in a certain folder to make sure Python can read them, but what is that exactly? I'm running a Mac, OS 10.6.6. I already tried putting it in the main … Software Development python | |
I am writing a game of three dimensional tic-tac-toe. I need to have a method that can look at the board, and determine if a player has won. Your requirement is that this method is passed an array that represents the board, and returns an answer that can be used … Software Development java ![]() | |
May seem like a stupid question but can an array call a function? and if so is it possible to select an array from user input, so if the array was something like Num[10] and the user would input 6, it would then select Num[5] and call the function associated … Software Development c++ | |
Hi I'm having a lot of trouble with this problem. Here is the assignment... Write the definition of the function template seqSearch to implement the sequential search on a vector object. [CODE] template<class elemType> int seqSearch(const vector<elemType> &list, const elemType& item); //If item is found in the list, return the … | |
Am a student novices in vb.net. But task to vb.net for school project. I want a code to help me add a No fo Months(this is an integer) from date and the result display in a tet box as a date. I have 2 fields: Months and startdate, the third … Software Development vb.net | |
I just reconstructed my new code and am having trouble. When I try to compile it I keep getting an error message. At the end of the program something is wrong, but I can't figure it out. [code]#include <iostream> #include <cmath> #include <string> using namespace std; int main () { … Software Development c++ | |
hey. I am trying to add a menuscreen to my game using the enumeration method. I get 4 errors: No overload for method 'UpdateMenu' takes '0' arguments (at L: 161 C: 25) No overload for method 'UpdatePlay' takes '0' arguments (at L: 166 C: 25) No overload for method 'DrawMenu' … | |
Okay, so I have this program I'm working on, and I was wondering if it was possible to disable/enable TextBoxes when specific words are wrtten. I tried doing this, but it errored. I'm a new programmer to VB, I just started a month ago, and I'm doing this for fun. … Software Development vb.net | |
Hi all, I've got quite a simple question and after searching here and on other websites I can't seem to resolve what the "correct way" of doing this is in C++. Below is a simple piece of code illustrating what I am trying to do: [CODE] #include <iostream> class BaseClass … Software Development c++ | |
Hi everyone, I'm complete newbie in spring framework especially in xml based on AOP. I really don't know about what is interceptorNames, MappedNames, pointcut and else for what did they use for. Please explain to me for what the xml code's work flow do below. I got it from my … Software Development spring-framework xml | |
How would I create a simple loop so that the person using this program (user) can keep inputting weights until they want to quit. Also, I need trying to create a limit that the user can only enter in a certain range of numbers in the input. I want the … Software Development c++ | |
<S> --> <A><B> <A> ---> a | b <B> ---> 1 | 1 <B> It's suppose to start will a or b and 1 afterward. it doesn't matter how many 1's are after a or b. [CODE]/* <S> --> <A><B> <A> ---> a | b <B> ---> 1 | 1 … Software Development c++ | |
Hello and HELP!!!! I'm in CSC250. I'm writing a prog that needs to do the following: 1- read files from the directory, avoiding sub-directories (along w/ _chdir) 2- read the contents of the file (as binary) 3- extract info from the files 4- modify the file name to reflect info … Software Development c++ file-system | |
I'm not sure how to title the question I have so I can't be certain this hasn't been answered before. That said, following is a description of my programming question. I have a class R containing 2 integer elements, say X and Y. I then have two 24 element arrays … | |
Hi, I'm just learning to program and I'm stuck on a basic problem, printing today's date in a form typified by (e.g.) 28 February 2011 Java Syntax (Toggle Plain Text) import java.util.*; class Date { int day, month, year; } class PrintToday { static Date thisDay() { Date today = … Software Development java | |
[quote]Write a program to prompt the user to input an amount in pence. Your program should then work out what coins are the least number needed for this amount of money. The possible coins are £2, £1, 50p, 20p, 10p, 5p, 2p, 1p. For example, the coins which are the … Software Development data-structure | |
Hello, I've made a program that uses an array of objects, it's work well so far, upto the point that I try to increase the size of an array. So, in main the relevant code loops like this: [CODE]int main(){ /* classes used */ phoneBook *p; .... numLines = 0; … Software Development c++ |
The End.