199,114 Archived Topics
Remove Filter ![]() | |
hi all, I am to pass two values from form f1 to form f2.i wrote a code on keypress event .It works good.But on loading of f2 i want to close f1.I wrote this on f1 Dim f As New frmattendance f.Owner = Me f.Show() f.txttdays.Text = days f.l2.Text = … | |
I am trying to collect data from a log file. The data will collected into records based on policy number. I have created an object describing the data below: class fwpolicy: def __init__(self, policy_id, fr_zone, to_zone, src,dest,serv): self.policy_id = policy_id self.fr_zone = fr_zone self.to_zone = to_zone self.src = src self.dest … | |
I have to use arrays to calculate some statistics on a set of data. The example of the file looks like this: 6 5 1 3 2 4 3 4 2 4 2 1 2 3 5 6 8 5 6 9 4 3 1 5 7 3 7 2 … | |
step 1 myeclipse->prefernces->myeclipse->application servers->choosing tmcat5.5 for application server Step 2 using jdk 1.5 clicking ok then clicking on icon to start and stop tomcat but it says that no default server present what might be missing plz tell | |
I have been trying to figure this one out for a while, so please don't laugh. I know it is a little messed up. I didn't include the whole code, if necessary I will post more. The line indicated is giving me a "cannot convert from 'HGLOBAL' to 'int *' … | |
I am using generics in java, and I want to know how I can test to see if I have a int or a float? Is there some sort of type-testing? I'm sure there is, I just need someone to help point me in the right direction. Thanks! | |
Hi! I have to make a program, wich lists all files in current dir, and then save all file names into an array. My program doesn't work ! Can you tell me why? Thanks a lot:)[code=c] #include <dirent.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <dirent.h> int main(void) { FILE … | |
can anybody see anything worng? I'm returning these to the main sO=ScoreO(O); sX=ScoreX(X); These are my two methods: [java] //method to tally the score for x public static int ScoreX(boolean X){ int scoreX=0; if(X==true){ scoreX+=1; } return scoreX; } //method to tally the score for x public static int ScoreO(boolean … | |
Hello! I have a query with multiple table joints and where clauses. Tables are huge and query runs for a very long time. I need to run another query, which is exactly the same apart for one Where clause (first time price = "P", second time price = "S"). I … | |
Maybe my other thread was too wordy for everyone, cuz I usually receive help right away, and I see that it was viewed 20+ times and yet no responses...so basically I need help with my homework...We were given a main.cpp file, and PART of a header file. He also gave … | |
Great, more iterator trouble. First we have an iterator of any value. I want to make a second iterator that starts one higher than the first one. Look-see: [code] for( iterator_type one ; /*...*/) { for( iterator_type two = one + 1 ; /*...*/) { /*...*/ } }[/code] That's the … | |
edit: sorry strcopy not strcat Hi I'm new to MIPS and just need some basic clarification on what is actually going on here. I'm trying to make a copy of string1 into string2 by reading through the string copying each bit seperately, and stopping at the 0 terminator: [CODE] .data … | |
Alright, here's the code: [code] for ( map<string,int>::iterator word = mostUsed.begin() ; word != mostUsed.end() ; word++ ) [/code] and the error by g++ - (using make) [code] error: conversion from 'std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' to non-scalar type 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' requested[/code] Okay... … | |
I'm missing something really basic on this one I'm sure. We have to write a program using a class Odometer, that will track fuel and mileage of a car. The member functions are given: one to set fuel efficiency, one to accept total miles driven and add to the odometer … | |
Hello. I am having a very hard time trying to encode a file and then decode it again so i can end up with the original file. I want to transform the content in the original file into base 85, and perhaps 100 charaters or more so that it works … | |
Of all things, I can't seem to get my do while loop to work. I have a running program, but get a[I] syntax error : identifier 'choice'[/I] Can't see it, any help greatly appreciated RG [CODE]#include <iostream> using namespace std; class Odometer { public: Odometer(); void reset(); void compute_fuel(); void … | |
This is what I have written so far for my homework. No, I am not asking for someone to do my homework just to help me with what I have so far. This is a Restaurant menu created for a web site, I am very close to getting it finished, … | |
For a homework assignment, I have to create a random salary generator which is pretty easy. We have to create a random number of employees, 3-15 only and then the number of years of that salary with a limit of 3-15. This is easy so far. After this, we have … | |
Hey, I try of saving my board to a text file and then trying to load my board from the text file but actually does not works. If anyone knows how this can be solve let me know ! Thanks | |
![]() | Hi all, I have written a programme, but when it prints the results , it doesnt print £ sign [CODE]cout <<"Salary is £ "<< salary_without_overtime<<endl;[/CODE] Instead it prints u="U" with a funny bar on top. Now im very new to c++ but i do know basics, can someone please tell … ![]() |
Hello, I am hoping to get some code for the following problem I need to verify that a user input the time in the following format: cout<<"please enter the start time(hh:mm:ss): "; cin>>stime; //Verify user input time correctly cout<<"please enter the end time(hh:mm:ss): "; cin>>etime; //Verify user input time correctly … | |
Hi I am new to php and most other things, I am trying to make a form on my website to take users details for membership purposes. This data will be stored in a mysql database. What I have at the moment is a plain html form that posts the … | |
can somebody please help me out in writing matrix 10*10 matrix program. thanks in advance | |
I am trying to generate a random vector of integers and sort them using merge sort. I am having trouble with the code. It is long, but I would appreciate if someone could take a look at it and see if the can help me, I've been working on it … | |
How would I declare a pointer to MINMAXINFO that is passed to WPARAM In WM_GETMINMAXINFO wParam is a pointer to a place on the stack that holds MINMAXINFO. I've tried[code]MINMAXINFO *Info; Info = MINMAXINFO *wParam;[/code]and several other variations to no avail. Thanks | |
I need some real serious help. I have been trying to get this program to work for the last past week and everytime I get one part to work and try to complet the next section the previous section craps out. I have to write a program that reads from … | |
Hi, Im trying to filter a user number entered by the user so that it is between 3 and 31 and odd. I also want the prompt to enter the user number to loop if the user number entered does not meet the requirements. This is what i have: [code] … | |
Hi guys I started to learn java and have a little problem\. When I try to compile my little program it says : assgn2.java:40: variable overnight might not have been initialized System.out.println(overnight); [CODE]How is that? The code: import java.io.*; public class assgn2 { public static void main(String[] args) throws IOException … | |
I need help on how to integrate elements linked to the rank list.i already have a list of seven figures to be that the elements that must be included in the right of such a position that the salary arrangement upward And the work of the Union and the intersection … | |
I'm using Borland C++ and i need to make program where you enter a string in which the words are seprated by space. After input i need to sort these words into alphabetical order, but something is wrong. Cause when i enter like " x b a" it prints out … | |
Hi, I am using a JSP from to collect data from user and then inserting those values into a table in MySQL.But it is returning 'null' always.I am able to query the DB and view the entire table and everything else is fine. But the INSERT is not working somehow!!! … | |
I am executing a project that have 100 jar file attached to it I am able to execute it in Eclipse but i want to run it from batch file but the problem is that i am not able to set class path , whereas in eclipse we can direclty … | |
I need help making a counter uusing a two dimmensional array. I'm doing a tic tac toe program and need about done, just need the counter and have no clue how to do it. | |
So we're supposed to modify this class, which implements Comparable, so that it accepts any type of object. The Comparable interface contains the method signature for compareTo, which I need to implement. What I'm uncertain of is how to implement this method. I know that compareTo is supposed to return … | |
HI problem: Write the definition of a class Clock . The class has three instance variables: One of type int called hours , another of type boolean called isTicking , and the last one of type Integer called diff . You should also write a constructor that takes three parameters … | |
i have created an oxo game. wich is a game where you try to get 3 in a row in a 9-square field. i got it running but i have one question. for the computer's moves i predicted what the user would do (2in a row) and then made the … | |
Hi All, When trying to change the bcackgroundImage of element useing javascript method style.backgroundImage="url(blue_link.gif) no errors found but the script can't find the image so what is the correct way to use the address of the image? Thanks very much in advance, Fred | |
I am trying to create a phone book program in Visual Basic. I have so many phone numbers, I thought this would be a neat way to handle the overflow lol. I want it to read the information from a text file with the following data: First name, last name, … | |
Hi all.. I am having some controls in my aspx page.I need to write javascript for those controls for validation..For that i need to make the controls visible false in certain situation .I also want to make the controls to visible true in certain sitauations..Some one help me with javascript … | |
I like to receive data on SOCKET. I call the recv() method with required params: char* buff = new char[len]; memset(buff, 0, len); if(recv(sck, buff, len, MSG_PEEK) == SOCKET_ERROR) { cerr << "String Receive Error - code: " << WSAGetLastError() << endl; } The recv() method copies data to the … | |
I'm taking a class in sparc assembly, and I'm having a hard time with this concept. We're supposed to add two numbers together that can have as many as 100 digits. Since this is too many to fit into one register, I have to save them in memory and then … | |
Im sure i have a syntax issue or just not doing something right as i am new to c++.. i am generating an error code in my program ... here is my code [code] #include <cstdlib> #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <string> #include <string.h> using namespace … | |
hi... I'm new to the cppunit. I'm using cppunit framework for my c++ program. I want to build my program using a makefile. can anyone help me to compile my program using a make file. wijitha | |
Hi. I am trying to figure out this code I found on the net that allows users to chat with each other. It gives a thread error that I just can't fix. Please help me. This is the Form1.cs file [CODE]using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; … | |
Hello everybody, I want to write an email to some one by php function... I mean Mail(....) What may I write in the headers to send this message safety to another one... I mean by using the ([COLOR="red"]Cc[/COLOR]) Or ([COLOR="red"]BCc[/COLOR]). So that is a querstion.... I have another question: Can … | |
Hi to all, I have Windows XP professional SP2 and Dev-C++ and when i go to the Device Manager -> Keyboard-> Resources i see I/O Range 0064-0060 and the ports have also addres. And all other things wich have addres. My question is ,is it really addres or i am … | |
Hi , Inside a recursive function i have a static variable, when i return that static variable , it's value becomes zero. count = trimWS(someXMLNode); i get count as 0 , but when i debug countWS was 9. Pls help me why this is happening and what is the right … | |
Hey people. I'm trying to build a loop to move from Arthur Vandelay to Tim Pennypacker, to Bob Sacamano. I know how to move from 54 to 21 to -2 and so on but I can't get the code right to move from Arthur Vandelay to Tim Pennypacker. I know … | |
hey everybody!! i urgently need a project in java for electricity bill generation software kindly contribute as much as possible... i m in real trouble | |
I am Anwar as a intermediate level currently programming practice in c, c++ and java . In following programs I confused in these expressions that expressions are same but result are different on these results few teachers said it is the problem of compilers. [U][B]In Turbo C 3.0[/B][/U] [ICODE] main() … |
The End.