132,726 Archived Topics
Remove Filter ![]() | |
Hi everyone, I am trying to set my own calendar in JAVA. What I mean is, unlike the default Calendar I want to construct my own Calendar where a day will be only 13 hours for example instead of the 24 and there will be 30 days in every month. … Software Development java | |
sir how can i add two fraction nos. to get again fraction eg. a/b+c/d=(ad+bc)/bd I would be very happy if u send me code. Software Development c++ | |
![]() | Hi, is there an internal module / method to change the colour of the text in the pythonwin? I am asking this so that I can make more exciting text based games Software Development python ![]() |
Hi guys, these days Social Networking Sites are spreeding faster around the world and they getting more users into their networks daily. My question ist. How to implement an algorithm as simple undirected graph in social networking site and how to search and find special groups who know each other … | |
I guess what i need to figure out is how to do this program. but i need to make the functions call by address. any help would be great. [code=cplusplus] #include <iostream> #include <fstream> using namespace std; int findLarge(int x[]) { int i = 0; int largest = -99999; while … | |
Hi, all i am new to this site please help for code given below when i executed it not updating it is giving error please help Thanks in Advance Private Sub UpdateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateButton.Click Try Dim com As New OleDbCommand com.Connection = con … Software Development vb.net | |
So, I have an interface I would like to use, and I need to put lines on a JPanel within a Frame. Because I need other controls in the Frame so if I set the frames focus to the lines I won't have the controls. And also, I have another … Software Development java java-swing | |
hey there, i need some help in understanding pointers. this is an example from school but i cant quite figure i out. i know the basis of pointers but could someone give me some more info. [CODE] #include <stdio.h> #include <string.h> int string_len(char *s); int main() { char s[80]; strcpy(s,"Hello"); … Software Development c | |
i did it like this but it seemed stupid : [CODE]string path = Assembly.GetExecutingAssembly().Location.Substring(0, Assembly.GetExecutingAssembly().Location.LastIndexOf("\\")) + "\\Sounds";[/CODE] any other ideas? my actual goal is to locate the files in my project output directory. it can be any directory i created under my windows application. it is not as straight forward … Software Development assembly web-server windows-server | |
heey guys.. i'm trying to run this pro but i have one error.. can someone check it please. [CODE=language]#include <iostream> #include<cstdlib> void JOTAKU_LOGO (); //This function calls the flight agency's Logo. void ABOUT_JOTAKUAIR (); //This function displays a briefe history and information about J-Otaku Air. double DOLLAR_TO_YEN (double dollar_Z); //This … Software Development c++ ios visual-studio | |
hello, first of all welcome, secondly someone please help me? this wont compile :( [code] #include <iostream> int main() { float pi; float radius; float area; pi = 3.1415926535; radius = 2; area = radius * pi; std::cout << "The area of a circle with a radius of 2 is … Software Development c++ | |
Hi i would like to know, how can i get the color of a certain pixel on screen? Like when i am in a game and i press a button on the keyboard it will get what color it is in one specified pixel say... (100, 50) Thank you so … Software Development c++ | |
I have a little problem that my Form gets stuck when I run this first code. I have a lot of code in the event. The code runs fine but if I now will deactivate the form by clicking with the mouse on the desktop and again click somewhere on … Software Development c++ | |
Hi, I'm trying to build a web server in Python, and here is what I have so far: [CODE] Code: from http.server import HTTPServer, BaseHTTPRequestHandler class RequestHandler(BaseHTTPRequestHandler): def _writeheaders(self): self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers() def do_HEAD(self): self._writeheaders() def do_GET(self): self._writeheaders() self.wfile.write("""<HTML> <HEAD><TITLE>Sample title</TITLE></HEAD> <BODY>sample text</BODY> </HTML>""") serveraddr = ('', 8080) srvr … Software Development python web-server | |
i m trying to code htoi function in chapter 2.3 for K&R but problem i dunno where to start should i first read all string then after that change each character to its decimal and then add them ? or any better ideas? Software Development c | |
Does anyone know how to give a GUI look to your C++ "Console Application". I cannot use Win32 API or any other template except the console application because I use Turbo C++ 3.0 IDE for development and I want my Application to be platform independent while using WIN32 API will … Software Development api c++ gui ide windows-api | |
I'm stuck trying to get mechanize working as part of a larger project I'm working on. I'm trying to logon to the following website which I am registered at (but not as "bob" as below obviously): [url]http://www.morningstar.co.uk/uk/membership/signup.aspx?loginType=1&lastvisit=%2fuk%2fportfoliomanager%2fportfolio.aspx%3fSite%3duk%26lang%3den-GB[/url] I think I've managed to select the correct form (?) but I'm getting … Software Development python | |
I'm wondering if this is even possible in C++. Here's what I did in java a while back: [code=java] class Suit { public static Suit Hearts = new Suit("Hearts"); public static Suit Clubs = new Suit("Clubs"); public static Suit Diamonds = new Suit("Diamonds"); public static Suit Spades = new Suit("Spades"); … Software Development c++ | |
Hi, I want to edit post, i made some days back. i could not see any edit link there in the thread. Kindly help me out this. Moderators, Please let me know the answer of above question, or delete all my posts from the forum. Please do it as soon … Software Development first-post perl | |
Hi im working with linked list and i have to implement a function that deletes the duplicates of a number. for example if given 2 7 1 7 12 7 then the result should be 2 7 1 12 here is what I have: [code] #include <iostream> using namespace std; … Software Development c++ linked-list | |
I have an array of integer of size 20 and there values range from 0-9 and i want atleast the value 0 placed in one location in the array once. how can i control rand() to be able to do that? cause there a possibility 1/10 will randomily generate 0 … Software Development c | |
i need to use java to generate and write/append (long)numbers to a text file and use those data for calculation later. can anyone give me a quick reference on what i should use? i tried: PrintWriter ---> no writeLong() RandomAccessFile and BufferedWriter --> give me byte code i have been … Software Development java | |
Hello All! First thanks for viewing this thread. My issue is I have a class below that I want to call and the constructor requires a File variable and I do not understand how to declare this so I can call it from my main class. My last issue is … Software Development java java-swing xml | |
I'm using Borland's TurboC++ 2006 Explorer. I'm working on a class project, and have a program consisting of 3 files: [COLOR="Red"]Header (.h) Definitions (.cpp) Driver (.cpp)[/COLOR] [COLOR="Red"]Definitions.cpp[/COLOR] contains the typical [COLOR="Red"]#include Header.h[/COLOR] The program compiles and links correctly if [COLOR="Red"]Driver.cpp[/COLOR] contains the statement [COLOR="Red"]#include Definitions.cpp[/COLOR] The instructor doesn't like using … | |
how would i remove all the white space from an istream and replace them with "-" before producing an ostream? Software Development c++ | |
I've read that the bits in a byte (in c++) are implementation or system dependent. What does that mean? Does it mean implementation of c++ or the processor architecture or some other thing? And I've read that you should use sizeof to determine the size of a byte? Could you … Software Development c++ | |
Hello., Have a question about array being set from function argument. I wrote this little program, and want to know why cant i set an array size from the function argument. Any help would be greatly appreciated. [CODE] int money(int deposit, ...){ int i, sum = 0, nextvar; // myArr[deposit]; … Software Development c | |
Hello, I am trying to write a macro to add a few headings. I have the following macro. Sub DOPaste() Dim i As Integer y =11 z = y Do While Sheets("Investments").Range("A" & y).Value <> "" i = 1 Sheets("Investments").Cells(z + 1, "D") = "Interim for year" Sheets("Investments").Cells(z + 3, … Software Development visual-basic | |
Hey I'm new here registered today. I've been trying to import some definitions from other .py files in the same folder, but for some reason IDLE wont recognize/ import them and keeps telling me they arent defined. I have tried From file import * and was wondering if my syntax … Software Development python | |
Hello. I'm making a program for my friend who is running an RPG Adventure at his school. I'll explain the basis behind the program and then what the problem is. Basically, before any battle, each player is required to roll a d12 and add their Battle Initiative Value (BIV) to … | |
How do I create custom colors? I do not like the color for the clRed, nor the clMaroon. I want a red that is the same color as this hex value: #AA0000. This will help a lot to make the form look exactly how I planned it. Thanks, Software Development pascal | |
Hey what would be the correct syntax for a vector of char* with a size of [2]? ive got it written like this.. vector< char* > myVector(); vector< char* > ::iterator myIterator; // reads in something myVector.push_back(temp); myIterator = myVector.begin(); cout << myIterator << endl; why does it cout nothing? Software Development c++ | |
I have two elements that I have in a List Object, but am trying to compare these elements and if they are the same return true otherwise false. But am unsure how to get the two items from the list and compare? Thanks, Software Development java | |
so lets say i have a program and it keeps on outputting the letter 'A' constantly until the user presses enter or something. then it will exit the loop and continue with the rest of the program. how would i do this? Software Development pascal | |
I am developing an application an am intrested in having to be able to backup and restore the full SQLServer database from the front end. i have succesfully done the the back up module using the code below [ICODE] Try Using dc As New SqlClient.SqlConnection(My.Settings.TRONICALConnectionString) dc.Open() Using dcom As New … | |
Hello again people. I have a problem. Think of a textarea. The text area is filled with information depending on an entrance in a textbox. Like userID is entered and the information is filled in the textarea. I want the user to edit the textarea. But when he is editing, … Software Development java | |
Hello, I have an amazing thing in my code, when I take the date from input txt file, and i put it to an output txt file, there was not the same date, for example: if in the input the date birth for person is: 29/07/1981 when I get the … Software Development java | |
I am an undergraduate Student, from Computer Science and engineering department I can construct a crawler in Perl, for one particular web-site to fetch the useful information, in my case the - Job Ads at that company's webpage. Now, I want to construct some crawler that is generalized for say … Software Development engineering perl | |
Hi there, i am deeply troubled as my application runs successfully and adds new entry to the table and i can see that via datagridview. but as soon as the application closes and i check the database all is gone. there is no entry in the database. kindly see my … Software Development open-source | |
Hi, I have completed one project but I would like that on every 1st April when I click [B]copytable command botton [/B] from VB6, a [U]copy of the table [/U]with blank records under the [U]same database [/U] should be created with [B]new name [/B]having same field name so that my … Software Development visual-basic | |
I want to read and write string from file, - Dont want to overwrite on the existing file - Where to put the read file code as in Constructor if file is not created then it will generate error. help me to solve this issue. [code=cplusplus] class Security{ private: Map<string>password; … Software Development c++ file-system | |
Hi, I already create connection to sql database and successfull. I need to know how to run two command together?...This is my problem:- [CODE] sqlcmd = New Sqlcommand ( "Select * from Staff_Main where Staff_id like '"&textbox1.text&"'",cn) dr = sqlcmd.executereader while dr.read() label1.text = dr.item(1) 'item 1 is name sqlcmd … | |
I'm writing code to control a camera and I'm using boost threads to repeatly get the camera image and write it to a gui among a few other things while everything else runs. It's written with wxWidgets and it has a menu with an option to open/close the link to … Software Development c++ gui visual-studio | |
write a program to find size of a file without traversing it character by character? will anybody tell me the logic hw to approach it is there any trick involved Software Development c | |
Suppose i have a class called [B]Vector3[/B] methods and attributes are defined in [B]Vce.h[/B] file, methods of this class are implemeted in [B]Vec.cpp[/B] file, now i want to distribute this class to my other xxx(what so ever), [B]What i want:[/B] 1.Allow them to see what methods and attributes are available … Software Development c++ | |
void openfile(char *,FILE**) what does double stars indicates Software Development c file-system | |
IF i have this function... [CODE] node* get_lowest(node* root) { node* min = root->child[0]; for(int i = 0; i<root->child.size();i++) { if(min > root->child[i]) min = root->child[i]; } cout<<"Here it is:"<<min->data<<endl; return min; } [/CODE] how do I get it to return the smallest indexed pointer? for example if root->child[0] and … Software Development c++ | |
i have just started learning C++,this is my first programming language. but i was solving some question in array,but this one was a problem to me. here it goes. create array,in that array find sub arrays(subset), in which there is a maximun number in increasing order. for example array below … Software Development c++ | |
I've written a code for JButton handeling.The code is= [code=java] import javax.swing.*; import java.awt.*; import java.util.Calendar; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; // Example using defaultButton and JRootPane.setDefaultButton() public class DefaultButtonExample { public static void main(String[] args) { // Create some buttons JButton ok = new JButton("OK"); JButton cancel = new JButton("Cancel"); … Software Development java java-swing |
The End.