132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kamalashraf

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() …

Software Development c++ seo
Member Avatar for rubberman
0
7K
Member Avatar for Slavi

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
Member Avatar for Slavi
0
246
Member Avatar for zoollu

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
Member Avatar for ramu1211
0
876
Member Avatar for Slavi

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 …

Software Development gui java
Member Avatar for Slavi
0
295
Member Avatar for martin3885

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
Member Avatar for martin3885
0
186
Member Avatar for Agouri

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++
Member Avatar for BeautyBeast
0
784
Member Avatar for UCHIHAOTOBI

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
Member Avatar for Gribouillis
0
1K
Member Avatar for sGirl123

I want to split sentence that has + I code this: String[]s; String a; s=a.split("+"); but it throw this exeption: Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 what should I do?? thanks

Software Development java regex
Member Avatar for sGirl123
0
142
Member Avatar for mrabrar09
Member Avatar for stultuske
0
532
Member Avatar for patrik666assassin

#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++
Member Avatar for patrik666assassin
0
144
Member Avatar for Roots

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++
0
117
Member Avatar for GOMEZ_1

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++
Member Avatar for melissad
0
191
Member Avatar for nibiruisaplanet

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++
Member Avatar for melissad
0
300
Member Avatar for Muhammad Shahg

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++
Member Avatar for melissad
0
300
Member Avatar for iConqueror

When would you use an interface over an abstract class vise versa?

Software Development
Member Avatar for hericles
0
187
Member Avatar for ocw91

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
Member Avatar for ocw91
0
178
Member Avatar for Jjajangmyeon

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++
Member Avatar for David W
0
237
Member Avatar for abaddon2031

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
Member Avatar for Gribouillis
0
479
Member Avatar for Mya:)

Is it just me or is Delphi not so popular when it comes to programming laungages?

Software Development delphi pascal
Member Avatar for Matt_13
0
495
Member Avatar for realmattbender

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
Member Avatar for realmattbender
0
150
Member Avatar for arunkumars

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
Member Avatar for h4ng4r18
0
265
Member Avatar for Joemeister

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++
Member Avatar for iamthwee
0
605
Member Avatar for nhrnjic6

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++
Member Avatar for tinstaafl
0
153
Member Avatar for mrupload

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 …

Software Development c++ gui
Member Avatar for Schol-R-LEA
0
354
Member Avatar for fmchua

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
Member Avatar for David W
0
104
Member Avatar for furalise

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++
Member Avatar for furalise
0
185
Member Avatar for henryz_box

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
Member Avatar for henryz_box
0
131
Member Avatar for Suzie999

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
Member Avatar for Suzie999
0
1K
Member Avatar for rfresh

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
Member Avatar for rfresh
0
6K
Member Avatar for henryz_box

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 …

Software Development java sql
Member Avatar for henryz_box
0
241
Member Avatar for sami9356

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
Member Avatar for Schol-R-LEA
0
245
Member Avatar for Anamika15

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
Member Avatar for JamesCherrill
0
759
Member Avatar for Joemeister

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++
Member Avatar for L7Sqr
0
166
Member Avatar for dendenny01

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
Member Avatar for DeanMSands3
0
574
Member Avatar for Nebil

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
Member Avatar for Nebil
0
224
Member Avatar for vishalcap

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 …

Software Development java session
Member Avatar for JamesCherrill
0
278
Member Avatar for Ravi_exact

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
Member Avatar for Gribouillis
0
303
Member Avatar for sing1006

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
Member Avatar for sing1006
0
240
Member Avatar for aluhnev

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.

Software Development c c# c++
Member Avatar for Hiroshe
0
207
Member Avatar for V3N0M

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
Member Avatar for Hiroshe
0
128
Member Avatar for covert

Is here anybody knows FORTRAN well? I have a compiler related problem.

Software Development
Member Avatar for Hiroshe
0
158
Member Avatar for cambalinho

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++
Member Avatar for cambalinho
0
138
Member Avatar for sreejhu

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
Member Avatar for sreejhu_1
0
166
Member Avatar for MasterHacker110

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
Member Avatar for covert
0
142
Member Avatar for ParPau

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 …

Software Development image java pdf
Member Avatar for Taywin
0
2K
Member Avatar for ankit.baphna

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 …

Software Development image php
Member Avatar for ankit.baphna
0
410
Member Avatar for henryz_box

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
Member Avatar for JamesCherrill
0
491
Member Avatar for dippy78

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

Software Development java oracle
Member Avatar for jwenting
0
306
Member Avatar for senait.kifle.127

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
Member Avatar for David W
0
279
Member Avatar for aluhnev

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++
Member Avatar for Hiroshe
0
644

The End.