132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
main() { int i=5; printf("%d%d%d%d%d",i++,i--,++i,--i,i); } Answer: 45545 Thanks in advance. Software Development c | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 ![]() |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
I need to use Drools 6.2.0.Final. Is it possible to use Guvnor with it? Any example? Thank you. Software Development java | |
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 | |
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 | |
![]() | Hi There, here is a form from my VS2013C Project  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.? … ![]() |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 |
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 | |
![]() | 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 ![]() |
![]() | 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 … ![]() |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 … Software Development file-system microsoft-access microsoft-office | |
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 | |
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 … | |
Here lambda is used to create a one-line function for factorials. Software Development python | |
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 | |
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++ | |
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.. … | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 … ![]() |
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 … | |
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++ | |
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 |
The End.