132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tcll

ok... so I've decided to start work on a model converter... I'm a lousy Py programmeer and I'm trying to understand a few things... but first off: I want to store vert XYZ data in 'verts' as a list... say we have 3 verts, the var would look like this: …

Software Development python
Member Avatar for Tcll
0
814
Member Avatar for mmavipc

Is there any way to make sound, other than Beep?

Software Development c++
Member Avatar for mmavipc
0
89
Member Avatar for sciprog1

Hello Members, How do I change the code below sothat I can have the JLabel at the center of the JFrame and the two JButtons directly below the JLabel? Thank you! [CODE]import java.awt.*; import javax.swing.*; public class Layout { public static void main (String args[]) { JFrame m = new …

Software Development java java-swing
Member Avatar for sciprog1
0
188
Member Avatar for LianaN

Hi! Could someone please tell me how can I create an obejct of the Class1 shown below? Let's say I want initialize the List of subjects. I try the following code, but it doesn't work: [CODE] List<ClassInterface> myInterface; myInterface = Class1.getAllSubjects();[/CODE] Thanks! [CODE]public class Class1 { public List<ClassInteface> getAllSubjects() { …

Software Development java
Member Avatar for LianaN
0
149
Member Avatar for Joey_Brown

Hello; I would like to compress an 1D array of arbitrary number of elements. For instance if a user inputs IN : 111122233331 OUT: 14233411 [it shrinks/increases the array and replaces all the identical consecutive elements with a number of how many times theyve appeared.] This task must be accomplished …

Software Development c
Member Avatar for Joey_Brown
0
111
Member Avatar for LianaN

Hi! My question is about JFormDesigner plugin for Eclipse. So, I opened JFormDesigner in Eclipse, added the ActionListener to the JButton and defined a procedure to be runned after pressing this JButton. Then I pressed "Build All" and runned the form (*.jfd file) from Eclipse. However, it seems that the …

Software Development java
Member Avatar for LianaN
0
98
Member Avatar for vedro-compota

Hello friends)) How to create a dynamic array in C#? Does anyone know?

Software Development c#
Member Avatar for vedro-compota
0
84
Member Avatar for Randophera

Hi, I'm kinda new here, and I've only been programming for 6 or 8 months, so please forgive me if I sound like a total noob or an idiot with programming. I've been trying to code for my school assignment two AIs that are supposed to navigate around a maze. …

Software Development artificial-intelligence-llm c++
Member Avatar for ChrisKelso
0
309
Member Avatar for rossie queen

hi everyone, i have a problem in converting the c++ language to c language. can anyone help me to do this because i just learn programming. #include <stdio.h> void choosePlay(char); void playGame(int,int,int,int); void match(int[][4]); int r1,r2,c1,c2; char comma; int cards[4][4]={{1,3,2,4},{4,2,3,1},{5,7,6,8},{8,6,7,5}}; void main() { char click; char newcard; cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"; cout<<"@ @\n"; …

Software Development c++
Member Avatar for gerard4143
0
355
Member Avatar for mayank.dyl

how to copy output from borland output window to any where in notepad or ms-word ?

Software Development c++
Member Avatar for mayank.dyl
0
113
Member Avatar for iraqi4life

There is text file with information held on it, with average rainfall per month. 1914,50.9,87,115.8,32.3,47.1,56.6,97.1,63.9,48.1,62.4,110.3,190.8 1914 being the year and the average rainfall follow it. The year goes up to 2008. I created a enumeration which has Jan-Dec (months) And I need to create a class which will store the …

Software Development java
Member Avatar for iraqi4life
0
183
Member Avatar for RobBobSmith

Hello all, I'm having trouble with making a 2d vector array class. Would anyone have time to help with a couple of questions? I think my problem is with overloading (). I notice that this: [CODE]template <typename T> T& Array2d<T>::operator() ( int x, int y) { if( x >= rows …

Software Development c++ matrix-multiplication
Member Avatar for RobBobSmith
0
190
Member Avatar for BigBang5

#include <iostream> #include <cmath> using namespace std; int main () { int numMonths; double balance; double numBalance; float rate; double totDeposited = 0.0 ; double totWithdrawn = 0.0 ; double mthlyInterRate = 0.0; double totInterest = 0.0; cout << " Enter the initial balance ===> "; cin >> balance; cout …

Software Development c++
Member Avatar for SgtMe
0
166
Member Avatar for Boshkash

pla, i need asource code writen in c# to detect the caller id on my modem and then print in atextbox, file, ....etc. just i want the source code to can get the caller id thank u very much

Software Development
Member Avatar for leecorp
0
956
Member Avatar for Ace1.0.1.

I just want modify the program below to print + or - minus after the letter grade based on the last digit. [CODE]// Chapter 6 - Exercise 1 // A professor generates letter grades using /* 0 - 60 F 67 - 70 D 71 - 80 C 81 - …

Software Development c++
Member Avatar for SgtMe
0
152
Member Avatar for bookmark

Hi, I'm having a problem with this program. When I choose an option, all the program does is output three random numbers with letters in them. Do any of you know what my problem is? Any help is appreciated. Thanks for taking the time to read my program. - bookmark. …

Software Development c++
Member Avatar for bookmark
0
135
Member Avatar for tendaimare

'A way to connect to SQL with VB.Net using Classes 'This must be a class on its own Imports System Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports System.Web Public Class frmConn Public Shared Function ConnSQL() As SqlConnection Dim connectionString As String Dim cnn As SqlConnection connectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\App_Data\test_db.mdf;Integrated Security=True;Connect …

Software Development open-source sql vb.net visual-studio
Member Avatar for AndreRet
0
2K
Member Avatar for filmPC

1.In the Java API, the String class and all numeric wrapper classes (Number, Integer, Float...) are immutable. Name 3 other classes in the Java API whose objects are immutable. Give an example of creating a new object from each class. 2. Name 3 classes in the Java API whose objects …

Software Development api java
Member Avatar for apines
0
144
Member Avatar for TrustyTony

This code is giving minimal change from real Python class to JavaMonster with every method having setter and getter not following the PEP8 naming but capitalizedWordsFormat. When instrunctor turns his head or if you put the code in your library, you can simply remove the setter/getter lines.

Software Development java oop python
0
261
Member Avatar for nk28

Hey all I am trying to make GUI windows using Tkinter and have got stucked. Its exactly like an installation setup where you move to new windows . I have been unable to understand how to create multiple application windows in Tkinter. I want that according to user input I …

Software Development gui python tkinter
Member Avatar for SgtMe
0
801
Member Avatar for pixelss

Hello, i'm learning object -oriented programming, I was told to create a program that once the class had been designed, to create an object of the class and prompt the user to enter the name, type, and age of his or her pet. The data should be stored in the …

Software Development python
Member Avatar for SgtMe
0
906
Member Avatar for Nathaniel10

This is part of my Wumpus Hunt program. Suggestions were to clean up the main() part of the program by creating functions. I am working on that and ran into this difficulty (for me). The functions that relate to the rooms of the game need to return an array. I …

Software Development c++
Member Avatar for arshad115
0
232
Member Avatar for Mubusher

sir i am having a Visual Studio 2008 but it not install with crystal report when i open add new item-> its didnot contain Crystal Report how can i add crystal report and make crystal reports in visual studio 2008 how i install crystal report with visual studio 2008 only …

Software Development vb.net visual-studio
Member Avatar for Luc001
0
582
Member Avatar for fritzgarcia_29

I have dtpker1 and dtpker2 to choose from the date and I want to display in Listview. the problem with this code is that it cannot display dates from the listview. Please help me with the right syntax plzzzzzzzz.........:) Thank you so much!![code]Option Explicit Dim rs As New Recordset Dim …

Software Development display listview mysql visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for Sunshineserene

Hi all, I'm actually equating a 2D array from a class to another class. I call it using method call. However, it seems like the 2D array is empty after I equate it to another 2D array in another class. May I know where is the problem? [CODE]import java.io.*; import …

Software Development java java-swing
Member Avatar for apines
0
242
Member Avatar for realproskater

So i need help doing this project and heres what i have to do for the program i left some comments on what my code does etc, please help. Write a program to compute the square root of a number. DO NOT USE any math libraries in this program. You …

Software Development c++
Member Avatar for mtbs1826
0
688
Member Avatar for sharadkmittal

I have a gridview, with first column as checkbox. I also have a checkbox "Select All", which select/de-selects all checkboxes in the first column of Grid. But when after selecting-deselecting the grid checkbox through "Select All" checkbox, I selects few checkboxes in gridview and see the result of the checked …

Software Development vb.net
Member Avatar for Luc001
0
1K
Member Avatar for Lightslei

My task was to create a program that would copy a file. Ok, didn't look too hard using the textbook and class notes, heavily borrowing from the textbook. However these 2 errors have me stumped. invalid instruction operands segment, group, or register expected. The first one refers to this: mov …

Software Development assembly
Member Avatar for low_coder
0
86
Member Avatar for neo_31591

hey guys... my database consists of questions...for a quiz....i need to read the question so that its displayed into the JLabel... [CODE=JAVA] //package Proj; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class Testpage extends JFrame implements ActionListener { public static String usr; JMenuBar mbr; JMenu File,Help; JPanel p1,p2; JLabel …

Software Development java java-swing
Member Avatar for neo_31591
0
2K
Member Avatar for mashhype

Hi I am new to C. I'm taking an operating systems class right now and I have a project that requires me to create a set of semaphores. The command line takes in: filename ropt NS value1 value2 value3...valueNS Where argv0 is the filename Argv1 is the option to remove …

Software Development c operating-system
Member Avatar for apines
0
79
Member Avatar for cwarn23

Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at [URL="http://www.computersciencelab.com/MultithreadingTut1.htm"]http://www.computersciencelab.com/MultithreadingTut1.htm[/URL] but I …

Software Development c c++ multithreading
Member Avatar for Ancient Dragon
0
728
Member Avatar for Joey_Brown

Hello I hava a question regarding assembly. How could I take a number from register and find out how many hundreds, tens and ones it has. For example a number 412 has 4 hundreds 1 dozens i 2ones. Ive tried with looping a sub with a BRMI branch, but the …

Software Development assembly
Member Avatar for low_coder
0
113
Member Avatar for tKc

i have my program outputting a number grid that is nxn. i have it using a 2d array to output my grid but the issue im having is that when the user wants to input a number that is in the nxn grid, the value is not being replaced by …

Software Development c++
Member Avatar for WaltP
0
226
Member Avatar for Kingcoder210

I need to know how can I make trial(demo) version of my program. Normally people use date & time to do it. But if user will change his system date I guess it will not work. I need to know the best way of making trial version which will work …

Software Development vb.net
Member Avatar for low_coder
0
238
Member Avatar for jnick12

Can anybody tell what I need to do to make this program restart after it finishes without having to exit? Some kind of loop or something...??? [CODE]#include <iostream> using namespace std; int main () { double operand1, operand2; double sum, difference, quotient; char choice; cout << "\n\nBASIC CALCULATOR\n" << "a. …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for jnick12

How do I validate that the input from the user is a number and nothing else within each case? [CODE]#include <iostream> #include <cstdlib> #include <iomanip> #include <limits> using namespace std; int main () { double operand1, operand2; double sum, difference, quotient; int exit = 1; char choice; while (exit == …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for tastyTreeHUGGER

I am writing a calendar in C. I'm still very new to the language. I think i wrote most of the functions/algorithms correctly (it would be nice if you guys could check for any errors too). Now I'm having a tough time printing the calendar out In a correct format. …

Software Development c c# c++
Member Avatar for tastyTreeHUGGER
0
304
Member Avatar for Tyster

Hi folks, I'm quite new to C++ and I'm getting an exception I don't understand. I have a class named 'Rational' that performs calculations on fractions. It has a default constructor as follows... [CODE] //In Rational.h public: Rational(int num = 1, int denom = 2); //Default constructor void addition(Rational); void …

Software Development c c# c++
Member Avatar for mike_2000_17
0
161
Member Avatar for merse

I hate when I have to acces a class data member like myclass.get_x(); I would like to simply write myclass.x; But I also want to stay with private x, I just want to read like myclass.x, but dont want overwrite it. It is somehow possible?

Software Development c++
Member Avatar for mike_2000_17
0
142
Member Avatar for olive405

i already did not turn in this lab but it is killing me. tell me why I am getting so many errors.... //This is the most confusing program in the world. I was not trained //correctly for this. But as long as the proffesor gives me the code //i can …

Software Development c++
Member Avatar for invisal
0
135
Member Avatar for python01

I am trying to make a bidding sniper. all functions work so far (bidding, timing, etc), yet I still have to login manually. Would anyone know how I could open a website and then login automaticly from python. Thanks, python01

Software Development python
Member Avatar for python01
0
89
Member Avatar for networkZombie

I'm trying to make a program that tells you how much of each type of bill or coin you will receive as change after you enter the total amount of goods you are buying and the amount you are paying with. But my program takes in the total amount of …

Software Development c++
Member Avatar for networkZombie
0
207
Member Avatar for chuck577

I am finally learning about fstream but Im stomped with this problem that I have. I have a current file that I am opening. Each line of said file looks like this: D40001~10997~811~DANIWEB~555-555-5555~7.70~I~2111 There are around 5000 lines with different DXXXXX numbers. I want the user to input a dnumber …

Software Development c++ file-system ios
Member Avatar for frenzy50187
0
1K
Member Avatar for baldwindc

ifstream mystream(file_name); ofstream outputstream(filename, ios::out); do { mystream.getline(line, 100); mystream >> country_name >> happiness_value; total_happiness = total_happiness + happiness_value; count++; outputstream << country_name << " \t \t " << happiness_value << endl; } while (!mystream.eof()); the file ifstream is reading from is a .dat file, in this format: first 1 …

Software Development c++ ios programming-construct
Member Avatar for baldwindc
0
1K
Member Avatar for general lee

ok i have to write a program that takes six test scores as input and stores them in an array. It drops the lowest score, and computes the average of the remaining five scores. It outputs the average score rounded to one decimal point. This is what I have and …

Software Development c++
Member Avatar for general lee
0
79
Member Avatar for Pundia

Hi everyone. Once again, i'm here. What I have is two structures: [CODE]Public Structure poblacion Public ind() As individuo End Structure Public Structure individuo Public pos as List(Of Point) Public fx As Double End Structure[/CODE] There's one point where I need to randomize the order of the numbers of the …

Software Development vb.net
Member Avatar for Pundia
0
213
Member Avatar for missil9

Hey all, I am a relatively new programmer and am trying to use Boost regex for my program. My code is: [CODE]#include <boost\boost\regex.hpp> using namespace std; double scrape( string base, string match ) { boost::regex re(match); boost::smatch matches; string::const_iterator start; start = base.begin(); while( boost::regex_search( start, base.end(), matches, re ) …

Software Development c++ regex
Member Avatar for missil9
0
267
Member Avatar for geryin

Write a function that accepts an array of integers and determines the product of each two integers. Although you can create a fixed size array in main, your function should work no matter what size of array is passed to the function. MY code: [CODE]#include <iostream> using namespace std; void …

Software Development c c# c++
Member Avatar for Lerner
0
102
Member Avatar for ibdatx

Hi, I have a WPF program written in C# that updates an Xml file from a textbox when a submit button is clicked. The code works as I can tell that the xml file is updated after the execution of the program, however I would like the update in real …

Software Development asp.net xml
0
80
Member Avatar for sirlink99

I am wondering how to make the red aquare jump around in the script. This is a menu. I would like the red squareto jump around every 1 or 2 seconds (doesn't have to be exact). Right now I have it when someone moves the mouse but I woule like …

Software Development java
Member Avatar for kramerd
0
153

The End.