132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mahnoor_1

I need to find out the output of the following code snippet return by function go(2) ... int a=10; int go(int b) { if(b<=4) return b; else return go(b+1)*go(b-2)-(b*2); ++a; cout<<a; return -1; } When I do the dryrun myself on paper , it should first return the value of …

Software Development c++
Member Avatar for Mahnoor_1
0
174
Member Avatar for aravindm

main() { int i=5; printf("%d%d%d%d%d",i++,i--,++i,--i,i); } Answer: 45545 Thanks in advance.

Software Development c
Member Avatar for Moschops
0
203
Member Avatar for Darth Vader

Hi, I get an error when trying to compile a class that I have created: "EWrapperImpl.cs" **Error: TestCsharp.EWrapperImpl' does not implement interface member 'IBApi.EWrapper.currentTime(long)** It is documented in an example that: "you need to provide at least an empty shell of the method declared in EWrapper" but I don't know …

Software Development
Member Avatar for sandeepjkl
0
435
Member Avatar for kim_boto

Hi guys, i want to make a timetable management system in c#. the system should generate timetable for school for both teachers and students. please help me out here.

Software Development
Member Avatar for sandeepjkl
0
1K
Member Avatar for wudie47

Trying to create function called parseExtension that takes a file name as a string parameter and returns the file extension. Going to ask users to input a filename ie. Python.exe then print the file extension. I tried to split the text and a number of issues for me so far. …

Software Development file-system python
Member Avatar for wudie47
0
7K
Member Avatar for Slavi

Hey guys, I've got an AES encrypted file that my task is to decrypt knowing that it used gcc PRNG to generate the key and I know in which week it happened ... So I made a script and it works great except for that fact that .. well there's …

Software Development file-system python
Member Avatar for Gribouillis
0
195
Member Avatar for cudawella

I want to add data to sql databse using vb.net form And I am new to programming :( I get an error message saying "Incorrect syntax near "deatails") Can somebody tell me the reason the following is the code I'm using Imports System.Data Imports System.Data.SqlClient Public Class Customer_Profile Dim con …

Software Development client-server sql vb.net
Member Avatar for cudawella
0
8K
Member Avatar for kapil456
Member Avatar for 111100/11000
0
98
Member Avatar for Anna123

Dear All, I have two files where I need to map file_1 to file_2 based on the similarity of the 1st column from file_1 to 8th column to file_2 and print the similar rows with annotaions for that. I am able to achieve that with the following perl script. But …

Software Development perl
Member Avatar for 2teez
0
441
Member Avatar for Tango2010

Hi, I wonder if anyone can help, We have an unbranded DVR player, which outputs files by default as native: .rmi – containing the video metadata .rms – containing the video stream itself .rai – containing the audio metadata .ras – containing the audio stream itself We need to convert …

Software Development audio file-stream video
Member Avatar for rproffitt
0
568
Member Avatar for Juninho_1

Good evening, I'm having problems when trying to save a listbox in a .txt file, follow the code; IO.Directory.CreateDirectory("C:\Test") Dim Caminho As New IO.StreamWriter("C:\Test\Arquin.txt") Dim i As Integer For i = 0 To ListBox1.Items.Count - 1 Caminho.WriteLine(ListBox1.Items.Item(i)) Next Caminho.Close() The following error occurs: 'Item' is not a member of …

Software Development vb.net
Member Avatar for Reverend Jim
0
171
Member Avatar for can-mohan

I want to ask how to pass the '30','31','32' to SQL WHERE IN clause For example EXEC SQL DECLARE abcd CURSOR FOR SELECT Consignment FROM Transaction WHERE order_type IN (:dest) where dest will hold the value '30','31','32'. I have tried as above example but it is not working SQL did …

Software Development c c# c++ sql
Member Avatar for can-mohan
0
335
Member Avatar for 승환

Hello, I have used geopy module for my school project. Today, I run my code but an error occurred error was: geopy.exc.GeocoderServiceError: HTTP Error 500: Internal Server Error it occurred at geolocator = Nominatim() location = geolocator.reverse(pr, timeout = 20) before a few days, my code worked well, so I …

Software Development python
Member Avatar for cereal
0
1K
Member Avatar for vijaycare

I am herewith develop an application but I have created a class which calls button events(i.e. enable or visible). I am actually created the button events class(classfrmLoad) for the way which buttons should be enabled and visible when each & every form loading. There are 6 buttons in the forms …

Software Development vb.net
Member Avatar for vijaycare
0
185
Member Avatar for skaa

I need to use Drools 6.2.0.Final. Is it possible to use Guvnor with it? Any example? Thank you.

Software Development java
Member Avatar for rproffitt
0
210
Member Avatar for Papa_Don

Group, In VB.net, I use the following to return the actual name of a folder where data is kept. Is there an equivalent in VBA? I sure hope so. It would solve some problems for me. foldernameGD = CStr(getFolderNameGD("O:\Revenue Management\Centralized Revenue Management Service\CRMS Hotels", propertyNo2 & "*")) In advance, thanks …

Software Development vb.net visual-basic
Member Avatar for Minimalist
0
322
Member Avatar for Saran_1

Good Afternoon: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated with each header field. Is there a best practice for working with this? Ideally …

Software Development json microsoft-office os-x python
Member Avatar for Saran_1
0
18K
Member Avatar for westsiderailway

Hi There, here is a form from my VS2013C Project ![Texting_Form.jpg](/attachments/large/4/0f3a409637419f1390baf300f584d929.jpg "align-center") As you can see, there are 9 labels that need filling. My Question is, can I load the dataset with 9 different select statements from the same Table, and then fill the 9 labels with the correct data.? …

Software Development dataset vb.net
Member Avatar for westsiderailway
0
182
Member Avatar for Nirav Vasoya

I have one filter devexpress filter control. I want to convert IN operator into Like condition. Current Result - Column_Name In ('10.00', '10.10') Or Column_Name In ('10.20', '10.15') Expected Result Column_Name like '%10.00%' Or Column_Name like '%10.10%' Or Column_Name like '%10.20%' Or Column_Name like '%10.15%' Can some one help on …

Software Development vb.net
Member Avatar for Santanu.Das
0
138
Member Avatar for nk.shilpa

Hello I am new to Python and I have a question for a simple piece of code as below: temp = '32' if temp > 85: print "Hot" elif temp > 62: print "Comfortable" else: print "Cold" According to my understanding, when the program compiles and goes to line 2, …

Software Development python
Member Avatar for nk.shilpa
0
258
Member Avatar for Mr.M

Hi Dw. How can I tell if a file contains any file within it? I mean suppose I have a picture and I want to check if its a pure picture or there is a file hidden inside, this question comes after I read this post but it was number …

Software Development file-system vb.net
Member Avatar for Minimalist
0
268
Member Avatar for themathprof

I'm coding in VB6. I have pictures in Picture1 and Picture2. I would like to replace the picture in Picture1 with the picture in Picture2. What code will get this done? Thanks.

Software Development image visual-basic
Member Avatar for Santanu.Das
0
2K
Member Avatar for Saidivya

Hi, I want to edit the file in the following way My Sample File: 101 273970116 2719674681506161941D094101METABANK WAVECREST 5220Taxi Charger Micro Deposit - Cr A271967468WEBP2P 150616 1273970110000001 6220110000156534057672 0000000007GreenGrP2C386daTest User S 0273970110000001 6220110000156534057672 0000000005ClarkGrP2C386dcTest User S 0273970110000002 82200000020002200002000000000000000000000012A271967468 273970110000001 9000001000001000000020002200002000000000000000000000012 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 In the above file, wherever if …

Software Development file-system java
Member Avatar for JamesCherrill
0
176
Member Avatar for Nebil

Hi all, I am having issue with my datagrid view. I plcaed some code in the 'SelectionChanged' event of the control. What the code does is it assigns items based on index to textbox items. This exception is raised when ever I click on the column header of the data …

Software Development vb.net
Member Avatar for tarunap
0
244
Member Avatar for bhaltulpule

I am trying to do simple math in c using a microcontroller. The C toolset uVision that I have does not have printf scan etc functions. In any case the code below reads in two parameters p1, p2 from the user over a serial port usig a simple routine GetHexByte …

Software Development c
Member Avatar for rubberman
0
243
Member Avatar for xuexue

hi guys.. i always got this error in vb6.. here's my code [CODE] '########### Variable declaration ########### Dim conn As ADODB.Connection Dim rs As ADODB.Recordset '########### Variable initialization ########### Set conn = New ADODB.Connection Set rs = New ADODB.Recordset strUserName = txtUserName.Text strPassWord = txtPassWord.Text connStringSQL = "MySQL ODBC 5.1 …

Software Development visual-basic
Member Avatar for Kishore1982
0
1K
Member Avatar for westsiderailway

Hi eveyone, I have a few labels in a panel and found this bit of code... Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click Dim RndGen As New Random For Each ctrl As Control In Panel1.Controls Dim lbl As Label = TryCast(ctrl, Label) If lbl IsNot Nothing Then …

Software Development vb.net
Member Avatar for westsiderailway
0
261
Member Avatar for westsiderailway

Hello Everyone, This time i am not asking for any help :-) I am showing anybody ,who wants to know how to add a $ sign into any item/subitem in Listview. Did try to add colour,BUT, there is a BUG in VS. you can code for differant colours in subitems,BUT …

Software Development listview vb.net
Member Avatar for westsiderailway
0
463
Member Avatar for Michael_43

I am trying to validate if this is a BST or not and return a true or false. I believe I have the code right but i cannot get it to print properly if I could get any help how to fix my problem it would be greatly appreciated. Test …

Software Development java seo
0
163
Member Avatar for nitish.mohiputlall

I want to hide the button in my AppBar from the HubSections i have been using the following codes but it does not work please help i have just started with c# im new to it. Thanks HubPage.xaml <Page.BottomAppBar> <CommandBar x:Name="mybar" ClosedDisplayMode="Minimal" > <CommandBar.SecondaryCommands> <AppBarButton Label="setting" Click="AppBarButton_Click"/> </CommandBar.SecondaryCommands> <AppBarButton x:Uid="CALENDAR" …

Software Development microsoft
Member Avatar for rproffitt
0
166
Member Avatar for jamesjohnson25

records = [ ('foo',1,2), ('bar','hello'), ('foo',3,4), ] def do_foo(x,y): print 'foo\t{0}{1}'.format(x,y) def do_bar(s): print 'bar\t{0}'.format(s) for tag , *args in records: if tag == 'foo': do_foo(*args) elif tag == 'bar': do_bar(*args) when i run the above program , i get invalid syntax .I dono why this happens? Can someone help …

Software Development python
Member Avatar for woooee
0
396
Member Avatar for sam_7

I will be implementing MVC model in my program but before that, I have done a simple program based on my understanding of the MVC model. I have three pages: - The user will enter a value in page one and click the next button. - The value will be …

Software Development java java-swing
Member Avatar for JamesCherrill
0
272
Member Avatar for rythreion

hi!im new in c++ i need help how to make a software that convert any number that the user will enter and convert it in any base that the user will enter. It will convert it and show the result.

Software Development c++
Member Avatar for NathanOliver
0
4K
Member Avatar for adamf07

My problem is this: I am trying to automate the download, parsing, and insertion of an excel file into a database. I have the parser and inserter done, but I can't seem to find a way to download the files automatically. The core of the issue is that the website …

Member Avatar for juhi_devloper
0
859
Member Avatar for Ahmed_62

public static boolean isEmpty(int grid[][]) { for (int r = 0; r < grid.length; r++) for (int c = 0; c < grid.length; c++) if (grid[r][c]==0) { return true; } return false; } the question is : after returning true it back to (for loop) or not ????

Software Development java
Member Avatar for stultuske
0
158
Member Avatar for Strange&Evil

Hey Guys! I Have A Device With a Small LCD Module Like This (http://tiny.cc/gva5pw). And I Have to Write a Code in C To Display Text on The Module ! I Also Have To Run Program in a Minimal Modified Version of FreeBSD ! So Far I Havent Started to …

Software Development c open-source user-interface
Member Avatar for Nathan_5
0
233
Member Avatar for vapor162

Hi all, I'm brand new to daniweb and fairly new to vb.net and am trying to get my head wrapped around looping through an XML file to create toolstrip buttons in VS 2013 vb.net. i have searched all over google and youtube and now im totally confused. I'd like to …

Software Development vb.net xml
Member Avatar for Reverend Jim
0
344
Member Avatar for vegaseat

Here lambda is used to create a one-line function for factorials.

Software Development python
Member Avatar for vegaseat
0
4K
Member Avatar for SpottyBlue

Hi, The ticket counter program looks fine, but I have ran into a different problem. It is regarding about the transaction class (lines 64 - 110). After I input the number of tickets to print out, it will register to the transaction class. But when I want to view the …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Kasxar
Member Avatar for vegaseat
0
131
Member Avatar for Hassaan_3

An electricity board charges the following rates to domestic users to discourage large consumption of energy: Unit used (u) Residential rate Commercial rate 0 < units <= 100 6 8 100 < units <= 200 8 13 200 < units <= 400 12 17 500 < units <= 800 17 …

Software Development c++
Member Avatar for vegaseat
0
162
Member Avatar for vapor162

is it necessary to close, dispose or otherwise close an XML document after loading it as an Xelement? example: Dim xmldoc As XElement = XElement.Load(xPath) im transitioning from using streamreader and ini files into using XML and im not sure if I need to worry about freeing up resources etc.. …

Software Development vb.net xml
Member Avatar for cgeier
0
2K
Member Avatar for Michael_43

I have been working on this String Split method and the special for loop that I am currently trying to get to properly work does not seem to be working no matter what I do. It keeps printing just the parent directory and not the lower directories. public boolean moveDown(String …

Software Development file-system java
Member Avatar for stultuske
0
203
Member Avatar for Michael_43

Hi Ive been working on this for a while and have everything wokring excep the movedown method which does not work properly. It wont allow me to go to a subdirectory and cannot seem to get it do do properly Ive tried nested loops and while loops none of which …

Software Development java
Member Avatar for JamesCherrill
0
362
Member Avatar for SpottyBlue

Hey, it's been a year never using Java. I want to get help with this, so I was trying to print the number of ticket entered, but got error. Can help? import java.util.*; class Transport { protected double price; // Price per person for each transport protected int seatsRemaining; // …

Software Development java
Member Avatar for JamesCherrill
0
706
Member Avatar for Darth Vader

Hello, I have a very strange problem. I have created a code that I beleive is multicore/parallell threading to make a task to run faster using more cores in the computer. **My computer is a server: 32 cores (2 CPU with 16 cores each) 32 GB** Refering to my code: …

Software Development multithreading
Member Avatar for rproffitt
0
2K
Member Avatar for westsiderailway

HI again, I would like to know how i would use a loop for the following code, thanks for read this. LV1.Columns.Add(ds.Tables(0).Columns(0).ColumnName, 25) LV1.Columns.Add(ds.Tables(0).Columns(1).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(2).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(3).ColumnName) LV1.Columns.Add(ds.Tables(0).Columns(4).ColumnName) LV1.Columns.Add(ds.Tables(0).Columns(5).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(6).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(7).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(8).ColumnName, 75) LVitem.Text = dt.Rows(0).Item(0).ToString LVitem.SubItems.Add(dt.Rows(0).Item(1).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(2).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(3).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(4).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(5).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(6).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(7).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(8).ToString) i was …

Software Development listview vb.net
Member Avatar for westsiderailway
0
4K
Member Avatar for Mayukh_1

I have made this code. It is working good. Can anyone please help me to make it more optimised? Here is the code. /* ∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑∑ Author: Mayukh Sarkar Email: mayukh2012@hotmail.com Country: India License: GPL public Copyright ® © ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ */ #include <stdio.h> #include <stdlib.h> static int size = 0; typedef …

Software Development c storage
Member Avatar for David W
0
139
Member Avatar for Rafiii

Hello, so this user input all in one line string , i need to parse the input into two categories: user age and user name. for example , the user input -->> [23:Frank] [15:Jack] [45:] [33:sofia] [] in this case i have more than one argument (delimiter, total of 3 …

Software Development c++
Member Avatar for David W
0
2K
Member Avatar for rohtashrathore

Hi All, I have a problem in my jdialog(child) and the parent frame is jframe,it is taking two events to close the jdialog,both from the close caption available at the upperright corner of the dialog,as well as from the button add where i have used dipose() to close on single …

Software Development java java-swing oracle
Member Avatar for mKorbel
0
258

The End.