132,728 Archived Topics
Remove Filter ![]() | |
Hey guys, I've tried writing code to reverse my sentence, but I keep getting an error in my for loop saying "Expected Expression". Also, should the asterisk go after the "modify" in my code? I'm not sure how pointers are exactly supposed to work and I haven't been given any … Software Development c++ programming-construct | |
hi experts, I have a new quesiton following what I asked before: http://www.daniweb.com/software-development/python/threads/436159/python-remove-lines-when-two-specified-words-in-the-same-line I am still new python user, and hope and get your help again. my task is to do the following Python Remove current and following 3 lines when two specified words in the same line I have … Software Development python | |
Component comdlg32.ocx or one of its dependencies not correctly registered: a file is missing or invalid I am getting this error when I tried to run my application on my friends pc . I copied this file COMDLG32.OCX’ from my laptop and tried to paste on that pc in System32 … Software Development visual-basic | |
trying to impleament a checkWin function that checks all possible wins for a player, but I'm notreally sure how to do it. from connect4cell2 import Connect4Cells from Tkinter import * class Connect4Frame(object): COLORS = ["White", "Red", "Yellow"] def __init__(self,rows = 6, columns = 7): self.cells = Connect4Cells(rows, columns, 3) self.rows … | |
Hi All, Trying to add items from listview to datagridview, but keep coming up with this error: "Specified argument was out of the range of valid values. Parameter name: rowIndex" I can add one row with no errors, but when I try to add two or more at the same … | |
I won't be asking for a source code yet. What I need to figure out is the process of a certain Math problem with the equation that seemed to be impossible to be converted to source code. Here it goes: **A certain waveform is 0 volts for time less than … Software Development c++ engineering mathematics | |
Hi all I'm trying to shade a cell based on a date difference between column 7 & 8. It seams to work accept column 8 seams to be the one being shaded instead of column 7. I have googled but can't find a solution to have the calculatin being made … Software Development vb.net | |
I'm in my first AND LAST computer science class and I really need help with our final project. Up to this point all of my assignments have been completed from my teacher and TA standing over my shoulder telling me exactly what to do. I'm pretty sure they're just as … Software Development data-science python | |
Consider a hospital scenario. Design classes for: Patients. The class might have fields like unique ID for the patient, name, male or female, age, address, phone number, date of birth, height, and weight. I need help with this problem Software Development python | |
cant get this to run on my compiler, any idea of where im going wrong in my code here, any help would be so helpful #define pi 3.1415926535897 #include<iostream> #include<math.h> using namespace std; int main () { double lat1=pi/180; double long1=pi/180; double lat2=pi/180; double long2=pi/180; // initilaise values double latz … Software Development c++ | |
Hi Is there a way that we can bind two textboxes together. I have two forms. The 1st form has textbox1 and is the main form. The second form is a edit form and it contains textbox2. I would like to open form2 and see the value of textbox1 and … Software Development vb.net | |
My professor asks me to program the Game Of Life with some required and I find unnecessary classes. But anyhow as I am coding and running the program midway I run into this problem void Life::setup_grid() { cout << "Size of Grid: " << grid.size() << endl; cout << "rows: … Software Development c++ gaming open-source | |
Hello, I am working on a homework problem that has to do with inheritance, I thought that as long as the class interface and implementation files for the base classes the derived would work with the include statement: #include "salariedemployee.h" and the line class administrator : public salaried employee. I … | |
Hi everyone. I have written an MS-DOS based screensaver program by hooking timer and keyboard interrupt. After 10 seconds the screen is cleared and on clicking any button from the keyboard the contents of dos screen are shown. I want to know how can I make this screen to blink … Software Development c | |
Hi Guys, wondered if someone could help me please, i have been scratching my head on this for a couple of days, and have tried multiple ways of solving this (based on my beginners knowledge) what i am tring to do is to get info from 1 set of textboxes … Software Development | |
I cannot get this to show up when I run it and I can't figure out whats wrong. import java.applet.*; import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class TravelCostEstimator extends Frame implements ActionListener,ItemListener { //This part defines how the program will look Panel partOnePanel = new Panel(); Label … Software Development java java-swing | |
For whatever reason beyond my understanding did my DB start this problem. I got 2 tables in my database. 1 dealing with personal info 1 with dates and time To keep my startup form empty I have the first row empty in both tables. But for some reason after I … | |
actually, I just want the idea here. I have a server, a client . client will request to display the files names in its directory(server's current directory). server will send the list. my thinking : system command will be used here. when clinet enter "-ls" then server will have system() … Software Development c file-system | |
Design a class called "sentence" that have a constructor that takes a string representing the sentence as input. The class should have the following methods: get_first_word get_all_words replace(index, new_word) Change a word at a particular index to "new_word." E.g. If the sentence is " I'm going back." and set_word_at_index (2, … Software Development python | |
Hi, I want to know what code should be used in order for me to import data from an excel file to dataset and then adding it to the database, how can it be done? thanks Software Development dataset microsoft-office mysql vb.net | |
Dear all, I understand the form closing event. But I want to detect when my app. is closing. It needs to update a status into the database, and only when the app. is closing. I have multiple forms in my application and people can close a app with the X … Software Development vb.net | |
This is the exercise I have in codelab. I've been going over and over, and just can't see how to do it without an array. Must be something simple that I am missing. Any suggestions? _____ Assume you have a int variable n that has already been declared and initialized. … Software Development c++ | |
This is my code for creating a url list and Im getting an index out of range error? Please help! #! /usr/bin/env python import re TOTAL_PAGES = 619 idFile = open("listOfURLs2", "r") outFile = open("output", "w") idList = [] urlList = [] temp = "" tempStr = "" currentList = … Software Development python | |
Hello All, I needed some clarifications w.r.t making functions thread safe. Now, i understand that irregularities can occur in results when not making functions thread safe. But could this somehow lead to a crash? (say some illegal access of memory) Could anyone please give an example of this(something that you … Software Development c++ | |
I will show you how to use EasyXLS, a .NET or Java library, as a calculation engine. EasyXLS supports all mathematical operators like arithmetic, logical and unary operators, and a various set of functions as Financial functions, Logical functions, Lookup and Reference functions, Database and List Management functions, Math and … Software Development coldfusion pdf | |
I'm trying to process a list contained within a separate text file. I am able to read the file, and generate an output containing the contents of the file, but the output generated is the unprocessed version, identical to the input. I do not encounter this problem when the list … Software Development file-system python | |
This is a project I am working at my school as an introduction to two dimensional array. In this program, I attempted to create a two dimensional array, figure out how many neighbouring bacteria said cell have, and create, destroy, and leave the cell as it is. The error I … | |
Hello, I am trying to compile a Pro*C program, and I am getting a link error "cannot resolve reference to sqlcx2t". I have the libbrary LLIBCLNTSH included in the Imakefile, and have included conio.h in the program. I am not sure how to resolve this issue. I am running on … Software Development oracle | |
Hello, I have just bought a "USB Network server": http://www.conrad-uk.com/ce/en/product/992249/LOGILINK-4-port-USB-network-server I have attached a harddrive to the USB Network server and the USB Network server is connected to the router. I use 2 computers that needs to use the harddrive at the very same time. However the software that connects … Software Development c# | |
How would I pass an element in a struct array. I have to call the function: new(Shoe[num], num); where num is the number of elements in the database. I have declared the function as: void new(Shoes Shoe[], num); but I get the error: cannot convert 'Shoes' to '*Shoes' for argument … Software Development c++ | |
I am creating a random number guessing game. I have 6 options. 3 Game playing levels and 3 timer levels. I have my form display with 6 radio buttons: radRookie radVeteran radPro radThirty radFourtyFive radSixty You select your level and time. Then you have a text box to enter your … | |
I'm having tough time with netbeans. I am trying to add external image files to the netbeans project but confused where to place them. I copied the image files in every folder of netbeans(as i was tired) but nothing worked. Where exactly I should place the external resource files(images,videos,auidos etc).. Software Development java | |
Using c# VS2010 WinForm actually i using line chart in report viewer in my database: ID----amount----year ID01----10.00----2008 ID02----20.00----2010 ID03----30.00----2012 ## i want the result is in this format ##  ## but the result is this format ##  Software Development | |
Hi, I would like to make a window with a given size, and a scrollable textarea to a given place within. When I tried the same with a button instead of textarea, it was no problem: make a JFrame, put a JPanel inside, put a JButton on the panel. Then … Software Development java window-manager | |
hi The idea is to make DataGrid contains a field of type combobox it have another data source to choose from those and save data in the DataGrid , this is possible and without any problems.. But when make Parameters to filter data in the combobox and when i try … Software Development vb.net | |
Does anybody has a hint how can I learn game development for slot /fruit/machines?? Thanks !! Software Development c++ | |
-->>Hi,I have developed a Program that accepts the inputs from an Input Box of Interger datatype,but whenever I try to Cancel the Input Box (That means if I decided not to provide any value and Cancel it) I get an Error saying "Type Mismatch" My Variable assigned to It's declared: … Software Development visual-basic | |
i hav a shopping cart in java he columns of jtable are code-the item code qty-the quantity enterd by the user i want to update the quantity in database .the description of the table is code -item code stock-total stock in hand. i need to to update the quantity by … Software Development java | |
hi all store procedure set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER procedure [dbo].[insertguestinfo] @Guest_ID int, @first_name nvarchar(50), @Last_name nvarchar(50), @Gender_ID int, @Martial_ID int, @Phone_number int, @email_address nvarchar(50) as begin insert into GuestInfo(Guest_ID,First_name,Last_name,Gender_ID,Martial_ID,Phone_number,Email_address) values(@Guest_ID,@first_name,@Last_name,@Gender_id,@Martial_id,@Phone_number,@email_address) END public void add() { Guest_info gst_info=new Guest_info(); string ConString = @"Data Source=USER-PC\SQLEXPRESS;Initial Catalog=htm;Integrated Security=True"; SqlConnection … Software Development open-source | |
I want to assign an array to a pointer variable. The way I am doing it is like this: int array[] ={1,2,3}; int **p_array = &array; (*p_array)[1] = 99; But when I run the program, it fails. Could anyone help me with the issue? Thanks in advance! Software Development c | |
import java.util.*; public class LinkedListDemo { public static void main(String[] args) { LinkedList link=new LinkedList(); link.add("a"); link.add("b"); link.add(new Integer(10)); System.out.println("The contents of array is" + link); System.out.println("The size of an linkedlist is" + link.size()); link.addFirst(new Integer(20)); System.out.println("The contents of array is" + link); System.out.println("The size of an linkedlist is" + … Software Development java linked-list | |
i am create animation in japplet and i want to know if iam using paint method and draphics2d the right way. public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g; g2d.fillRect(x, y, width, height); //player }/** end of paint method ***/ another question i had was in run … Software Development java | |
I am trying to sort a certain amount of integers. I have an error in my code. The code is below as well as my error message. Any suggestions of how to fix this? I believe it has to do with it being primitive data rather than an object? `public … Software Development java | |
A so-called “star number”, s, is a number defined by the formula: s = 6n(n-1) + 1 where n is the index of the star number. Thus the first six (i.e. for n = 1, 2, 3, 4, 5 and 6) star numbers are: 1, 13, 37, 73, 121, 181 … Software Development java | |
hello people I just started to learn C++ 3 days ago, I am just 13 yrs old I have made this basic maths utility tool or you can call it a calculator but it tells everything, multiplication, division, addition, subtraction at once. // if you could help me with it … Software Development c++ | |
In the last line of this method I am getting a missing return statement error, and I cannot figure out why. Any ideas? public static int parameter(int g){ Scanner console=new Scanner(System.in); String hint=console.next(); if(hint.equals("low")){ g=(g/2)+g; return g; }else if(hint.equals("high")){ g=(g/2); return g; }else if(hint.equals("correct")){ g=g; return g; } } Software Development java | |
Using print in a python script gives the following result: 10.25, 9.23, 8.97, 8.71, 8.40, 8.36, 8.30, 8.21 10.25, 9.23, 8.97, 8.71, 8.40, 8.36, 8.30, 8.61 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15 0.60, 0.60, 0.60, 0.60, 0.50, 0.50, 0.50, 0.15 4.85, 2.85, 1.85, 1.25, 0.95, 0.85, 0.80, 0.45 … Software Development python | |
I need help with a program i am writing( i am new to programing). I am writing a program to Coordinates have the form (x, y, z) Use double variables to represent the private data of the class. Provide a constructor that enables an object to be initialized when it … Software Development c++ |
The End.