132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Metahuman

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
Member Avatar for JamesCherrill
0
97
Member Avatar for Birendra Dhami

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++
Member Avatar for csurfer
0
110
Member Avatar for leegeorg07

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
Member Avatar for leegeorg07
0
2K
Member Avatar for Mubo

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 …

Software Development algorithm java
Member Avatar for JamesCherrill
0
145
Member Avatar for cmick56

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 …

Software Development c++ ios
Member Avatar for ArkM
0
106
Member Avatar for navachaitanya

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
Member Avatar for sweetsasthi
0
85
Member Avatar for Virux

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
Member Avatar for Virux
0
4K
Member Avatar for revenge2

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
Member Avatar for csurfer
0
109
Member Avatar for serkan sendur

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
Member Avatar for serkan sendur
0
456
Member Avatar for fadia

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
Member Avatar for achied
0
364
Member Avatar for slawted

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++
Member Avatar for slawted
0
99
Member Avatar for meb111

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++
Member Avatar for meb111
0
79
Member Avatar for Lukezzz

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++
Member Avatar for Lukezzz
0
99
Member Avatar for sciguy77

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
Member Avatar for sciguy77
0
162
Member Avatar for MrNoob

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
Member Avatar for Narue
0
573
Member Avatar for themaster

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
Member Avatar for Ancient Dragon
0
294
Member Avatar for njparton

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
Member Avatar for njparton
0
208
Member Avatar for chaines51

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++
Member Avatar for ArkM
0
171
Member Avatar for larryperl

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
Member Avatar for KevinADC
0
62
Member Avatar for seemant_sun

"I am a boy\r\n" if this string is readed through using fgets in an array what will get readed

Software Development c
Member Avatar for seemant_sun
0
484
Member Avatar for star34

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
Member Avatar for NeoKyrgyz
0
114
Member Avatar for animefun2

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
Member Avatar for seemant_sun
0
196
Member Avatar for k2k

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
Member Avatar for masijade
0
154
Member Avatar for djdanjo82

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
Member Avatar for javaAddict
0
142
Member Avatar for DonB

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 …

Software Development c++ ide
Member Avatar for DonB
0
165
Member Avatar for Usura

how would i remove all the white space from an istream and replace them with "-" before producing an ostream?

Software Development c++
Member Avatar for Ancient Dragon
0
791
Member Avatar for gnobber

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++
Member Avatar for DonB
0
327
Member Avatar for atman

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
Member Avatar for siddhant3s
0
123
Member Avatar for shahji

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
0
74
Member Avatar for yamman13

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
Member Avatar for jlm699
0
68
Member Avatar for lewigi2012

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 …

Software Development pascal wordpress
Member Avatar for lewigi2012
0
114
Member Avatar for CTBC

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
Member Avatar for FlamingClaw
0
105
Member Avatar for Usura

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++
Member Avatar for William Hemsworth
0
98
Member Avatar for jackiejoe

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
Member Avatar for javaAddict
0
535
Member Avatar for killhha

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
Member Avatar for killhha
0
549
Member Avatar for awo

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 …

Software Development sql vb.net
Member Avatar for samir_ibrahim
0
136
Member Avatar for Xessa

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
Member Avatar for Xessa
0
120
Member Avatar for titosd

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
Member Avatar for masijade
0
99
Member Avatar for hopewemakeit

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
Member Avatar for hopewemakeit
0
157
Member Avatar for jincom

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
Member Avatar for kvprajapati
0
85
Member Avatar for kehar

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
Member Avatar for QVeen72
0
146
Member Avatar for yun

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
Member Avatar for Stinomus
0
243
Member Avatar for kerek2

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 …

Software Development sql vb.net
Member Avatar for kerek2
0
389
Member Avatar for OffbeatPatriot

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
Member Avatar for Stinomus
0
125
Member Avatar for seemant_sun

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
Member Avatar for Ancient Dragon
0
120
Member Avatar for AbsoluteCPP

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++
Member Avatar for WaltP
0
101
Member Avatar for seemant_sun

void openfile(char *,FILE**) what does double stars indicates

Software Development c file-system
Member Avatar for Ancient Dragon
0
137
Member Avatar for JackDurden

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++
Member Avatar for VernonDozier
0
255
Member Avatar for mrcniceguy

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++
Member Avatar for mrcniceguy
0
113
Member Avatar for coolbuddy059

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
Member Avatar for Ezzaral
0
293

The End.