132,726 Archived Topics
Remove Filter ![]() | |
this program works but i need to put in a loop that the user 10 times to input a value and you load it ino an array #include<iostream.h> #include<conio.h> //Author: //Object: //Date: void ctof(void); //function declarations (prototypes) void ftoc(void); float c,f; // (outside the functions) main() { int option; //--------------output … Software Development c++ | |
how to print the sum of odd and even numbers taking upper and lower limit from user Software Development c++ | |
How would i connect different tables with each other in vbnet2008 which ive connected by the database wizard ? im suffering from this problem for 4 days and i havent fixed it ..and o search over the net but they give me the solution by hard coded that are related … Software Development vb.net | |
Hi all, I am at a lost and do not know where to start from. Here is what I have to do "Given the data below, you are to design an IA-32 assembly language program to sort array X by the number of binary 0's in each member and save … Software Development assembly | |
Hi guys what I want to do is set a new setSize which I can do but it just appears. Therefore what I want is for the setSize to move over time instead of just flicker and appear. Any help would be appriciated: [CODE] if (e.getSource() == set) { setSize(1000,1000); … Software Development java | |
I just attempted to insert a .jpg image into an access 2010 database but now I want to retrieve it and now I have an error that says "parameter is not valid" [CODE] Con.Open() Using com As New OleDbCommand("Select Picture from MyImages where ID =1", Con) Dim imageobj = com.ExecuteScalar … | |
I have the following code that I am hoping to get working. The code will check for available DYMO printers and print the label. You are to create a template label and I saved mine as template.label. In that template label I have a text field referenced as TEXT1. The … | |
How would i explain this problem. hmmm... I have a program for the database of the patient's record and I have a different tables which are categorize, like table for personal information , table for gynecological history and so on, each table has the column "[COLOR="Red"]NAME[/COLOR]" which is for the … Software Development vb.net | |
hey i want to put two values into one dict and am not sure how to achieve this. i want it to look like this. what am trying to do is a dictionary that holds the date as the key, and a dictionary as its value. That dictionary will contain … Software Development python | |
Hi guys just wondering if anyone could give me some tips on starting a moveable char function for my maze game. I wish to create a function that allows me to move the player through the maze shown below. I have a few ideas on how to do this however … | |
Hi guys! I really need help for my school task in c# TASK: [B]Write a method find (), which locates in the field given element and returns the index of the first occurrence of this element.[/B] [CODE]/ / <a> representing a box and the <el> element we are looking for … Software Development | |
hello buddy, I have a problem about listview update data the first I input data from textbox to listview, after listview have many data/row, I want to update data only one click button use query WHERE ID the problem : I just can save first row only, not all or … | |
Guys I need help on how to extract data from this web page [url]http://hidemyass.com/proxy-list/[/url] Its mainly the Ip address and port but i have no idea in where to start. I know to start out with this Dim elements As HtmlElementCollection = Me.botBrowser.Document.All but i dont know how i would … Software Development http-protocol vb.net | |
I am using two ResultSet in a single statement..this code is a part of servlet.. [CODE] String temp=request.getParameter("cid"); int cid= Integer.parseInt(temp); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:Mydatasource"); PreparedStatement ps = con.prepareStatement("select * from Products where cid=?"); ps.setInt(1, cid); ResultSet rs = ps.executeQuery(); while(rs.next()) { out.println("<a href = 's_BikeServlet?pid="+ rs.getInt(1) + "'>" … Software Development java | |
Hey there! I'm trying to figure out how to get a random letter generator for a program I'm working on in my computer science class (it's in C++). I need to generate 5 random capital letters between A and P (A, B, C, D, E, F, G, H, I, J, … Software Development c++ | |
Below is an address book program I am working on. The way it stands now, when the data is entered and writes to a text file it writes the line of data like, John Doe 1234 Help Me Avenue Dallas Texas 98956 Johnathan Doe 2345 Derby Lane Omaha Nebraska 45678 … Software Development file-stream file-system gui java java-swing | |
Ok, so I am making a game and the music changes when you are in different regions or if there is an interruption, like with an AI. So I have JUST learned how to make music showup in my program, and now I am trying to make it stop, but … | |
I've been working on this code all night and i can't seen to find out how to do the math i think it needs a loop of some kind on line 17 and 18 also it wont print out the avg mpg please help def main(): 1 print("This program calculates … Software Development python | |
My simple Serial Port code doesnt work. Not sure if its my code, or my USB adapter. Can someone try it / tell me what ive done wrong? [code] #include <stdio.h> /* Standard input/output definitions */ #include <unistd.h> /* UNIX standard function definitions */ #include <fcntl.h> /* File control definitions … Software Development c data-structure unix | |
the project is about a debate, and there are 4 candicates in the debate, and we need to group them into 4 different dict and count the word frequence they said. the debate is line by line, and we should group the sentences by name tage, like PAUL: and then … Software Development python | |
i want applet connect to another machine but the socket cannot connect to the server i searched the web and there is something about giving permissions to the applet but i donnot know how to do so Software Development java | |
to anyone I am currently writing this C# program for a C# class I am taking and I have the correct formula which is Future Value=PresentValue*(1=Rate)Year the issue I am having is there is an error message for the futureValue= presentValue, the presentValue has the message Use of unassigned local … | |
I have a VB.net application that has three project in it. Two of the project are DLL with references in the primary project. I have a public Model "RegSaveGet" in the primary project listed below. When I look for the namespace for the module from one of the DLL projects … Software Development vb.net | |
Hello everyone, Ok my problem is that I do not get how to convert an array of characters to a string arrays. Like I do not get how to assign a null character at the end of a set of characters... how do I incorporate punctuation, spaces etc in this … Software Development c++ | |
Hey guys, I need help finding out what is wrong with my code, I have no errors, but it is not doing what I want it to. I need my code to print a bar code when a user inputs a zip code. My program does not get to the … Software Development java | |
Hey everyone, I am trying to create a random number generator with MIPS assembly. I have most of the code written, I just need to change my set number for a guessing game to a random number. I also want to ask the user if they'd like to play again. … Software Development assembly | |
I'm trying to read a boolean value from a table. For some reason, when the statement executes it kicks me out of the method and back out to .show() method. The data read takes place in a procedure that is called by the Form_Load procedure. Any idea why it's kicking … Software Development open-source vb.net | |
Hey all! I was thinking about how to make a program, in which you write some c++ code and program tests that code with given examples. For example you input following code in that program: [CODE]#include <iostream> using namespace std; int main() { int a, b; cin >> a >> … Software Development c++ | |
Here is the code of my binary tree can any one plzzz write the delet function for it..... i tried my best but..... [CODE]#include<iostream> #include<stdio.h> #include<conio.h> #include<Windows.h> #include<stdlib.h> using namespace std; struct st { int marks; st *left; st *right; }; struct st * create() { struct st *p=new st; … Software Development c++ | |
Hi guys>.< I'm trying to make a program that suppose to output like this: [QUOTE]Enter a String: [COLOR="red"]1231asd[/COLOR] No. of Digit: [COLOR="red"]4[/COLOR] End the Program? [COLOR="red"]y[/COLOR] [/QUOTE] *the [COLOR="red"]red[/COLOR] part is the input from the user. but the problem is, the no. of digits only display 0 and not the … Software Development java | |
Hi, I am getting an System.OutofmemoryException when using Filestream to load zip file. the file is 521MB. My code is: //Insert using Filestream, file into SQL Server Table private void btnInsert_Click(object sender, EventArgs e) { OpenFileDialog openFileDlg = new OpenFileDialog(); openFileDlg.InitialDirectory = Directory.GetCurrentDirectory(); if (openFileDlg.ShowDialog() == DialogResult.OK) { FileInfo fi … Software Development file-stream | |
I have written a very simple bash script that runs on Solaris10. It runs a command and then sends me the output via mailx. I can run it at the command line (sudoed as root) and it runs perfectly fine. I then set it up to run from root's cron. … Software Development shell-scripting | |
hi i'm working with a database application and i want to check if there is a null value in a specific column but it works only when its not null but if its null it throws an exception automatically i tried to change the nullvalue property of this column but … Software Development vb.net | |
Hello everyone, I have to code an array that in each row, it has 16 columns! So I called it myself a 17 dimensional array but I was wondering what data sturcture in Python can best represent this keeping in mind that, it should be easily addressable and modifible. For … Software Development data-structure python | |
package com.batch; import java.sql.*; import java.text.SimpleDateFormat; import java.util.ArrayList; import DBConnection.DBConnect; public class Batch { @SuppressWarnings({ "unchecked", "rawtypes" }) public ArrayList BatchAction(String ik) { Connection conn = null; Statement st = null; ResultSet rs; ResultSet rs1; ArrayList al = new ArrayList(); conn = DBConnect.getConnection(); final SimpleDateFormat monthDayYearformatter = new SimpleDateFormat( "dd … | |
Hi, I have been trying to wrap my head around how to control child windows in other applications. I have several examples of code from various sources and some of it works to control the main windows but im at a loss to figure out how to get control of … Software Development vb.net | |
I am having trouble with writing a tic tac toe program. My code executes just fine if the first move results in a win. If it doesn't the code just stops. It doesn't finish but it does not continue to run. Can someone help? Must start with the game board … Software Development c++ | |
[CODE] vector<string> guess(4); cout << "Input a Guess(e.g red blue green yellow): "; cin >> guess[0] >> guess[1] >> guess[2] >> guess[3];[/CODE] this is part of my code to let the user input 4 different guesses, is there anyway I can limit the input by 4 so that if the … Software Development c++ | |
Hey everyone I have created an application interface using Java swing on a mac, which looks exactly how I want it. However on windows and Linux the positioning of the components and what seems to be the dimensions look of place. I have tried to make the sizes of everything … Software Development java java-swing microsoft | |
[CODE] import java.io.*; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.lang.*; import java.util.LinkedList; import java.util.List; /** * * @author Animesh Pandey */ public class Main { public static int [][] sort( int a[][]){ int i, j, t = 0, t1 = 0, t2 = 0 ; for(i = 0; i < a.length; … Software Development java | |
Hey forum, I'm very new to C++, and I need some help. I'm currently having trouble trying to write a Caesar cipher in C++. So far, I'm able to get it to read characters from a text file, and let it count the # each letter appears in an array. … | |
Dear friends, These days ,I am learning something related to linear list.In implmenting the function of realloc.I have been pullzed for several days,although I can use "include" method to directly use the function. However , I deeply wonder that how can I write my own code to solve such questions in … Software Development c++ | |
[CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ char name[80]; char *searchptr; int i, t; for(i=1; name[i]!=EOF; i++){ printf( "Enter name\n"); scanf("%s", &name[i]); } for(t=i; t<=0; t--){ printf(" name[%d] == %s", i, name[t]); getch(); return 0; }}[/CODE] Software Development c | |
i hove a problem about hot to write a program to determine if a number entered by a user is a prime number. Program Input is : Prompt user for a number between 1 and 1000. the probable Program Output is: Echo the user input, display whether the number is … Software Development c | |
Below is an address book program I am working on. The way it stands now, when the data is entered and writes to a text file it writes the line of data like, John Doe 1234 Help Me Avenue Dallas Texas 98956 Johnathan Doe 2345 Derby Lane Omaha Nebraska 45678 … Software Development file-stream file-system gui java java-swing | |
Hi, I'm trying to define a dynamic array that consists of an email address and a home address. How can I define them dynamically using malloc() in the below struct? [CODE] typedef struct entry{ char name[40]; /* contains name */ char phone_number[9]; /* contains phone number */ struct entry *next … Software Development c | |
Dear All, I am developing a application where I have 1 parent from (windowstate of Parent from is set to Maximized) and 2 child forms. In my Parent form I have a menustrip with following code to activate child - [code] Public Class FormParent Public NewMDIChildForm1 As New Form1() Public … Software Development vb.net | |
costPerItem, itemQuantity, and productName keep getting the error "cannot find symbol" [CODE]package shoppingcart; import java.text.DecimalFormat; public class ShoppingCart { private double totalCost; private LineItem[] myItems; private int max = 100; int numberOfItems; //Provide a constructor for this class public ShoppingCart(int size){ max = size; this.totalCost = 0; myItems = new … Software Development java | |
Hi There, I'm very new to Python. Is there a easy way of looping trhough a file and using the values in a grep command? [code] Value A Value B 2011-12-14 20:54:09, 797410378, 2011-12-14 20:55:52, 734451141, 2011-12-14 20:56:30, 796058907, 2011-12-14 20:59:51, 736280553, 2011-12-14 21:09:42, 729858848, 2011-12-14 21:12:02, 825895818, 2011-12-14 21:13:53, … Software Development python | |
Hello everyone! :) I'm sorry I'm new to this stuff. So I'm trying to create a simple system information and I am attempting to populate a listview control and I get a Run-time error '380': Invalid property value. I hope you can help me and I hope it made sense. … Software Development listview visual-basic |
The End.