132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jara33

Hi, I need to do this program in my university and I was wondering how can I do it so that when there are no exits available, the program just says "type q to quite", and skips the 'Type the first letter of the next step or direction you want …

Software Development c c# c++
Member Avatar for zeroliken
0
161
Member Avatar for honeybee2090

hi there is a small problem in codes need help i am useing these codes and here is site login link http://crypo.freeforums.org/ucp.php?mode=login Private Sub cmdlogin_Click() WebBrowser1.Navigate "http://crypo.freeforums.org/ucp.php?mode=login" lblstatus.Caption = "Connecting...." End Sub Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If URL = "http://crypo.freeforums.org/ucp.php?mode=login" Then WebBrowser1.Document.All("Username").Value = user.Text WebBrowser1.Document.All("Password").Value …

Software Development visual-basic
Member Avatar for honeybee2090
0
374
Member Avatar for nyfan68

I have an assignment which is two parts. The first part I have solved. It calls for me to write a program that can read an XML file which then creates a purse a purse object and then prints the total value of the coins in the purse. The second …

Software Development file-system java xml
Member Avatar for nyfan68
0
330
Member Avatar for andy8521

Hi I am starting to learn Java. I am new to Java. Which book do you think is the best book to learn Java for Beginners?

Software Development java
Member Avatar for Krokcy
0
270
Member Avatar for joankim

Hey there. I'm trying to raise a longs to the second power, but as you might know, Math.pow takes two doubles, and also returns a double. Efficiency is kind of important, but it is more important to have this working. Do you know how I might go about solving this? …

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for bam010893

import java.util.Arrays; public class Names2 { public static void main(String[] args) { while (!StdIn.isEmpty()){ String choice = StdIn.readString(); String[] myStrArray = new String[] {choice}; //SORTS STRING ARRAY INTO CASE & THEN ALPHABETICAL ORDER Arrays.sort(myStrArray); //for loop to print int values to console for (int a = 0; a < myStrArray.length; …

Software Development java
Member Avatar for NormR1
0
203
Member Avatar for MasterHacker110

I need help with a program i am writing. It takes in a line from the user and then decides wat to do. there are to many options to spesify. some of the options are: set TARGET 453.212.556.22 This command will differ becuase the host will never be the same. …

Software Development c++ session webcam
Member Avatar for MasterHacker110
0
274
Member Avatar for satyamM

Hello all, I am making a database management project named **'Summer research Program'.** In this project, faculty and students register themselves at a portal. Faculty offer some projects to students. Students choose some projects according to their wish/interest. **Now my Prof says me to increase complexity of the this project.** …

Software Development
Member Avatar for satyamM
0
135
Member Avatar for maverick420

> I'm implementation polymorphism and have one confusing that if I use instanceof then I'm trying to perform casting which voids polymorphism so will that be any way to avoid instanceof with the code and still have the program working? Block of code where I have used instanceof starts from …

Software Development java java-swing
Member Avatar for maverick420
0
210
Member Avatar for ddm

Design a CPU Timer class (you may name it CPUTimer). This class should allow the user to start timer, stop timer, compute delta time and print the lapsed CPU time of any block of code in a program. #pragma once #include <iostream> #include <cmath> #include <ctime> #ifndef CPUTimer_h #define CPUTimer_h …

Software Development c++ oop
Member Avatar for mike_2000_17
0
154
Member Avatar for learned1

I am making a game as a programmer that has only worked with python for about 2 months, and I need a way to save data. I know about pickle, but the Documentation does not help at all. Please note that I am using 3.1.1, so don't give me answers …

Software Development python
Member Avatar for hughesadam_87
0
178
Member Avatar for Andy90

I m creating an app! in which if the user moves the cursor the message should be displayed! But I m using setcursorpos() in my form to set cursor position which display the message! I dont want message to be displayed when mouse is moved through function, I want message …

Software Development api pc-peripheral
Member Avatar for skatamatic
0
214
Member Avatar for livesinabox

What I am supposed to do is create a C program which implements a "dumb" Sliding Window Protocol Implementing Client Server Program. First the client and server establish a connection between themselves and then the client sends "RST" to the server. The server inturn sends its window size (10) to …

Software Development c client-server socket-programming
0
162
Member Avatar for vmars

I'll try to start over again: Windows7, Python3.2.. When I click on a *.py file it starts up the python.exe interpreter in interactive mode. What I want it to do, is to RUN the *.py file. Please, how can I accomplish this. A *.py file is associated with python.exe . …

Software Development python windows-vista-7-8
Member Avatar for vmars
0
2K
Member Avatar for vmars

Greetings, I installed python3 on win7, and I would like to run the turtleDemo.py . But can't seem to get it going. Can anyone help? Thanks...vm

Software Development python
Member Avatar for vmars
0
2K
Member Avatar for Tobiczyk

I am new to C# and am trying to figure out if there is an easy way to send a DataTable to DataGridView.

Software Development
Member Avatar for Mitja Bonca
0
253
Member Avatar for abhishekagrawal

Hi All, I have written a program to input a decimal string and convert it to character string. Below is my program: /*this program converts the decimal representation of an input string to character representation*/ #include<math.h> #include<stdio.h> #include<stdlib.h> char int2str(int n); int main() { int dec[100]={0},i,j,decindex,ndec=0,nchar; char character[100]={'\0'}; printf("Enter the …

Software Development c perl
Member Avatar for Ankit_Parmar
0
130
Member Avatar for visitor11

why is it "ur project is out of date" when i try to run cpp file opencv on vbs 2008

Software Development c++
Member Avatar for Ancient Dragon
0
171
Member Avatar for mobeen89

Hello. So I am making an application that sets up a serial port and creates a DataReceived event whenever there is data received on the serial port. Now, I want to update a listbox in my UI whenever the data received event occurs but a cross threading error occurs. I …

Software Development
Member Avatar for Philippe.Lahaie
0
661
Member Avatar for v3ga

I have a JLabel and a JPanel which both implements MouseClicked methods and I have added the JLabel to the JPanel but when the JLabel is clicked, the MouseClicked method of JPanel is invoked. How to fix this>??

Software Development java
Member Avatar for v3ga
0
159
Member Avatar for kalookakoo

[CODE]def scoreScreen(): #Keeps Calling score = 999999/canvas.data.timer canvas.create_rectangle(0,0,1000,460, fill = "black") canvas.create_text(500,200, text = "Your Score was", font = ("Comic Sans MS Bold", 20, "bold"), fill = "Red") canvas.create_text(670,200, text = str(score), font = ("Comic Sans MS Bold", 20, "bold"), fill = "Red") canvas.create_text(500,400, text = "You have beat the …

Software Development python tkinter
Member Avatar for jemnbuckeye
0
4K
Member Avatar for dhija22

Hi Im am bigginer in java and i want to know :If a,b are variables of integer type and S1,S2 are variables of Student,what does mean a=b, si=s2. Is any change in way how the value pass in these examples?? I am waiting for a response best regards Eda

Software Development java
Member Avatar for ash.28.88
0
126
Member Avatar for sadzee

**Hey, Hi all! I'm a bachelor student, new to Java. Following code is giving error in PrintDetails() What parameters should I define in it?? Kindly check and tag out my mistakes in the following code.. Thanks ^_**^ class student { String a;String b;char c;double d; student(String name,String rollno,char gender,double gpa) …

Software Development java
Member Avatar for ash.28.88
0
195
Member Avatar for jrlittle86

I have an application written in VB.Net with a MySQL database that is working fine in my development environment. I would like to create an installation package to test on other computers. The install package should include: 1. Check for .Net 4 - if it doesn't exist then install it …

Software Development mysql vb.net
Member Avatar for Reverend Jim
0
320
Member Avatar for prajot_03

hi... I am having a problem in vb.net I have a data gride view ,in which 2 drop down list (coloumn) are there 1. select category 2. select item name there are 2 category brandy and whisky if i select brandy from drop down list from datagrideview it should populate …

Software Development vb.net
Member Avatar for artemix22
0
191
Member Avatar for Daffodil_Thursday

I am writing a quiz program in C# in Visual Studio. When I build it it doesn;t return an errors or warnings. However when I debug, it just brings up a blank screen with no text or buttons etc. I have tchecked all the names match those in the forms …

Software Development c c# c++ visual-studio
Member Avatar for thines01
0
231
Member Avatar for Samama

provide a set of PC-based tools and utilities to organize historical performance data from an OpenVMS system. Purpose of System Synopsis To capture and maintain a history of variables directly affecting the performance of the VMS production systems. Then provide a graphic interpretation of that data to allow for trending …

Software Development java
Member Avatar for stultuske
0
114
Member Avatar for JerBear24

What I'm supposed to do: Rewrite the class below, so that it throws appropriate exceptions instead of returning -1 as an error code. Write test code that attempts to withdraw and deposit invalid amounts and catches the exceptions that are thrown. Original code: class Account { private double balance; public …

Software Development java
Member Avatar for DavidKroukamp
0
383
Member Avatar for Suffii

Hi, I need to loop through a specific column(Not all the columns) in DataGridview amd update some values: For Example I have dataGridView populated with a csv file and contains 4 column as Name, Age, Asset Martin,32,350 John,19,12 Joay,47,1200 humberto,50,950 Richardo,62,23 I displaye the cells value in DataGridView on a …

Software Development
Member Avatar for Mitja Bonca
0
194
Member Avatar for shotgun2011

Hi everyone! This is the code that I have written in order to print a tic-tac-toe board. For example, if input was this: 1 2 0 1 1 2 0 2 0 The board would be this: X . O X X . O . O However, I don't know …

Software Development c
Member Avatar for Dani
0
149
Member Avatar for blake81

Need help with just a couple of minor errors. for the lab I am currently doing I have 2 service/class (no clients or application classes). these are my errors Car2.java:138: error: not a statement Cars D = (Car2) car ^ Car2.java:138: error: ';' expected Cars D = (Car2) car Can …

Software Development java
Member Avatar for zeroliken
0
190
Member Avatar for Nawaf15

Hi everyone, I have been having problems with this code. I can't figure out how to get it to sort items alphabetically. Another problems is that the code never reads items from disk, but I can't figure out where the problem is. I hope you guys can help me. #include …

Software Development c++ file-stream
Member Avatar for histrungalot
0
205
Member Avatar for sujinsr

#include "stdio.h" int main() { //FILE *fp; char get[20] ; char password[15]; int choice; choice: printf("\nSELETCT: 1.Login 2.Password change 0.Exit \n"); scanf("%d", &choice); if(choice == 1) { FILE *fp; fp = fopen("PASS.txt","r"); fgets(password,15,fp); printf("your current password is %s\n", password); printf("Enter password: "); scanf("%s",get); if( !strcmp(get, password) ) { printf("\n%s\n", "Logged …

Software Development c
Member Avatar for Nimrod7676
0
267
Member Avatar for Daigan

#include <stdio.h> int main() { char opt; do { printf ("Enter y or n: "); opt = getchar(); } while (opt != 'y' || opt != 'n'); } okay so my code does not stop when I enter y or n, which I think it should.

Software Development c
Member Avatar for Nimrod7676
0
108
Member Avatar for James19142

This app I finally got the splashscreen to the way i want it, but when I run the .exe from the explorer the splashscreen loses its transparency and has a white background replacing the glow; In when the compiler runs it directly after it builds it look exactly how it …

Software Development c++ display image qt
0
116
Member Avatar for simplyflawless

The class contains: - Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. - A string data field named color that specifies the color of a rectangle. Hypothetically, assume that all rectangles …

Software Development java
Member Avatar for DanOath
0
22K
Member Avatar for Gobble45

Hello all, Ive done some googling around, and cant find anything that explains why my date isnt being formatted to what i tell it. my code: dim date_now as date date_now = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") So for example if the date/time is February 11 2015, 4:44:23pm it would be formatted as: …

Software Development vb.net
Member Avatar for Gobble45
0
218
Member Avatar for c.pentasuglia

In a nutshell i have a java program that takes parameters from an XML file. I made a .jar file from my java project. Within the java project i have the XML file set to a static directory, i'd like to be able to change that so the jar would …

Software Development file-system java xml
Member Avatar for c.pentasuglia
0
247
Member Avatar for triumphost

I have a class that just creates a blank bitmap it's quite large so I removed a LOT! of code to make it easier to see my problem. No knowledge of bitmaps required. I declared "Pixels" as an array of RGB but in one function, Pixels is empty whereas in …

Software Development c++
Member Avatar for triumphost
0
225
Member Avatar for berniefitz

Hi there, I am currently struggling through trying to figure out why a statement in my source code isn't being executed when running the program. The code is as follows: taxableValueDifference := previousTaxableValue - newTaxableValue; grandTotalTVDifference := grandTotalTVDifference - taxableValueDifference; XLWorksheet.Cells[row, 7].Value := XLWorksheet.Cells[row, 7].Value + taxableValueDifference; The first and …

Software Development delphi pascal
Member Avatar for berniefitz
0
149
Member Avatar for tleverington1

Hello all, I am having problems setting up a connection with a mysql database that i'm going to need to use for one of my projects. My code to establish the connection is as follows: import java.sql.*; import java.sql.Connection; import java.sql.SQLException; import java.sql.ResultSet; import javax.sql.ConnectionEvent; import java.sql.DriverManager; public class SQL …

Software Development java mysql
Member Avatar for tleverington1
0
161
Member Avatar for Twin802

I would like this code to be changed so that whenever I change the line the line will still be a wall... slin1_1 = 320 slin1_2 = 0 elin1_1 = 320 elin1_2 = 200 strtlin1 = (slin1_1, slin1_2) endlin1 = (elin1_1, elin1_2) lin1sz = 1 #creates first line above ^ …

Software Development python
Member Avatar for Twin802
0
228
Member Avatar for fishsticks1907

def bubble_sort(a): for i in range(0, len(a)): for j in range(0, len(a) - 1): if(a[i] < a[j]): a[i], a[j] = a[j], a[i] #can someone explain this part of the code for me #i tried doing (im more of a c++ programmer): temp = 0 temp = a[i] a[i] = a[j] …

Software Development python
Member Avatar for TrustyTony
0
250
Member Avatar for Kert

I need to make a checkers board that has to be also resizeable. At the moment I'm using JPanel and it's method paintComponent to paint the squares. But the problem is with the class test: the squares drawn have to be squares and they cant go out of proportion, so …

Software Development java java-swing
Member Avatar for Kert
0
187
Member Avatar for SpiritualMadMan

The documentation for the textEdited signal shows the use of a required parameter const QString& void textEdited (const QString&) I am unable to get the Signal to work. Perhaps because I do not understand how to use the "const QString&" Is this a literal copy into the parameter or is …

Software Development python
Member Avatar for Lardmeister
0
413
Member Avatar for Behseini

Hi, I am trying to run an application which is supose to present a CSV file contents in a DataGridView.The problem is the csv file contains a line (Fiist Line) which is the Title of CSV like: ================================ Title: Titanic Director,Year,Rate,Star1,Star2 James Cameron,1997,7.5,Leonardo DiCaprio,Kate Winslet ================================ and here is my …

Software Development file-system
Member Avatar for thines01
0
1K
Member Avatar for ashboi

int isaMUstring(char* sequence, int size) //function isaMUstring(char* sequence, int size) { int i,j; for(i=0; i<size; i++) { if(sequence[i]=='M'||sequence[i]=='U'||sequence[i]=='I') j=1; else j=0; } return j; } int canApplyRule1(char* sequence, int size) //function canApplyRule1(char* sequence, int size) { if(sequence[size-1]=='I') return 1; else return 0; } int canApplyRule2(char* sequence, int size) //function canApplyRule2(char* …

Software Development c++
Member Avatar for scudzilla
0
136
Member Avatar for ChaseRLewis

So am doing a run down of different 3DMath Libraries. I am noticing functions with return types are HORRIBLY inefficient compared to void returns. I decided to do a rundown of how move constructor/assignment effects this. Well having a move constructor is seeing an average of 3.5-4x improvement, but doing …

Software Development c++ matrix-multiplication
0
62
Member Avatar for nuclear

I had this talk with a friend a while back and now i remmember that he said that C# is like a newer version of C++, but i think thats not correct, since C, C++, C# is kinda all oriented in this or that, what do you guys think of …

Software Development c++
Member Avatar for mike_2000_17
0
162
Member Avatar for kindofsudden

I have a bound datagridview and a dataset with tables. I have two sets of comboboxes bound to the same field "Restaurant" in the tables (mirroring each other). In the "NewEmployeeRestaurant" combobox I change the value and it reflects in the datagridview. I can shoot around clicking all over the …

Software Development dataset vb.net
Member Avatar for kindofsudden
0
288

The End.