132,726 Archived Topics
Remove Filter ![]() | |
hi, below is the code for binary search in case of array is sorted in ascending order. what changes i have to do if array is sorted in descending order. #include<iostream> using namespace std; void getdata (int a[], int size); int binarysearch (int a[], int size, int key); int main() … | |
In the past couple of days, I've been practicing with JavaFX and I made myself an app, which I am planning to use in the future. It is supposed to keep track of web pages and the passwords I use for them, usernames as well of course. The program itself … Software Development java | |
Hi, I am familiar with shell script but not really have much experience. I am looking into a shell script that would do this I have 2 tables TableA id name interest ---------------------------------------- TableB id name I have to create a shell script which copies all the id,name values from … Software Development mysql shell-scripting | |
Please before you answer NOTE , I am not trying to implement a keylogger, this is just a QUESTION. So, It just randomly happened that I started thinking about this and I figured that in java if you want to have a keyEventListener the key should be entered in a … | |
Hi, my task is to read a text file and display it in a DataGridView and to be able to filter the data. Each column in a DataGridView will be a string from a file, separated by "," -> column1, column2, column3... Each line will be a new row. The … Software Development | |
Hello gentelemen, I'm sure many of you are experiencing what I am experiencing right now. I'm halfway into Christmas break, back at my parents', with the paperbacks I brought along depleted, the roguelike I downloaded unable to start after an OS upgrade and literally nothing else to do for the … Software Development c++ | |
I read the book -natural language processing with Python. and I did exactly what the author said, downloaded all packages after installation of the NLTK. then just input"from nltk.book import *" SUPPOSE: >>> from nltk.book import * *** Introductory Examples for the NLTK Book *** Loading text1, ..., text9 and … Software Development python | |
Hello Everyone, Can we see the code execution step by step on an editor. Software Development java | |
#include <iostream> #include <string> using namespace std; int main() { int nap; cout<<"Milyen nap van ma?\n "; cin>>nap; if (string nap =="hétfő") { cout<<"Szar rizzsel"; } return 0; } I just begun to explore the wonders of C++. I'm trying to write a simple code but I always run into … Software Development c++ | |
Hello. I am trying to calculate the distance between coordinates. I am detecting the movement from camera/video, using for tennis ball tracking and saving the coordinates of all candidates so that means the ball movement and also the player or whatever noise there could be. My final goal is to … Software Development c++ | |
Hi Brethrem, am kind of new in the C++ world, so far am learning about functions but am stuck on the difference between call a function by reference and call it by value. I will appreciate your help Software Development c++ | |
I'm required to learn it for a degree. I already know a bit of Java. But I'm just kind of wondering if it's a waste of time or not. Software Development c++ | |
What is the difference between Static Variable and Ordinary Variable?Which Variable is expensive to use in c++ programming?Give some resion? Software Development c++ | |
When would you use an interface over an abstract class vise versa? Software Development | |
I am currently trying out a code to generate image from html pages and i was trying with the code from [bitmap webbrowser](http://www.charith.gunasekara.web-sphere.co.uk/2010/09/how-to-convert-html-page-to-image-using.html). some how i just keep on getting error when the following method run for second times (i guess the threading is the main issue). i am using … Software Development | |
My instructor provided this class for us to use. He hasn't answered the e-mail I sent, and this is due soon. I keep getting an error. I haven't touched the file, just included it. G:\ManageActivities\Date.h|23|error: 'string' does not name a type| #ifndef DATE_H #define DATE_H #include <string> #include <sstream> class … Software Development c++ | |
I am trying to do a search for sub-folders in a directory that conaint numbers. The format could be a date range for example: 1-1, 01-1, 1-01, 01-01. The first number will only go up to 12 and the second one will go as high as 31 and im trying … Software Development python | |
Is it just me or is Delphi not so popular when it comes to programming laungages? | |
I am looking to do exactly what the title states. I have a radio field that i would like to persist across a page refresh. The following is my code: <div id="RadioFields"> <input type="radio" name="country" value="usa" id="usa" />USA <input type="radio" name="country" value="foreign" id="foreign" />Foreign Country <div id="countryerror"> <div class="asterisk" runat="server"> … Software Development java | |
select SUBSTRING('hello 世田谷区経堂世田谷区経堂 ',5,10) as Japanese gives output as "o ????????". Is there any way i can get the substring of above string ? Thanks in advance for your help. Software Development sql ![]() | |
I am trying to transform a infix mathematical expression into a postfix expression using the shunting yard algortihm but can only get so far by writing the pseudo code because I know exactly what to do through logical thinking but can't write the code that will help me do it. … Software Development c++ ![]() | |
Am having real problem understanding what the problem is. Here is the code : Stack.h : #ifndef STACK_H #define STACK_H #include<Node.h> typedef int Stack_entry; class Stack { public: enum Error_code{succes,overflow,underflow}; private: int counter; public: Stack(); ~Stack(); //Stack& operator=(const Stack &Stack_copy); bool empty_stack()const; Error_code push(const Stack_entry &item); Error_code pop(); Error_code top(Stack_entry … Software Development c++ | |
Hi I am beginner in c++ , I have a console project and want to convert it to windows application , after 6-7 days trying I couldn't convert it and when I compile project I have many more errors This is my console project: http://uploaded.net/file/8yv5u1s7 Please convert it for me … | |
hi. can someone help me with this . req: if item code is A description is CHAIR witha a prize of 200 else if itemcode is B description is TABLE with a prize of 500 else item code is C description is PC with a prize of 4000. output display … Software Development c | |
Hi there. I have found how to declare a two dimensional vector like below: vector < vector < vector<int> > > myvector; My question is, how do I declare a three dimensional vector? Is it as per below? I just thought there may be a standard for this. Thanks vector … Software Development c++ | |
I'm having trouble getting the Cards off the table in this card game I'm working on. The cards are JLabels that hold images of the cards. These JLabels are created dynamically into a JLayeredPane. I have created some variables to hold the info I believe I need in order to … Software Development java | |
I'm trying to catch an SQLite problem but I'm unsure how. The problem is opening a database which is password protected. No error appears to be thrown when opening a database with an incorrect or no password. I tried the following. SQLiteConnection m_dbConnection = null; try { m_dbConnection = new … Software Development open-source sqlite | |
I've added a splitContainer to my form but I can't figure out how to set the splitContainer.panel2 width and height? I have two panels: splitContainer.Panel1 and splitContainer.panel2. I have the splitContainer.Dock set to Left. When I try to set the splitContainer.panel2 width I get an error saying to set the … Software Development | |
I have an issue with accessing a table in my database after using the truncate command on it. Having to delete the whole database and recreate it not every time but often. The table is used to hold the index of a card and the card's value. This is the … | |
Does the design pattern play any important role in the development of quality applications by using structured and object oriented paradigm? Justify your answer with logical reasons. Software Development | |
Program is to find the most frequently used words across all the input files, where each word must appear at least once in each file. How can this be achieved? I am new to java and yet to dig things deep. So trying through such programs. Software Development java | |
I am working on how to convert a infix to postfix expression and then calculate that converted postfix expression. I have the following thought process on how to do this. 1. Receive a infix expression (Through the main file) 2. Instantiate the variables in this expression through a function called … Software Development c++ | |
Here is the simple program for addition when running in tasm it gives some garbage value and I cannot figure out what is the error hi Please any help will be apperetated Thank you .model small .data opr1 dw 1234h opr2 dw 0100h result dw 001 dup(?),'$' .code mov ax,@data … Software Development assembly | |
I have an excel file that i managed to perform some calculation.It's to know the asset value of bridges in a current year.I have 21 fields in the file.Out of the 21 fields,seven fields are just information about the bridge,the rest are used for the calculation based on various conditions.And … Software Development microsoft-office vb.net | |
hi i am trying to automate one form in selenium using java code. the same codee working fine in firefox but getting error in IE. Started InternetExplorerDriver server (32-bit) 2.42.0.0 Listening on port 10840 Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with name == ImpersonateUserId (WARNING: The server … | |
Hi, I've created new signal , where i specify list and object datatype. dataChanged = QtCore.Signal(list, object) But list and object datatype don't convey properly that what will be in list and in the object. So it would be good if we could declare something like this, dataChanged = QtCore.Signal(lst_employees, … Software Development python | |
here is my code for delete Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click If MsgBox("Are you sure you want to delete this item?", vbYesNo + vbQuestion, "Delete") = vbNo Then Else If Me.DataGridView1.Rows.Count > 0 Then If Me.DataGridView1.SelectedRows.Count > 0 Then Dim x As Integer = Me.DataGridView1.SelectedRows(0).Cells("FNo").Value … Software Development microsoft microsoft-access vb.net | |
Hi,can you explain the use of **for_each and lambda** in c++11.What are they for,how to use? I have seen a few examples but do not get the meaning.Thank you. | |
Hi everybody I am beginner developer and I was wondering if you store the algorithms lets say on paper or in the computer once you are done solving a problem or do you just wait if a similar problem and jump into solving it again? Thanks! Software Development | |
i'm trying to understand some joystick structure: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757112%28v=vs.85%29.aspx but isn't easy. at least these image help me more(joystick layout): https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1259&v=3 but i need ask more: 1 - the Hat and X and Y coordenates are the same or they can be programmed in separed ways? 2 - i can't find … Software Development c++ | |
I would like to know why my data is not saving permanently in my local database. If I close my application and open it again. I cannot download the uploaded data. Its showing an error called "**The given key was not present in the dictionary**” But I can download the … Software Development | |
As I understand it, Fortran 2008 is the latest release? I have searched goolge but was un - able to find a Fortran compiler and tutorials Fortran 2008. Software Development | |
All, Looking for newbie help. I searhed the internet looking for examples to follow. What I want to do is write code to read a multipage pdf and convert to jpg (each page) and display on screen. I find way too much stuff that is either complicated or it is … | |
Hi Friends, I am using this code to upload image but it seems my call is not getting inside function. I put some echo commands for debugging. all I get output is after selecting file "hello entering function". but do not get other echo command print. Neither insert command is … | |
I have a Jframe that contains a JPanel which has a label that I use as a background image and a second JPanel that I want to add my controls into. I am attempting to add and position labels dynamically. I can add the labels but they all appear at … Software Development java java-swing oracle | |
Hi, Need help on exporting data to csv from oracle database when i export ... the field which has null values (in database) appear as 'null' word in the csv output. Is there a way to avoid it? thanks | |
Hello Everyone, This question is quite hard for me to understand it. I have gone this further. your help will be appreciated. The program is used to calculate volumes of tanks. #include <stdio.h> #include <stdlib.h> #define PI 3.14152 /*Declare for storing the data of a cylindrical tank new structure type … Software Development c data-structure | |
Hi i started the book c++ from ground up,but looks like it's too old.I came across the bonded array.Question- what are they,where to use them,how and are they still used in c++11? Thank you . Software Development c++ |
The End.