43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for asoud80

how can i Write a C++ program to display cities of USA using switch case newyork,virginia,texas,hollywood,chicago & newmexico

Software Development c c# c++
Member Avatar for wolfdragon
0
119
Member Avatar for Ritesh_4

Hi, I have a C# project which I want to make into a Windows installer (either .msi or .exe if possible) so that it can be deployed for e.g. in the C:\Program Files\myproject folder on any PC running Windows (and if possible limit it as from Vista onwards with a …

Software Development c# windows-vista
Member Avatar for Muhammad_71
0
1K
Member Avatar for anand01

Hi all , Good Day! I am having confusion in storing null values in hashmap and passing null in println method. 1) When I add null value in hash map directly it will not allow at the same time when I assign a null value in to string and add …

Software Development java
Member Avatar for Taywin
0
316
Member Avatar for bmwwbb54

Write a program that fills a one-dimensional array with 10 random integers between 1 and 25. The program should perform the following tasks: 1. Print the contents of the array horizontally. 2. Print the sum of the contents of the array. 3. Print the maximum number in the array. 4. …

Software Development java
Member Avatar for bmwwbb54
-1
186
Member Avatar for Search_not

I'm making an instant messenger program and I want to allow clients to connect to each other privately(peer-to-peer) using their IP addresses. The only method I know at the moment is a client/server method where the server needs to be online for the client to work. How do I allow …

Software Development client-server gui java peer-to-peer
Member Avatar for Search_not
0
270
Member Avatar for overwraith

So, I am trying to get a query working that finds a certain flash drive attached to my computer and selects it's DriveInfo object. I am having trouble because on my system when I call the VolumeLabel property of one of my DriveInfo objects it throws an exception (IOException) because …

Software Development
Member Avatar for overwraith
0
214
Member Avatar for pronob.roy.3110

what is differences between linked list and array

Software Development c++ linked-list
Member Avatar for Moschops
0
118
Member Avatar for Piolo_1

i want to update all this column in 1 execution. any reply is highly appreciated.. thanku UPDATE tblstoreitems SET price='499' WHERE TypeOrModel = 'A130'; UPDATE tblstoreitems SET price='599' WHERE TypeOrModel = 'A140'; UPDATE tblstoreitems SET price='1899' WHERE TypeOrModel = 'Alpha Style'; UPDATE tblstoreitems SET price='1699' WHERE TypeOrModel = 'Amethyst'; UPDATE …

Software Development vb.net
Member Avatar for Piolo_1
0
136
Member Avatar for Builder_1

Simulate a patient’s lines using queues with enqueue ( ), dequeue ( ) and printQueue ( ) operations. Define a queue node in the following manner: typedef struct queueNode { int patientID; // Unique identifier; starts at 1; after 24 hours should be reset to 1 int checkupTime; // Random …

Software Development c++ queue
Member Avatar for Builder_1
0
380
Member Avatar for Auroch

Hello. I need to write a program to evaluate a definite integral with Simpson's composite rule. 1. ![fb9ac9a01f247c8a0ed8a606b7c10f4a](/attachments/small/4/fb9ac9a01f247c8a0ed8a606b7c10f4a.png "align-left") I know there is a Simpson's rule available in Scipy, but I really need to write it by the following scheme. 2. ![239643044a08379e5fe3747e13b2834e](/attachments/small/4/239643044a08379e5fe3747e13b2834e.png "align-left") , where a, b - limits of …

Software Development algorithm c++ mathematics
Member Avatar for Auroch
0
2K
Member Avatar for Muhammad_70

public static bool CheckIdentifier(String i) { bool state = false; char[] c = i.ToCharArray(); try { if (Convert.ToInt32(c[0]) >= 65 && Convert.ToInt32(c[0]) <= 90 || Convert.ToInt32(c[0]) == 95 || Convert.ToInt32(c[0]) >= 97 && Convert.ToInt32(c[0]) <= 122) { for (int Index = 0; Index < c.Length; Index++) { if (Convert.ToInt32(c[Index]) >= …

Software Development asp.net
Member Avatar for ddanbe
0
344
Member Avatar for aluhnev

//Hi i do the delivery company project,this are my members of the base class //how do i create 2 constructors in base,one for sender and one for recipient? //I did one for sender ,but visual studio does not allow me to create identical for recipient //Can some one help to …

Software Development c++ visual-studio
Member Avatar for rubberman
0
260
Member Avatar for UK-1991

Hello guyz Just written a small code trying to make a scenario in which I get a name from user and see that the provided name is present in my array list if it is then it displays name found if not present in array it simply says name not …

Software Development java
Member Avatar for JamesCherrill
0
107
Member Avatar for redtribal23

Okay so first is I am confused with the void function. It is said that void function does not return a value. If for example I have a void function that gets user input, like price and month, how do I use price and month to do another function? int …

Software Development c++
Member Avatar for redtribal23
0
149
Member Avatar for qaff

Helo, i'm Qaff. i want some advice from system developer about the system that i want to create. this system is only about sales transaction which involve daily sales records and online order. what i means about daily sales record is when custumer buy something from our shop, we can …

Software Development
Member Avatar for qaff
0
135
Member Avatar for ardi_lucy

help me plz i need to sort ip address, am try to sort in java.util.Arrays.sort() but it not correct for eg [CODE] String st[]={"10.4.23.16","10.4.23.9"}; java.util.Arrays.sort(st); for(int i=0;i<st.length;i++){ System.out.println(st[i]); } [/CODE] the out put is 10.4.23.16 10.4.23.9 plz give idea

Software Development java
Member Avatar for anita_2
0
1K
Member Avatar for photoguy77

teacher assigned out of the book "python programming: an introduction to computer science. second edition. page 384 # 19 is as follows this below is verbatim from the book and the instructions for the assignment are "Python Assignment #10 Complete programming exercise #19 on page 384 from Chapter 11" create …

Software Development python
Member Avatar for chriswelborn
0
374
Member Avatar for cambalinho

i know move the mouse for where i want. but how can send a click message to another program?

Software Development c++
Member Avatar for cambalinho
1
216
Member Avatar for savedlema

Hi! I'm developing an application for hospital patients information. Now, as common for hospitals, I need to add a feature for various reports.Now I would like to know if you think Crystal Reports are a good option still. I would like to present many reports which a user will choose …

Software Development vb.net
Member Avatar for xrjf
0
392
Member Avatar for marvin.lerias

package Assignment2; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class AuctionDialog extends JFrame implements ActionListener { private JLabel lblOutput; private JTextField tfBidder; private JTextField tfPainting; private JTextField tfAmount; private JTextArea taOutput; private JButton btnSubmit; private Painting paintings; private Bid bids; private Auction artworkAuction; public AuctionDialog( ) { artworkAuction …

Software Development java java-swing
Member Avatar for marvin.lerias
0
284
Member Avatar for Simon180

Am trying to make my program menu and skin resize when I disable the MainMenu VCL I have attached a image of a program that uses same idea when menu is enabled there is too buttons hidden but once the menu is disabled the pager and options buttons and rest …

Software Development image pascal
Member Avatar for SalmiSoft
0
239
Member Avatar for Pyler

I can serialize an object if it's class definition has attributes. So if I have an object whose class does not have attributes, do I serialize the attributes importedi in it's class definition? For example; suppose I have the following class, #ifndef BREAD_H #define BREAD_H #include "EGGS.h"; #include "FLOUR.h"; class …

Software Development c++ sqlite
Member Avatar for mike_2000_17
0
279
Member Avatar for Decode098

package mobile; import java.util.*; /** * * @author user */ public class Mobile { /** * @param args the command line arguments */ public static void main(String[] args) { int[][] data = new int[10][10]; data = timesTable(10,10); Scanner scan = new Scanner(System.in); System.out.print("Enter Row:"); int row2 = scan.nextInt(); System.out.println(""); System.out.print("Enter …

Software Development java
Member Avatar for stultuske
0
272
Member Avatar for Lilgenski16

//BlackJack // Plays a simple version of the casino style game of blackjack; 1 - 7 players #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> using namespace std; class Card { public: enum rank {ACE = 1, TWO , THREE , FOUR , FIVE , SIX , SEVEN …

Software Development algorithm c++
Member Avatar for Lilgenski16
0
242
Member Avatar for ncassambai

Hi so basically I need to create a timer for this simple maths test. I need it to give each question, lets say 30 seconds for test purposes, and then move onto the next question after the time is up and repeat the timer like that. Just cant figure it …

Software Development python
Member Avatar for woooee
0
144
Member Avatar for TheGuy831

Hi ive been trying to click a close button within a iframe within a webbrowser control.. my code works in WebBrowser.Document not Reading Outterhtml="x" Try WebBrowser1.Document.GetElementById("bannerClose").InvokeMember("Click") Catch ex As Exception End Try and Dim theElementCollection3 As Windows.Forms.HtmlElementCollection theElementCollection3 = WebBrowser1.Document.GetElementsByTagName("img") For Each curElement As HtmlElement In theElementCollection3 If curElement.GetAttribute("alt").Contains("x") Then …

Software Development vb.net
Member Avatar for J.C. SolvoTerra
0
3K
Member Avatar for lester2020

Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click Dim checker As Boolean = True Dim prompt As String = String.Empty Dim people As Integer Integer.TryParse(txtPeople.Text, people) people = ValidatePeople(txtPeople.Text) If people = 0 Then prompt = prompt & "Invalid number of people " checker = False …

Software Development vb.net
Member Avatar for Santanu.Das
0
197
Member Avatar for schroaus

Does anyone know a way to remove the 0's from an integer? i.e 1320000 would be 132 and 540 would just be 54.

Software Development c++
Member Avatar for schroaus
0
126
Member Avatar for nitin1

/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; class Test{ public static void main(String args[]){ String Str = new String("WelcometoTutorialspoint.com-"); int i=0; System.out.println("Return Value :" ); for (String retval: Str.split("-", 2)){ System.out.println(retval); System.out.println(i); i++; } i=0; System.out.println(""); System.out.println("Return Value :" ); for (String …

Software Development java
Member Avatar for nitin1
0
169
Member Avatar for jean_5

I have the following code: if (filtro.FinalDate != null) { FinalDate = String.Format(" Data <= '{0}' ", filtro.FinalDate.GetValueOrDefault().ToString("yyyy-MM-dd") + " 23:59:59"); } But when I compile and type something in the FinalDate, the following message appears in the log: Could not convert string to DateTime: 18/11/2014. Path 'FinalDate', line 1, …

Software Development
Member Avatar for isozworld
0
7K
Member Avatar for nikk8a

Hello, I have a string which consists of tokens enclosed in square brackets []. I need to identify these and process the string to replace them with some other derived values. I am unable to get list of tokens via Pattern matching. Below is my code snippet. String str = …

Software Development java
Member Avatar for nikk8a
0
247
Member Avatar for Slavi

Well basically, I was coding earlier and I encountered this for(int i = 0; i<acl.size();i++){ //System.out.println(acl.get(i)); if(acl.get(i).contains(role)){ permissions = acl.get(i).split(":"); if(permissions[operation].equals("yes")) return true; } } and I was getting index out of boundary exception, but I knew that wasn't the case so I decided to use a for loop to …

Software Development java
Member Avatar for Slavi
0
137
Member Avatar for Pyler

So I'm trying to remove 2 brackets from lines I'm reading from a file. For some reason when I run my program the characters in between the delimeters is removed. for example `greetings pe()ple` would end up as `greetings pe` I'm using a char array of delimiters. `char delimiters[] = …

Software Development
Member Avatar for Pyler
0
208
Member Avatar for lithium112

I am using Linq and keep getting a DBNull error since my datatable contains DBNulls. I have: var Sum = (from dt in dt1.AsEnumerable() where (dtCutOffDate.Subtract(dt.Field<DateTime>("Date")).Days) >= iStartRange && dtCutOffDate.Subtract(dt.Field<DateTime>("Date")).Days <= iEndRange && ((items == null) || (dt.Field<string>("AcctNo") == items)) && (dt.Field<string>("type").Contains("6") || dt.Field<string>("type").Contains("9")) select dt.Field<double>("amount")).Sum(); The date column is …

Software Development
Member Avatar for lithium112
0
2K
Member Avatar for Lilgenski16

199 C:\Users\Gaming-PC\Desktop\C++ Files\Tic-Tac-Toe.cpp expected unqualified-id before "if" {//Tic Tac Toe //Plays the game of tic tac toe agaienst a human opponent #include <cstdlib> #include <iostream> #include <string> #include <vector> #include<algorithm> using namespace std; //global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' …

Software Development algorithm c++ gaming
Member Avatar for NathanOliver
0
270
Member Avatar for H

Hey there, My program works by having a blank form, then adding picturebox controls to the form. I need to reference these pictureboxes later on, and so I need to add each one to part of an array. But when I am adding my picturebox (The Object) to MyGrid (My …

Software Development vb.net
Member Avatar for H
0
210
Member Avatar for mark103

Hi all I have got a problem with the list of strings. I have got the full list of strings, but I can't be able to print for each string which I can only print for the full string. When I use this: programList = list() # set the channels …

Software Development python
Member Avatar for Gribouillis
0
279
Member Avatar for Papa_Don

Hello group! I need to scrape data from the screen of an open application. It will be used as text, so it will need to be converted into a string that I can parse. I've looked around and found scrapers that use the "picture" as a bitmap or jpeg. The …

Software Development regex vb.net
Member Avatar for cgeier
0
3K
Member Avatar for Dinesh_9

Hi everyone,I am assigned with an task of writing an java code to create an Word-Frequency-Counter which needs to satisfy the following constraints: 1)It must prompt the user to enter an path from where the code will read all the contents of text files(.txt) present in that directory. 2)An property …

Software Development java
Member Avatar for vighnesh.anap
0
6K
Member Avatar for rory.starkweather.7

I recently bought a legacy Borland C++ package, Version 4.5, on EBay, and it apparently includes Object Vision. I don't know whether to be happy or depressed, The only descriptions I have found of Object Vision say it is a 'form based' programming language. I'm not sure what that means. …

Software Development
Member Avatar for drianhodgson
0
444
Member Avatar for TheGuy831

Hi i Been Trying all night to get **Flash Player** to occupy **All** Browser Control using the height="100%" and width="100%" ![0e4a025266d1fe1c72d867596476e7d3](/attachments/small/4/0e4a025266d1fe1c72d867596476e7d3.png "align-left") ![d5a44ac00709c049b7c89b808cf2a4b0](/attachments/small/4/d5a44ac00709c049b7c89b808cf2a4b0.png "align-left") Making **Flash Player** Full screen in Browser Control.. Please!! Help!! Thank you..

Software Development flash vb.net
Member Avatar for TheGuy831
0
247
Member Avatar for Silvainius

I am trying to make a memory game using labels and command buttons, and I have run across an issue in which when I try to set up a timer with a loop within a Sub function. My current code for this: Private Sub Form_Load() tmrStart.Interval = "1" End Sub …

Software Development visual-basic
Member Avatar for Silvainius
0
171
Member Avatar for samson.dadson.3_1

the problem I have here is: when I input an integer it works fine, but when i input any other thing, it doesn't give me a chance to input again when the loop iterates, it just keeps printing "error type the right thing" to the screen even though "cin var" …

Software Development c++
Member Avatar for samson.dadson.3_1
0
2K
Member Avatar for AQWst

Hello-- I am not sure where I should post this. I have an Excel spreadsheet with some cells I would like to concatenate into one resulting cell. I can get the cells concatinated, but I would like to concatenate one cell to the degrees symbol, followed by a space, followed …

Software Development microsoft microsoft-office
Member Avatar for ddanbe
0
274
Member Avatar for david.nicely.393

Need help with writing an algorithm: Department Store Sale! Prompt the user to enter the sticker price of each of the clothing items they’re purchasing (make sure all input prices are positive). The user should be allowed to purchase as many items as he or she would like. For each …

Software Development algorithm python
Member Avatar for sneekula
0
136
Member Avatar for xuexue

How can I upload the data from an Excel Spreadsheet to my database in DB2? Thanks! :)

Software Development vb.net
Member Avatar for J.C. SolvoTerra
0
396
Member Avatar for ambageo

Hi to all of you! I'm using Eclipse Luna 4.4.1 for Mac. I have made a project for a Java seminar I am attending.My project consisits of several classes that runned perfectly fine...until today.That is , when I opened one of my classes and made some changes I started getting …

Software Development ide java
Member Avatar for ambageo
0
334
Member Avatar for Sylvia_H

i need to write a program to output an ascii art pattern. the size of the pattern should change dynamically based on class constants. if i change the class constants, the pattern changes. Should look like this Number of boxes: 4 Width of boxes: 6 Height of boxes: 3 +------+------+------+------+ …

Software Development java
Member Avatar for Slavi
0
237
Member Avatar for jared.geli

I can post a single line of row I selected from datagridview but I want to select specific multiple rows then display it in my crystal report. BTW I'm using VB2010. Dim cmd As New OleDbCommand("Select * From Data1 Where ID = " & Form4.DataGridView1.SelectedRows(0).Cells(0).Value.ToString() & "", Form4.con) Dim adpt …

Software Development dataset display vb.net visual-basic
Member Avatar for waterm
0
2K
Member Avatar for don75cua

Hi, Im teaching myself VB, specifically, how to create forms(im using VS Express 2013). I wanted to use the values from an xls file( already exported it as LMS.csv, a table with 4 rows X 3 columns) as constants for my form. I've tried the codes below but its not …

Software Development visual-basic
Member Avatar for don75cua
0
128

The End.