132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rbeach1955

I am using FactoryLink SCADA HMI software and I need to lock the focus on a screen that automatically opens and needs operator to answer before it will close and allow the user to continue on the background screen. If anyone knows where I can find this answer I would …

Software Development vb.net
Member Avatar for Begginnerdev
0
195
Member Avatar for bad.boy.Vlad

My function brokes. It gives 0 errors but brokes when i run it... int findk(int a,int b, int n) { int m[1000]; int j=1; for(i=1;i<=b;i++) { if((pow(2,i)>a)&&(pow(2,i)<b)) { m[j]= pow(2,i); j++; } } int k=m[1]; for(i=1;i<j;i++)if(m[i]>k)k=m[i]; return k; }

Software Development c++
Member Avatar for richieking
0
118
Member Avatar for vampersie

/*Why i can't match the input with the constant string array? It always shows the record with -1 Thank you.*/ #include<iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <cstring> #include <string> #include <windows.h> #include <cmath> string stuname[3]={"Chan Tai Man, Peter","Ng Fat Tat", "Tsang Chi Wai"}; void searchStudent(){ string search; int …

Software Development c++
Member Avatar for deceptikon
0
106
Member Avatar for SpottyBlue

I was practising the question before the final semester exam, and I have a problem. #include <iostream> #include <string.h> #include <cmath> using namespace std; int num; // A number needs to be entered int o_num; // Original number int r; string str1 = "", str2 = "", temp = ""; …

Software Development c++
Member Avatar for deceptikon
0
113
Member Avatar for ddanbe

The test.txt file I'm using is: 1,2,3,Name1,Pizza,Pizza Hut,7,8,9 1,2,3,Name2,goose,my home,7,8,9 1,2,3,Name3,chicken,airplane,7,8,9 Most of the explanation can be found in the snippet. Some CSV(Comma Separated Value) files often contain as first line, a header. You could skip this, or threat it a bit differently. I had no header, so I leave …

Software Development
Member Avatar for deceptikon
0
3K
Member Avatar for smart_virus87

I'm playing around on how to get last name in the string. Below is my current code and it is working. I want to know if there is another way to do it. strMsg = "John Doe" length = Len(strMsg) For i = 0 To length char = Right(strMsg, i …

Software Development visual-basic
Member Avatar for Jx_Man
0
235
Member Avatar for nouth

for example I don't know what this is called ยป `[('cat', 'meow'), ('dog', 'ruff')]` if I try `for l in [('cat', 'meow'), ('dog', 'ruff')]: print l` I am using l for lady luck lucy not I for I or the number 1 + maybe even | pipe for smoking it …

Software Development python
Member Avatar for vegaseat
0
250
Member Avatar for RAJESH.M

hello sir, my work is run version.sh file and collect the values of version and type in the output. i have around 500 servers,so i want to automate this process using pyhton. i had written sample code shown below, but it is not giving good results.will you please help me …

Software Development python
Member Avatar for rrashkin
0
172
Member Avatar for malkani.ji.73

Aoa... i m new to java.. please help me to correct this program given blew. it shows error of illegal start of esxpression.. how could b it seems as correct program please help me.. thanks alot **error: illegal start of expression JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + …

Software Development gui java java-swing
Member Avatar for stultuske
0
261
Member Avatar for salesman91

hi I am trying to save multiple images into one ID and I am getting no where ...I am posting the code so for storing and retrieving image (one image)...but need to store more than one ....need some help here ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Software Development dataset open-source oracle sql
Member Avatar for salesman91
0
2K
Member Avatar for madhura_1

hiii.. I got this strange problem.i m refreshing my jframe after every second.This jframe contains a button called addbutton.This addbutton opens another jframe.and that jframe contains a JComboBox .The problem is after every second the JComboBox is getting refreshed.I dont understand why.Before the user gets time to select any item …

Software Development java java-swing oracle
Member Avatar for madhura_1
0
404
Member Avatar for sandesh.ps.9

I'm developing an application in which i want the software to be executed at any place. So i want the database to be placed in one computer. This is the scenario. All the computers will be networked. Can i do this in c#.net ? Please tell me the procedures. Thank …

Software Development asp.net c# sql
Member Avatar for deceptikon
0
302
Member Avatar for strRusty_gal

Hi Everyone, I need help with my assignment but i only require assistance to give me some guidance on the issue. I need to write code in c linux programming, that can change directory [CD]. when you open the command prompt in the linux machine, you type cd .. or …

Software Development c
Member Avatar for strRusty_gal
0
240
Member Avatar for moon.fall.58

I seem to be having difficulty with my code, I have tried many different ways but I can't seem to figure out how to implement some things. I'm also not sure how to setup my menu so only certain functions are called. 1. Adding a if statement under ShowMenu to …

Software Development c++
Member Avatar for tinstaafl
0
567
Member Avatar for Violet_82

Hi all, as some of you might know the API is my nightmare. I know it's important and therefore I am trying to use it as much as I can. Today I am looking at a program that uses buttons to change the font of some text. So, I have …

Software Development api java java-swing oracle
Member Avatar for Violet_82
0
161
Member Avatar for asaidi

Hi can i run a program on windows compiled under ubuntu... simply..the program was wrotten on c++ under ubuntu os thanks

Software Development c++ ubuntu
Member Avatar for iamthwee
0
108
Member Avatar for Asan23

i am trying to pass and array to a function in a module so i can calculate the average with multiple entries and its not keeping the other entries only the lat entry. in the function i tried different way to see if i can get the private array and …

Software Development vb.net
Member Avatar for G_Waddell
0
288
Member Avatar for tbuchli

/* * File: main.cpp * Author: TBuchli * * Write a program that helps a real estate agent calculate an average price of *up to 20 homes. An array of data type double should be used to contain the *prices. The program should prompt the user to enter the number …

Software Development algorithm c++
Member Avatar for richieking
0
282
Member Avatar for TheFueley

I remember doing a class to handle rational numbers in one of my classes way back when. I decided to do it again. What I'm having trouble understanding right now is why do I even create a class when my overloaded functions are all friend functions? As I understand it, …

Software Development c++
Member Avatar for TheFueley
0
681
Member Avatar for GamerDJX

I am currently working on a project for class that reads in from a .txt file the names of a film, the year it was made, and the list of actors in said film, and sorts the info in a binary search tree. In the tree nodes, I have the …

Software Development algorithm c++ linked-list
Member Avatar for GamerDJX
0
252
Member Avatar for royi.navon

/* the thing is that i need to check if a given number (n) is a palindrome. i also used limits.h to identify if the number is is exceeding the limit. i came up with this beut it's no good. any ideas? */ #include <iostream> #include <stdlib.h> #include <limits.h> #include …

Software Development c++
Member Avatar for tinstaafl
0
138
Member Avatar for johnmecanse34

Hi, What is the default value of float and double datatype in Java? Its my interview question anyone know the correct answer? anyone..

Software Development java
Member Avatar for stultuske
0
228
Member Avatar for johnny_disco

Hi All, I am trying to scrape a piece of HTML similar to the below where I want beautiful soup to return something like: List Price, ยฃ28,410 Body Style, Open Car etc etc. I thought if I did this: soup = BeautifulSoup(html_doc) tag = soup.find_all('tr') tag_td = tag[0].find('td') tag_b = …

Software Development python
Member Avatar for BearofNH
0
227
Member Avatar for ObSys

Trying to return Multiple Card objects from a hashmap Currently using the following code private HashMAp<Integer,Card> allCards = new HashMap<Integer,Card>(); public Card getAllCards() { Collection col = allCards.values(); for(Card c: col) { return c; } } This works but only returns 1 Card object from many. How can I change …

Software Development java
Member Avatar for ObSys
0
170
Member Avatar for atzounis

Hello all, So here is my problem: I have 2 functions that one uses the other's calculations and result: int functionA(int a, int b) { int x = a+b; return x; } int functionB(int a, int b, int c) { int xx = x(a,b); int f = xx * c; …

Software Development c++
Member Avatar for NathanOliver
0
269
Member Avatar for kyriacos1986

I have been asked to count the overal time of an album. The user enters minutes and seconds in the formmat of mm.ss. I have wrote the folowing code but I don't get the result I supposed to get. I.E : 1st:3.55, 2nd 3.55 I got 7.1 instead of 7.50. …

Software Development java
Member Avatar for kyriacos1986
0
135
Member Avatar for kkjaykamau

I am new to using datagridviews and wanted to know how to populate certain fields. I have created a form and added a datagridview (named GridSellProducts) with Visual Studio designer and added 8 columns with the first named Item. I have also changed the column type for Item to DataGridViewComboBoxColumn …

Software Development json visual-studio
Member Avatar for Kratoswoo
0
181
Member Avatar for tsomondos

I wrote a few applications using Visual Studio 2010 and i was saving them in different folders but all of them are saved on my desktop and now i want to combine them and i'm failing..please can you help me or give me instructions on how to do it. Thank …

Software Development vb.net visual-studio
Member Avatar for Netcode
0
272
Member Avatar for pc20912

Table1 ID Name City ContactNo GK12-350 - Peter - Munich - 8997557906 EG24-812 - Colling - London - 8726 6000 RU38-915 - Brezhnev - Moscow - 4958721273 Table2 ID OderFrom OrderDate AprovedBy EG24-812 - City Saloon - 23-03-2012 - Thomas RU38-915 - General Merchants - 01-07-2011 - Rumpe EG24-812 - …

Software Development vb.net
Member Avatar for jrevox
0
608
Member Avatar for DanielTradeWs

I have this problem, I have a SQL code working perfectly on SQL Query windows... SELECT ID_no, nom_navire, date_mes, date_sav, description, nom_fourn, no_facture, date_facture, accept, decline FROM DB_FACTURE WHERE( ID_no = 39) Answer perfect On my code Is ... SELECT devise FROM FOURNISSEURS WHERE nom_fourn = '" + Nom_FournPass + …

Software Development open-source vb.net
Member Avatar for DanielTradeWs
0
400
Member Avatar for glao

Hello, I wanted to ask. If I define `typedef float mymat3[3];` and then I have a function: void myfunc(float *One_mat_, .... and inside function I do: mymat3 * One_mat=(mymat3 *)One_mat_; while(i<numPoints) { One_mat[i][0] = (One_mat_[++c1]); Does this mean , that I am copying One_mat_ (which I am casting it as …

Software Development c++
Member Avatar for glao
0
170
Member Avatar for DanielTradeWs

Hi every boddy Big problem here. I don't know if from access or vb.net I program in Visual Basic inside Visual Studio 2010 I have Access 2002 dbase with the first field caled ID_no : autonumber and primarykey and it is a "LONG INTEGER" I can not change because it …

Software Development vb.net visual-basic visual-studio
Member Avatar for DanielTradeWs
0
613
Member Avatar for Yarynka

I'm curious.. is it possible to extend the context of the word "monstrous" in concordance so we have: >>> text1.concordance("monstrous") Building index... Displaying 11 of 11 matches: ong the former , one was of a most monstrous size . ... This came towards us , ON OF THE PSALMS . …

Software Development python
Member Avatar for Yarynka
0
108
Member Avatar for moon.fall.58

I can't figure out how to add a loop to allow the user only three attempts to enter in a valid password. Any hlp would be appreciated it . #include <iostream> // cin and cout #include <cstring> // for string #include <conio.h> // for getch #include <cctype> // conversion using …

Software Development c++
Member Avatar for richieking
0
1K
Member Avatar for MrAlicard

Hello I want to solve it randomly reads the lines. I found a source code, but it will crash the program. This is source code: DWORD cFindEvent::GetRandomPosition() { //--------------------------------------------------------------------------------------- FILE * garew = fopen (MobCoords,"r"); //--------------------------------------------------------------------------------------- char temp[1024]; int i = 0; int j = 0; int licz = rand() …

Software Development c++
Member Avatar for MrAlicard
0
122
Member Avatar for ryy705

Hello, I am very new C#. I am trying to log into [url]http://mls.momls.com/SERetsMonmouth/Login.aspx[/url] with the following code and I am getting a 401 error. My user name and password are correct. I can manually log in through the browser. But I am not sure about the code I wrote. It …

Software Development c#
Member Avatar for Kumar_1
0
680
Member Avatar for harde_1

We only talk about DTD and XML in class for 2 days and i have this assignment not sure if im doing it right or did everything that has been asked. Atleast i try, any help will be appreciated!! Assignment You have been asked to represent airport data where an …

Software Development xml
0
190
Member Avatar for mrkm1188

I have a simple Windows Forms Application that I published to a network share and manually installed on a handful of users computers from the network share. I had to make a change to the software and had to manually uninstall and reinstall the new version of the form on …

Software Development vb.net
Member Avatar for Reverend Jim
0
145
Member Avatar for xcarbonx

Hello, I was just wondering if it is possible to create a data struct in assembly 8086. For example, creating a struct that holds a student's name and ID number.

Software Development assembly
Member Avatar for Assembly Guy
0
3K
Member Avatar for Waseemaburakia

I'm trying to modify a Bibblesort code I'm writing that will count the number of instances and print out a seperate line for each instance and how many occurances it had. def BubbleSortList(MyList): ComparisonCounter = 0 for j in range ( len(MyList)): for i in range ( len(MyList)-1-j ): if …

Software Development python
Member Avatar for Waseemaburakia
0
294
Member Avatar for klemek

My code is not reading my data file well. The code is supposed to read fractions from decending order, but it does not work half way through. please help! #include <iostream> #include <fstream> using namespace std; void read_data(int nums[],int den[],int size); void clean(int Cnum[],int nums[],int den[],int Cden[],int size); void low(int …

Software Development c++
Member Avatar for richieking
0
148
Member Avatar for pro.soltan

i wanna ahelp please hospital project i have made aclass room composed of 4(class bed) i wana to initalization all rooms ids and all beds id once time not every time i run the programmme example room 1 ---->bed1,bed2,bed3 // bed class <<--- class bed{ int id; bool empty; public: …

Software Development c++
Member Avatar for richieking
0
91
Member Avatar for Kratoswoo

using (StreamReader readFile = new StreamReader(filepath)) { string line; while ((line = readFile.ReadLine()) != null) { textBox1.Text = textBox1.Text + line + Environment.NewLine; } } This is what I have so far. I have tried using .Split to try to seperate them but do not know much about it. So …

Software Development
Member Avatar for ddanbe
0
234
Member Avatar for kyriacos1986

I am trying to calculate the overall time of an album. The user enters the track length (double) in format mm.ss . Then convert this in a String so I can calculate min and sec separately. public void overallRunningTime() { int min = 0; int sec = 0; for(int i …

Software Development java
Member Avatar for kyriacos1986
0
112
Member Avatar for manel1989

Hi everyone! I have in my GUI and two radio button **choco** and **gecode** and under each button (choco or gecode)I have 2 radio buttons *solution optimal* and *Feasible solution*: my problem lies in the selection buttons. Let me explain: when I click the radio button **choco**, I …

Software Development gui java
0
158
Member Avatar for cambalinho

//write void write() { setlocale(LC_ALL, "en_US.UTF-8"); cout <<""; } template <typename A, typename ...B> void write(string argHead, B... argTail) { setlocale(LC_ALL, "en_US.UTF-8"); if (blnBlink==true) { CONSOLE_SCREEN_BUFFER_INFO csbi; GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi); string a; a=argHead; TextBlink(a, csbi.dwCursorPosition.X, csbi.dwCursorPosition.Y,csbi.wAttributes); COORD Position; Position.X=csbi.dwCursorPosition.X+strlen(a.c_str()); Position.Y=csbi.dwCursorPosition.Y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),Position); } else cout << argHead; write(argTail...); } template <typename A, …

Software Development c++
Member Avatar for cambalinho
0
199
Member Avatar for sinnebril

Hi, I'm trying to teach myself the Python language with the Google Python class ([url]http://code.google.com/edu/languages/google-python-class/set-up.html[/url]). With the exercise 'wordcount' I get a Traceback error (with the main function and sys.exit(1) function). Even with the solution script (as displayed here). Does anyone recognize this problem and can some one tell me …

Software Development google python
Member Avatar for vegaseat
0
992
Member Avatar for pro.soltan

am doing my project phase 1 its about hospital : i have made a person class--patient inherite from it i wanna afunction to----add,alter,delete patient---------------- in text file the output 1--> add patient 2-->alter patient data 3-->delete a patient class person{ int id; string fname; string lname; string gender; int age; …

Software Development c++
Member Avatar for pro.soltan
0
148
Member Avatar for nileshjaiswal

Plz help me tell me how we can convert the C program in C++ I working on OCX(Active X controls) plzzzzzzzzzzz...............reply

Software Development c++
Member Avatar for frta
0
761
Member Avatar for andrew mendonca

Here is the website for the assignment: http://www.docdroid.net/6ap6/inheritance5.pdf.html Note: The ones highlighted in blue are the ones I completed, and the ones highlighted in yellow are the ones I need help with. Here is the website for the first header file (point.h): http://ideone.com/6bAeqv Here is the website for the first …

Software Development c++ pdf
Member Avatar for richieking
0
208

The End.