132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zachattack05

Silly question I am sure, and I'm almost positive I know the answer to this, but, if I have a static method that has a return type that is a non-static class type, when the static method is executing and after the method has initialized the class to return (but …

Software Development
Member Avatar for zachattack05
0
215
Member Avatar for dana.persad.5

i need help to write a code for the folllowing question. A realtor wishes to track her commissions of house sales. The information that she collects is as follows: house address a string house type a string ( split level, bungalow, etc.) sale price a double She wishes to calculate …

Software Development java
Member Avatar for javabitch.04
0
136
Member Avatar for drichird

#module nametest def showName(): print("__name__ is: " + str(__name__)) If I import nametest into another module or into the shell interpreter and call nametest.showName() I find that name = "nametest", in other words __name__ gets the module name it is a built-in member of? The only exception I know of …

Software Development python
Member Avatar for drichird
0
250
Member Avatar for blahblah1234las

New concepts to be applied for this assignment Lists File input and output Exceptions Generating random numbers Debugging flags/messages (Note: style requirements from previous assignments e.g., functional decomposition must also be applied). Introduction Write a fitness simulation whereby a single runner is traveling a fixed distance. The runner only has …

Software Development operating-system python
Member Avatar for HiHe
0
127
Member Avatar for ogrishmania

I'm sort of a begginer in classes. I must implement a simple problem: chosing a phone. I thought that I should make a program in which a user can select some conditions, like must have wifi or not, android or other, etc. and return a list with the phones that …

Software Development android c++ oop
Member Avatar for mrnutty
0
286
Member Avatar for aaron.jensen.923

Write a Python program which will read data for several students from a text file and create a list of lists to store that data. The data must be read from a text file named “Lab11.txt”. Each line in the text file contains the first name, last name, techid, number …

Software Development data-structure python
Member Avatar for HiHe
0
311
Member Avatar for fdama

Hi, I am working on an exercise in a book and have difficulty with it. I have completed the first part of the exercise which was to create a guessing game where the the player attempts to guess a secret number randomly generated. Suggestions such as to guess Lower and …

Software Development python
Member Avatar for woooee
0
269
Member Avatar for Matigo

Hello everyone In my app i'm using the counter and timer, But im stuck with resetting the counter My code is: If Timer2.Enabled = True Then counter = counter + 1 Label1.Text = counter If Label1.Text = "180" Then Timer2.Enabled = false Timer3.Enabled = true End If End If End …

Software Development vb.net
Member Avatar for Matigo
0
793
Member Avatar for ppotter3

Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am …

Member Avatar for magadascar
0
2K
Member Avatar for thechetantalwar

I have a created a small user interface in C++ using Graphics. Now i want to extend it. Such as i want to make it bootable, or how can it act as an Operating System?

Software Development c++ operating-system user-interface
Member Avatar for thechetantalwar
0
354
Member Avatar for Viped

Hi, I was creating clone of breakout and got the game working correctly. But after setting up menu my keyboard doesnt respond anymore. But if I launch game directly without Menu class keys are working perfectly. Where the problem might be? Here is the full source code. VBreakOut.java package net.viped; …

Software Development apple java java-swing macos
Member Avatar for NormR1
0
409
Member Avatar for mukiibi

The code below compares three numbers and it prints out the Maximum and Minimum value, let me hope it will rescue somebody :) import java.util.Scanner; public class MaxMin { public static void main(String args[]) { int w,x, y; System.out.println("\n\nTHE PROGRAM BELOW CALCULATES AND OUT PUTS THE MAXIMUM AND MINIMUM OF …

Software Development java
Member Avatar for bibiki
0
225
Member Avatar for DyO1

Hello, I need a code that will check if a certain text exist. This is how it's now: If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text + Environment.NewLine + ("It's") + DateTime.Now End If and I want to make something like this If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text …

Software Development vb.net
Member Avatar for Reverend Jim
0
223
Member Avatar for thompsonSensibl

Hello, I'm in a pickle. (Please observe the code) In the actionPerformed method, I don't know how I can get the value of the variable 'minutes'. I can get 'hours' by e.getActionCommand(), but can't do minutes that way. I need to get both 'hours' and 'minutes' at the same action. …

Software Development java java-swing
Member Avatar for thompsonSensibl
0
243
Member Avatar for sh2012.aps

i am using the url = "https://prd.aps.net/cm/json/login.json?username=aps@aps.com&pass=ca4433$$&apikey=1dd80ss107s3ad9593c857cc6d14d3a3" Note:: if iam using the http as a protocol it just grab the values in a few seconds(3 to 4) but using https its a big issue around 40 sec it takes when i am calling curl_easy_perform(curl) why so? please take a part …

Software Development c++ http-protocol json
0
170
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make a program that will copy text from an excel spreatsheet and place it in another using visualbasic.net not vba? Please Help

Member Avatar for Reverend Jim
0
278
Member Avatar for maclam13

I am trying to read data from a file in a loop. The file looks like this: X Joe Scholtz 437-4798 A Tim Wade 768-7658 X Sara Jobs 326-7857 ! Jaynce Bee 354-8678 (The X in front is for preferred or not preferred.) I am getting the first and last …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
207
Member Avatar for timon.bijl

Hello , i was kinda getting interested in a keylogger so can anyone maybe copy paste a keylogger code just an easy 1 . If you type something it just has to appear in a textbox if you can help me , please do it! thx

Software Development vb.net
Member Avatar for pritaeas
0
113
Member Avatar for alaa sam

Hi everyone I'm using stat() function to get the file's attributes , but I don't know how to get the permission of it . So can anyone tell me how to find the permission of the file?? Thanks in advance

Software Development c
Member Avatar for alaa sam
0
840
Member Avatar for sundar.mjk

hi it 's working but the Grid view not disp.lay the details Dim cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;" & "Data Source=D:\Task_one_one\TaskNew\TaskNew\App_Data\db1.mdb") cn.Open() Try Dim myTable As DataTable = New DataTable("MyTable") 'Dim ds As DataSet = New DataSet myTable.Columns.Add(New DataColumn("Emp Id")) myTable.Columns.Add(New DataColumn("Start Time")) myTable.Columns.Add(New DataColumn("End Time")) myTable.Columns.Add(New DataColumn("Hours")) myTable.Columns.Add(New …

Software Development dataset open-source vb.net
Member Avatar for G_Waddell
0
174
Member Avatar for william.bishop.7169

Consider the following: for (int counter = 1; counter < 1; counter -) How many times will the loop execute?

Software Development java
Member Avatar for rohit.deshmukh2009
0
128
Member Avatar for krystosan

I want to move/ delete not os.remove files or folder recycle bin on windows or trash in other OSes using standard lib available in python .. is it possible ?

Software Development python
Member Avatar for krystosan
0
124
Member Avatar for germainelol1

I have a Java class called Term holding polynomials like below public Term(int c, int e) throws NegativeExponent { if (e < 0) throw new NegativeExponent(); coef = c; expo = (coef == 0) ? 1 : e; } I also have an equals method in the same class like …

Software Development java mathematics
Member Avatar for JamesCherrill
0
504
Member Avatar for Jwerb86

Hey all! I'm trying to write a program that simulates a student database. From the user, it takes the number of students there are, their names, student ID's, and majors. I'm having a runtime problem with the code I have and was curious to know if anyone can help. It …

Software Development c++
Member Avatar for Jwerb86
0
208
Member Avatar for Goldfinch

Hi, I'm having some trouble writing a method to sort a LinkedQueue ADT. I find it difficult to keep track of the order things when sorting is concerned (ha ha ha). I'm trying to pull the values out of a Queue which store objects of type PrinterItem. Those objects in …

Software Development java queue
Member Avatar for Goldfinch
0
160
Member Avatar for parth27987

> The game of Rush Hour is played in a 6x6 grid. The goal is to drive your vehicle out of the maze as quickly as possible. You may move each vehicle one square at a time, but only in the direction (up-down or left-right) that is oriented. You may …

Software Development c++ pdf puzzle
Member Avatar for parth27987
0
506
Member Avatar for Vish0203

How to manipulate .doc files using c++ ??? I'm working on a project which needs this manipulation.. But, I feel that it is not possible to manipulate .doc files :/ can anyone help me out here??

Software Development c++
Member Avatar for Vish0203
0
277
Member Avatar for natehome

so im trying to make a very basic multiplayer game that gets a players x y from a server then displays the player. the script works fine when there is only one user in the database but when more users are added the script wont display the right player. i …

Software Development mysql python
Member Avatar for christopher.j.burnham
0
605
Member Avatar for ranam

Error 4 error C2504: 'CYodaGeneralAuditListCtrl' : base class undefined c:\teamyoda\mainline\yoda\accounting\yodaaccountingauditlistctrl.h 15 i am recieving this erro can any one help me in solving it

Software Development c++
Member Avatar for ranam
0
115
Member Avatar for dr.syroj
Member Avatar for Reverend Jim
0
110
Member Avatar for Archaismic

Here's what I'm working with. #include <windows.h> #include "iostream" void SendText(char* message, int size) { int lc=0; do{ keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_EXTENDEDKEY,0); keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_KEYUP,0); lc=lc+1; } while(lc<size); keybd_event(VK_RETURN,0,KEYEVENTF_EXTENDEDKEY,0); //Presses Return keybd_event(VK_RETURN,0,KEYEVENTF_KEYUP,0); //Presses Return } int main() { Sleep(5000); char a=98; SendText("a", strlen("a")); } I think this is a noobish question but, how would I …

Software Development c++
Member Avatar for Archaismic
0
209
Member Avatar for tboctavan

Ok, the code button is not working for me today, so I'kk be brief. This is homework, but it's been turned in and graded (A). My question is how do I make it so pressing enter clicks my button? for example: private void computeButton_Click(object sender, EventArgs e) { double hoursWorked …

Software Development gui
Member Avatar for tboctavan
0
210
Member Avatar for Jenniferting

Credit card numbers follow certain patterns. A credit card number must have between 13 and 19 digits. It must start with for example: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards So, this here is the code thats identify either a …

Software Development algorithm c
Member Avatar for Ancient Dragon
0
252
Member Avatar for taylor.mitchell.353

I am making a project using hashtables. I have to use a linked list to handle duplicate hashcodes. The Objects that I am turning into hash tables are State objects with just a String name. I have debugged and tested my entire project and cannot figure out why it is …

Software Development java motherboards-cpu-ram seo
Member Avatar for taylor.mitchell.353
0
706
Member Avatar for diluadamu
Member Avatar for <M/>
0
61
Member Avatar for ilian.bonov

#include "stdafx.h" #include <stdio.h> #include <math.h> #include <iostream> using namespace std; int main() { int a; int b; int c; double X1; double X2; double D; cout<<"a="; cin>>a>>endl; cout<<"b="; cin>>b>>endl; cout<<"c="; cin>>c>>endl; X1 = (-b+sqrt((b*b)-(4*a*c)))/(2(a)); X2 = (-b-sqrt((b*b)-(4*a*c)))/(2(a)); D =(b*b)-(4*a*c)); if (D >= 0) { cout<<"..."<<X1<<X2<<endl; } if (D < …

Software Development c++
Member Avatar for ilian.bonov
0
132
Member Avatar for axn

How do you padd textboxes in cgi. I have 2 colums of textboxes but would like to more spacing in column and rows. print $q->Tr( $q->td('Semester:'), $q->td( $q->checkbox_group( -name => 'semester', -values => ['Spring 2012', 'Summer 2012', 'Fall 2013 ', 'Spring 2013', 'Summer 2013', 'Fall 2013', 'Spring 2014', 'Summer 2014'], …

Software Development perl
Member Avatar for 2teez
0
155
Member Avatar for Programmer629

* Hey ppl! i was wondering if anyone could get me started with a project in VB.NET 10. the project i wanna create is a program lik outlook 2010. its prob a long shot but i want it to be in *COMPLETELY* VB. i have VS 10 .net and u …

Software Development email vb.net
Member Avatar for Programmer629
0
183
Member Avatar for Programmer629

Hey Everybody! I'm totally new to this and ligit just signed up here. This is also my first post. I want to create the card game war as my first project in C#. I have Visual Studio.Net 2010 and am a total noob. plz make instructions simple. thx!

Software Development c# visual-studio
Member Avatar for Programmer629
0
459
Member Avatar for ThisIsMeOrIsIt

Hi all - I need to read a text file using a scanner class that has the following format: 5 5 5 5 5 5 5 0 0 0 0 5 5 5 0 5 5 5 0 0 0 5 5 5 5 0 0 2 0 The first …

Software Development file-system java
Member Avatar for ThisIsMeOrIsIt
0
2K
Member Avatar for XEN0

Rewrote this a few times heres the meat and potatoes. Has a few issues such as flashing when moving in different directions quickly. Thinking of trying to clamp a few values to try to stop the diagonal movement,flashing and smoothing out the sprite. Something along these lines might update this …

Software Development c c# c++
Member Avatar for XEN0
0
269
Member Avatar for Ashley1966

This script is supposed to ssh to the server, which it does and then it supposed to say "case is correct" on the name of the server that the person entered if the case is correct (upper or lowercase). However, it works except that it never returns a servername. I …

Software Development shell-scripting
Member Avatar for Watael
0
114
Member Avatar for chromatinpt

Hi, I need some help to count the number of values between some range. var listSource = new List<double>(); listSource.Add(10); listSource.Add(15); listSource.Add(22); listSource.Add(30); listSource.Add(35); listSource.Add(40); listSource.Add(42); listSource.Add(45); //number of classes -> in this case will be 3 int nClasses = Convert.ToInt16(Math.Round(Math.Sqrt(listSource.Count))); //retrieve max and min values double minValue = listSource.Min(); …

Software Development
Member Avatar for Momerath
0
141
Member Avatar for syeda amna

Hi I need some good study material related to it. How can i eject my DVD ROM drive using C coding. similarly, how can i change fan speed, how can i shut down my PC using C coding. I need urgently.

Software Development c
Member Avatar for BobS0327
0
4K
Member Avatar for Skeldave

Hi, I am creating a simple game and I my game thread and my player2 thread seem to be executing twice each time the Thread.Sleep() expires. This is the output: Starting game: Player 2 thread Game thread Starting game: Player 2 thread Game thread Player 2 thread This is the …

Software Development gaming java
Member Avatar for Skeldave
0
1K
Member Avatar for bballdrew45

I am currently working on a program for a higher or lower card game. I have my game set up and in place, however I am having trouble keeping track of the cards that have already been drawn from the deck. I am only playing with one deck and need …

Software Development vb.net
Member Avatar for gianni.joris
0
271
Member Avatar for pinaka

#include<iostream> #include<string> int strlength(&a); using namespace std; int main() { string s1,s2; cout<<"Enter the strings u want to check length::"; cin>>s1>>s2; strlength(s1); strlength(s2); return 0; } int strlength(&a) { for(int i=0;str[i]!='\0';i++) { int count++; } cout<<"The length of string is::"<<count; }

Software Development c++
Member Avatar for pinaka
0
182
Member Avatar for howard.teoh.7

May i know how to create textbox using code and store the design in window form, next time i open the form that must be same as previous i designed.

Software Development
Member Avatar for howard.teoh.7
0
195
Member Avatar for candicecandy

I am a beginner in C++ programming and I badly need help. I just need some tips for programming a tic tac toe game that asks the user how many times they want to play, and should track how many times they win. Also, this program should not use arrays. …

Software Development c++
Member Avatar for Schol-R-LEA
0
224
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to replace a cell value from one excel spreadsheet and save it as another spreadsheet but with the replaced cell value. Please Help

Software Development microsoft-office vb.net visual-basic
Member Avatar for joshl_1995
0
1K

The End.