132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Summer995

After debugging, I find myself in a "loop" of sorts. The program is not recognizing the letters in the gameWord enough, to compare to the letters inputed. Could someone please tell me what I've done wrong. Thanks. using System; namespace Hangman { class Program { const string letters = "abcdefghijklmnopqrstuvwxyz"; …

Software Development
Member Avatar for nmaillet
0
141
Member Avatar for vegaseat

The Tkinter library folder \lib-tk contains a module called turtle. You can import this module and experiment with turtle graphics. Tell the turtle to move and draw circles, lines, rectangles and more, and watch it, as it performs on a Tkinter canvas. In typical turtle fashion it moves at its …

Software Development python tkinter
Member Avatar for woooee
0
2K
Member Avatar for compulove

Hello! I need helping using the DataGridView in vb. This needs to show the degrees from 2001 and 2003. I displayed some examples also! The things this needs to display are the following: 1. Display degrees in alphabetical order by field of study. 2. Decreasing percentage of those enrolled for …

Software Development vb.net visual-basic
Member Avatar for AndreRet
0
167
Member Avatar for kinjal.shukla.77

1 1 2 1 1 3 3 1 1 4 6 4 1 how can i get this output? plz give me answer

Software Development java
Member Avatar for stultuske
0
81
Member Avatar for xtianpark

**** GOOD MORNING GUYS ,, DOES ANYONE KNOWS HOW TO HIDE THE BOX APPEARING IN THE PICTUREBOX IN VB ? MY PROBLEM IS ONCE I PUT BACKGROUND IMAGE IN THE FORM TOGETHER WITH THE PICTURE INSIDE THE PICTUREBOX .. AND WHEN I RUN THE PROGRAM THERE'S A BOX APPEARING BEHIND …

Software Development vb.net
Member Avatar for TnTinMN
0
121
Member Avatar for ayat abukhadra

Hey, I've been working with a company which basically works with vb6 and now we're trying to re-write the applications they developed using vb.net any recommendation for where i should start searching , what we're thinking of is to create application programmatically and then loading forms from access then looping …

Software Development microsoft-access vb.net visual-basic
Member Avatar for TnTinMN
0
500
Member Avatar for gerard4143

Does anyone know how to do this? I attached a program that collects all the command line arguments into a map container noting how many times each command line argument occurs. Now I want to sort this map of information by loading a vector with iterators that point to each …

Software Development algorithm c c# c++
Member Avatar for vijayan121
0
524
Member Avatar for mohana_61

hey friends, i am new to vb.net so i have a problem to sort out.Can u pls help me. In my form i have a combobox and textbox,when i select an value from combobox then in the txtbox it has to automatically generate value (from database) corresponding to value selected …

Software Development vb.net
Member Avatar for mohana_61
0
295
Member Avatar for HibaPro

hey everybody , anyone can help me by some ideas as design and coding to calculate the Labour Productivity ?? i have the labour type stored in combobox and the salary as input to DataGrid view and accomodation , Social Security , overtime, Sick day, Dayoff, Transportation.... how i can …

Software Development vb.net
Member Avatar for HibaPro
0
119
Member Avatar for sundog1

Hi Guys, I have a form with a DGV and some text boxes.. I am trying to get the program to update the rows shown on the DGV by using the values in the text boxes. Below is my code so far: private void btnOrderEdit_Click(object sender, EventArgs e) { System.Data.OleDb.OleDbCommandBuilder …

Software Development dataset
Member Avatar for Mike Askew
0
226
Member Avatar for av11453

In the java policy file what will happen if we comment out //permission java.lang.RuntimePermission "stopThread";. My understanding is that we can't call thread.stop() anywhere in the program am i rite? If we call it should say "Access denied"... If any Text area is built with AWT closing it by clicking …

Software Development java
Member Avatar for NormR1
0
334
Member Avatar for straylight

Hello, I am very new to C and having the hardest time with arrays. I am attempting to find a pivot point in a sorted array for example { 1 2 4 5 9 } might become { 5 9 1 2 4 }. I am thinking it should be …

Software Development c
Member Avatar for deceptikon
0
593
Member Avatar for vimit

Hello, I am facing a problem in creating setup project in C# window applications. Actually I have made two pojects, one fee managment system and library management system. In library management project i have merged the fees management project, so that i can reuse Student entry and updation forms in …

Software Development c#
Member Avatar for arunkumars
0
270
Member Avatar for turbomen

Code a decision using an IF, THEN, ELSE statement (2 branch decision) Code a one branch decision using a null else statement The following is my answer: [CODE] program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep …

Software Development delphi pascal
Member Avatar for htir
0
205
Member Avatar for israruval007

I need help creating xml file with C# ok lets say I have the following users.xml file that contains the following <Users> </Users> After executing the C# code below public void addUser() { string filePaths = "users.xml"; XmlDocument xmlDoc = new XmlDocument(); string user = textBox2.Text; // USER INPUT if …

Software Development file-system xml
Member Avatar for Mike Askew
0
349
Member Avatar for czxzxcXZ

Hi, I would like to question about setting up the element types I am currently developing a catalogue of course desriptions so I have an element that is, <xs:element name="code" type="this is the problem" /> inside this is the problem, I am supposed to include type that allows me to …

Software Development xml
Member Avatar for Mike Askew
0
195
Member Avatar for fritafana

I just want to connect my mysql with vb.net code as below: But,for some reason I cant figure out the problem i have also added the mysqldata.dll in my reference. all the input in connection string is valid and there is no error in the code. it just shows cannot …

Software Development mysql vb.net
Member Avatar for artemix22
0
192
Member Avatar for israruval007

Ok lets say i have the following xml file <Users> <User> <Name>Jonathan</Name> <Tests> </Tests> </User> <User> <Name>John</Name> <Tests> </Tests> </User> </Users> Im writing a C# program, and what I want is to search for a specific name(eg Jonathan) and add elements and values to that specific tag in my xml …

Software Development c# file-system xml
Member Avatar for israruval007
0
403
Member Avatar for WvTxMan_1

I have created a form in netbeans with two radio buttons in a button group with a text box. Box 1 = Yes Box 2 = No when form loads no is already selected. I want the text box to be ivisible until user selects yes. but everything I have …

Software Development gui java
Member Avatar for JamesCherrill
0
203
Member Avatar for ctclements

import java.io.File; import java.util.Scanner; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.UIManager; public class TextAnalysis { public static void main(String[] args) throws Exception { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); JFileChooser chooser = new JFileChooser("c:/users/zachary/demo"); int outcome = chooser.showOpenDialog(null); if (outcome == JFileChooser.APPROVE_OPTION) { File f = chooser.getSelectedFile(); Scanner words = new Scanner(f); String word = JOptionPane.showInputDialog("Enter …

Software Development java java-swing
Member Avatar for Majestics
0
2K
Member Avatar for niyasc

I have made a simple socket program so that client can connect to server by specifying ip of system in which server is running. And in server we can type characters which will be received by client and client will store it in a file. I want to clear some …

Software Development c socket-programming
Member Avatar for np complete
0
5K
Member Avatar for poojavb

Hello, Can we perform bulk insert for SQL data? I have the complete SQL data in text files. There are multiple tables and the corresponding text files. I tried to do the bulk insert but always got some new error. Please help me to get an answer. My code Imports …

Software Development mssql open-source sql vb.net
Member Avatar for poojavb
0
1K
Member Avatar for honeybee2090

i have 1 text box and 1 button in my application text box have items like this 24.192.72.54:27799*71.163.168.187:40807*93.31.71.187:2541* 24.140.130.144:49251*76.15.157.93:16811 now what i want to do? when i press button then txt change in to this format , like this 24.192.72.54:27799 71.163.168.187:40807 93.31.71.187:2541 24.140.130.144:49251 76.15.157.93:16811 some when can help me? please

Software Development visual-basic
Member Avatar for AndreRet
0
273
Member Avatar for cempli.branom

I wrote code Private Sub cmdok_Click() Dim rs As New ADODB.Recordset Dim strSql As String Set rs = New ADODB.Recordset rs.CursorLocation = adUseClient rs.LockType = adLockOptimistic rs.CursorType = adOpenDynamic strSql = "SELECT * FROM tb_absensi " & _ " WHERE nrp='" & cmbnrp & "'" & _ " AND tanggal …

Software Development visual-basic
Member Avatar for AndreRet
0
181
Member Avatar for jeaninem71

I am a newbie so please forgive my ignorance. I need help with this program, it is outputting 1s for the functions. I know it's something simple, but like I said I am new and don't know what to do. #include <iostream> #include <cctype> #include <string> #include <iomanip> #include <cmath> …

Software Development c++
Member Avatar for np complete
0
338
Member Avatar for jeaninem71

Here is a second one I am stuck on. This one is working correctly, but I didn't know how to go about doing a function for the output of line 9 so that put me into problem of not being able to figure out how to get line 10 to …

Software Development c++
Member Avatar for np complete
0
223
Member Avatar for nmahmood630

This is the problem I am suppose to solve: A mail order house sells six different products whose retail prices are as follows: Product 1, $3.75; Product 2, $5.95; Product 3, $8.75; Product 4, $6.92; Product 5, $8.75; Product 6, $7.87. Write an application program that reads a series of …

Software Development java
Member Avatar for nmahmood630
0
1K
Member Avatar for neolyte120109

Hello every one., .. i have this problem about the datagridview.. i try many codes which are being posted by other person to other forum sites. As i can see the codes are really working, but not for me .. i can add, delete, and retrieve data, but it doesn't …

Software Development vb.net
Member Avatar for ChrisPadgham
0
3K
Member Avatar for jeets1892

Hello, Please take a look at the below code - #include<iostream> #include<ctime> // for the time() function #include<cstdlib> // for the srand() and rand() functions using namespace std; int compInput; int userInput; int die1 = 0; int die2 = 0; int Dice () { // set the seed srand(time(0)); // …

Software Development c++ gaming oop
Member Avatar for jeets1892
0
2K
Member Avatar for WDrago

All, I usually write console apps, but now I have to do a forms app. Hopefully that will explain the sillyness of the following question: I created my project in NetBeans and NetBeans automatically generated a class with the project name, and this class has a main() method. Then I …

Software Development java
Member Avatar for WDrago
0
937
Member Avatar for poloblue

Good Afternoon, I'm a little difficulty with this little program. The error is argument of type int (*)[5] is not incompatible with parameter of type double. I'm getting this error on swapFour(&a, &b); Here is the whole program code double a =102.39, b=201.59; double c=30.99, d=48.99; double e=55.21, f=95.35; //call …

Software Development c++
Member Avatar for WaltP
0
170
Member Avatar for annquin

Hi. does anyone know how to save the combobox selected Index like(0,1,2,3) in mysql database by combobox as INTEGER? Please help me..!

Software Development mysql vb.net
Member Avatar for annquin
0
115
Member Avatar for super-duper

Hey guys, I am trying to write a batch script that GETs the user input for location and a name of the file, STOREs/SAVEs it somewhere (in this case, in those 2 text files), and goes and grabs them for future use. This is gonna be a part of my …

Software Development
Member Avatar for Reverend Jim
0
233
Member Avatar for theboyandtheocean

If I execute the program from within Visual Studio, the program runs absolutely fine. Once I put the .exe from debug on a different computer, it gives a error of No Value Given for One or More required parameters. I know that it could be that the parameters are incorrect, …

Member Avatar for theboyandtheocean
0
203
Member Avatar for dnanassy

Hello everyone, I'm working on an assignment that requires the use of the Scanner class to read the source code of the .java file and output all lines when executed. I have created a file that works without issues on my machine, but I was wondering if there was a …

Software Development java
Member Avatar for dnanassy
0
508
Member Avatar for Kayla1993

I am doing a project in class. We have to make a program that scans Two Postive Integers, one at a time, using try-catch block. Can some one please help me get started?

Software Development java
Member Avatar for mlesniak
0
120
Member Avatar for deceptikon

Encoding and decoding functions for RFC 4648 compliant base-64. The code is written in standard conforming C11 and backward compatible with C99 (pre-C99 is *not* supported without code changes).

Software Development c
Member Avatar for deceptikon
0
345
Member Avatar for Tinnin

Hello. I'm doing an exercise whereby I need to test if a word is a palindrome. My code for the function is as follows: #include "test_palindrome.h" using std::string; bool is_it_palindrome(const string s) { bool palindrome = true; for(string::const_iterator iter = s.begin(); iter != s.end(); ++iter) { string::const_reverse_iterator rit = s.rbegin(); …

Software Development c++
Member Avatar for WaltP
0
156
Member Avatar for Michael27

This tutorial is about extension methods in c# **What is an extension method** Sometimes it is necessary to add functionality to a library for which you do not own the source code and where using inheritance to subclass functionality is not viable. This problem can be overcome with the careful …

Software Development c# data-structure
0
172
Member Avatar for akileshb

How to copy one file from server to server using shell script, Pls help me in this

Software Development shell-scripting
Member Avatar for Pkumar001
0
287
Member Avatar for volkang

Hi, I encounter an assertion error on my thesis while trying to write a line to a file. The related code is pasted below. The funny thing is that this code runs maybe 5000 times and i get the error at 5001 th time. Thank you very much for any …

Software Development c
Member Avatar for volkang
0
352
Member Avatar for triumphost

So I've started learning makefiles today for a project I've been working on. The project uses OpenGL and GDI. I decided to dive right into make files and so far, everything compiles but at the very end, it gives a bunch of undefined references. Thing is, when compiled in codeblocks, …

Software Development c++ opengl
Member Avatar for vijayan121
0
2K
Member Avatar for venividivici

Hi, my daughter is struggling a bit with maths and logic and I was thinking of doing some programming with her hoping that a different approach to the field might help a bit. I've had some look at Java syntax and I think I should be able to write some …

Software Development android java socket-programming
Member Avatar for JamesCherrill
0
163
Member Avatar for Suzie999

Just wondering what general thoughts there are regarding the pros and cons of `using namespace NameSpace;` vs `NameSpace::Method` Such as, are there any performance gains with one or the other etc...?

Software Development c++
Member Avatar for vijayan121
0
257
Member Avatar for Tinnin

Hi everyone. This regards exercise 5-6 of "Accelerated C++". I am asked to rewrite a function so that instead of using erase() to remove an element (of a failing student), I should copy the elements (of the passing students) to the beginning of the vector and then use resize() to …

Software Development c++
Member Avatar for Tinnin
0
117
Member Avatar for HankReardon

How do you write an input validation loop that compares strings? My attempt at the code is included. Thank You, Hank Question 4.6. Write an input validation loop that asks the user to enter “Yes” or “No”. import javax.swing.JOptionPane; import java.text.DecimalFormat; import java.util.Scanner; /** CIS-151, Input Validation Loop */ public …

Software Development java java-swing
Member Avatar for WDrago
0
1K
Member Avatar for WDrago

This seems like a pretty basic question, but I'm still learning Java and all the nuances of OOP. I have several classes in my program and they all need access to the same ArrayList (the one with all the data in it.) What's the best way to share that list? …

Software Development java oop
Member Avatar for WDrago
0
107
Member Avatar for gopi17

I'm an enginnering student, our lecturer has ask us to create an opengl app tat shows the bersenham so far i have derive the algo and the pixels...but i don't know how to draw a line between those pixels.. this is what i have so far void init(void) { glClearColor(1.0, …

Software Development algorithm c++ opengl
Member Avatar for myk45
0
341
Member Avatar for HankReardon

For some reason I am having trouble comparing strings when inside a while statement using the using the && and || operators. while (input.equals("Yes")) && (input.equals("No")) The error message implies the parentheses are ending the statement prematurely. Can someone please give me a suggestion? Thanks, Jim

Software Development java
Member Avatar for NormR1
0
189
Member Avatar for sanjeewa.abeywardana

Please any one help me on visual svn **brancing and merging** , a **web site link on how to do that** in a safe way in Visual Tool is better , or may be a **helpful video is better too** , I have a client project where new Features are …

Software Development
Member Avatar for sanjeewa.abeywardana
0
120

The End.