132,731 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zpzp16

I want to do x=[1,2,3,1,1,2,] y=[1,2] x-y=[3] but when I write z=[set(x)-set(y)] if gave: z=[1,1,2,3] how I can do it?

Software Development python
Member Avatar for woooee
0
143
Member Avatar for matanking

[CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream First("firstt.txt"); fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(First, firsttime); if(firsttime!="not"){ First << "not"; cout << "first time settings (to be changed at file.txt)" << endl << "allow every one enter? …

Software Development c++
Member Avatar for venomxxl
0
219
Member Avatar for davetheant

Hello. I have tried numerous string permutation methods, and they work, but not for what I need. I need to permute a string such that I don't get any reversals: abcd abdc acbd acdb adbc adcb * bacd badc bcad bcda * see how these are reversals of each other? …

Software Development java
Member Avatar for NormR1
0
195
Member Avatar for kylelendo

Hii I have been converting a file into its hex value.But cannot convert it back into same exe value Let me get in detail Here is the code [ICODE] Imports System.IO Sub Main() Dim fileName As String = "ABC.exe" Dim data As Byte() = File.ReadAllBytes(fileName) Dim fs As FileStream = …

Software Development vb.net
Member Avatar for thines01
0
791
Member Avatar for mikejs

I am going mad trying to sort this logic out lol [CODE] Public Sub Panels() If RadPanelSearchCur.Visible = True Then RadPanelTenant.Visible = False 'RadPanelProp.Visible = False RadPanelTenantEdit.Visible = False ElseIf RadPanelTenant.Visible = True Then RadPanelSearchCur.Visible = False 'RadPanelProp.Visible = False RadPanelTenantEdit.Visible = False ElseIf RadPanelAddTenant.Visible = True Then RadPanelSearchCur.Visible = …

Software Development vb.net
Member Avatar for codeorder
0
148
Member Avatar for bubbinos

Here's what I'm trying to do. I'm making a program that uses an array to store a deck of cards. I have other code written that converts a number between 1 and 52 into numbers and suits. My only issue is that my code to randomly put numbers into the …

Software Development c
Member Avatar for Adak
0
215
Member Avatar for rom.

I'm just starting out in C/C++, and I want to make a simple socket server script. It will be compiled on mac/linux and executed from terminal. Just want a simple script that will: - allow multiple clients to connect to the server on a specified port (they will be using …

Software Development c client-server socket-programming
Member Avatar for rom.
0
399
Member Avatar for JoshuaBurleson

is it possible to use the Fkeys, i.e. F1, F2,...F12, as input in any way?

Software Development python
Member Avatar for JoshuaBurleson
0
225
Member Avatar for Jazerix

Hey :D So I got two forms, form1 and form2 when i click on a button on form1, it will show form2 and hide form1 once, on form2 i got a button "cancel", when i click on that button i need to close it and unhide form1 and not open …

Software Development
Member Avatar for ddanbe
0
102
Member Avatar for Jazerix

So, I'm trying to get an image from the webbrowser in C# and for some reasons every second / third time it does it, it return a blank picture with the right canvas, instead of just getting the image, and I cant just download it, unfortunately thats not possible, so …

Software Development image
Member Avatar for Jazerix
0
122
Member Avatar for jigarsangoi

I wrote the following code for inserting the value in table company_db & database is Company_DB but the value are not inserted into the table table shows null values the code is below: [CODE]Imports System.Data.OleDb Imports System.Data.OleDb.OleDbConnection Imports System.Data.OleDb.OleDbCommand Public Class Newcompany Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, …

Software Development open-source vb.net
Member Avatar for debasisdas
0
132
Member Avatar for MissJava

Hi all, I really need your help on this as I am just learning Java. I do have an error message which says "cannot find symbol on line 23. Many thanks. [CODE] import javax.swing.JOptionPane; public class averageRainfall { public static void main(String[] args) { //declare variables String[] Month = new …

Software Development java java-swing
Member Avatar for MissJava
0
231
Member Avatar for michelleradu

Error C2662: 'Event::GetTime' : cannot convert 'this' pointer from 'const Event' to 'Event &'. This is my code: [CODE] #include <iostream> #include <queue> #ifndef Person_h #define Person_h #include "Person.h" #endif using namespace std; enum EventName { _SendMessageToUserInterface, _SetPNOld, _IntroduceInfection }; class Event{ int time; EventName name; Person person; public: Event(int …

Software Development c++ queue
Member Avatar for michelleradu
0
362
Member Avatar for aloi93

This is what i've made so far. [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int b=1; for (int i=1; i<=5; i++) { for (int k=1; k<=i; k++) { cout<<b; b++; } cout<<endl; } getch(); return 0; } [/CODE] The output is as below 1 23 456 78910 …

Software Development c++
Member Avatar for Anuradha Mandal
0
388
Member Avatar for JoshuaBurleson

In one of the books I'm using to study Python I keep seeing things like: [CODE] class Application(Frame): super(Application, self).__init__(master): self.grid() self.bttn_clicks=0 self.create_widget"""which is another function in the class"""[/CODE] Why is the super necessary for the class if the class it's calling is itself?

Software Development oop python
Member Avatar for JoshuaBurleson
0
263
Member Avatar for Obadiah1

hello every one, i ask for some help i would like to write program that enables the user to insert a photo into the picture box by clicking on a button. i used the following but it is bringing an error [CODE]pictureBox2.Image = Image.FromFile("path");[/CODE] Thanks

Software Development
Member Avatar for Jazerix
0
124
Member Avatar for surajrai

Hi, Can you give some practical example of association, aggregation and composition which will make this understandable. regards,

Software Development
Member Avatar for abhisinghstudy
0
154
Member Avatar for ceal21c

Hello, I am trying to bind an Access database to a MSChart control in VB Net 2008. I have a test database populated with four fields SAMPLE-Date\Time, Values-Number, MAX-Number and MIN-Number. I'd like to only display the rows that fall within a specific date range but I'm running into a …

Software Development vb.net
Member Avatar for Upoma
0
85
Member Avatar for CSharpUser

Hi all, and thanks in advance for your help. I am trying to write a Linq to XML query that will test attribute values in multiple elements and return the possibly multiple qualifying entries from a main element. The XML I'm looking at is basically like this: [CODE]<ContentList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" …

Software Development audio xml
Member Avatar for CSharpUser
0
2K
Member Avatar for zoraster01

can you help me to code a vb.net program.. i want to have a button that if i click it will add a table in the sql server database.. tnx :)) i really really need this code i only have 1 week to finish dis project :))

Software Development vb.net
Member Avatar for shivya jain
0
132
Member Avatar for vishalbhavsar

hi all, i am trying to do a mini project in java which is totally console based. please suggest me few topics for it...

Software Development java
Member Avatar for amrita111
0
161
Member Avatar for tky

is it possible? i would like create Q&A game with a countdown-timer. if timer=0 then stop the game. how can i do this? Thank you

Software Development pascal
Member Avatar for qqaa1122
0
634
Member Avatar for newbie14

Dear All, I have read dateTime field into a string from mysql database and in my java I have another dateTime in string format and in same format as the mysql date time and would like to compare both to see which one is before?

Software Development java mysql
Member Avatar for newbie14
0
166
Member Avatar for Hayzam Sherif

Hi i Am A Newbie In This Website So Please Go Easy on Me. I Have Baisc Knowledge of C++ And I Do Projects on A Daily Basis, But I Have Never Tried Anything Related To Networking .So I am Asking How Can I Make A Chat Program With 2 …

Software Development c++
Member Avatar for Narue
0
212
Member Avatar for Digitalwolf

Hello everyone, i write mostly in java but have recently started picking up c and c++, and i was wondering if there was an equivalent to the java date class in c++ or c? I've searched for a date.h and came up empty.

Software Development c++ java
Member Avatar for Digitalwolf
0
629
Member Avatar for pseudorandom21

Basically I'm wondering what a sensible approach to learning Windows driver development would be. I have a logitech mouse that logitech decided to drop support for Vista/W7 on, and I'd like to write a driver for it but if that isn't possible it's fine and I would work with some …

Software Development c++ windows-vista
Member Avatar for Narue
0
81
Member Avatar for thompsonSensibl

Hi there, I am trying to get the words (city names) from a user input. For example, the inputs: [CODE] String input1 = "Pyeongchang 135135.13 531.351"; //Note: "Pyeongchang" is of one word. String input2 = "New York 3543.25 25352.523532"; //Note: "New York" is of two words. [/CODE] I need to …

Software Development java
Member Avatar for JamesCherrill
0
174
Member Avatar for Upoma

I need the dates in a specific range.And i want to get the result in java manipulating from a MySQL database.Now how can i do so. Suppose there are 3 days 17.08.2011,18.08.2011 and 19.08.2011 .I want the dates in the range 16.08.2011 to 18.08.2011 .So how can i manipulate it …

Software Development java mysql
Member Avatar for mKorbel
0
162
Member Avatar for muaazab

Hi, I am learning to work in JAVA. I have gone through the basic concepts, understood and experimented small codes successfully. The point where I have been stuck is garbage collection, finzalize() method and System.gc() method. I have searched these on Google but all the explanations are in high-tech language …

Software Development java
Member Avatar for JamesCherrill
0
253
Member Avatar for pivotcity

I have been looking at tutorials in regards to isNullOrWhiteSpace to validate user input of a string. but i am unsure how to initialise the method. This is just a code snippet and all i am trying to do is place this in a loop to ensure if user presses …

Software Development c#
Member Avatar for pivotcity
0
296
Member Avatar for David321

Is there any easy way to view the full content of multidimensional arrays in VC++ 2010 in the debugger (or some other way I suppose)?

Software Development c++
Member Avatar for David321
0
204
Member Avatar for Simplicity.

Dear Folks, When I iterate within the very bottom function under the comment "#Update conserved quantities" in this module using for loop (see below), I have noticed that the block of statements below it is not iterated, [CODE] """ """ from numpy import * from math import * from scitools.std …

Software Development python
Member Avatar for Simplicity.
0
3K
Member Avatar for rodge125blazer

I have a project.A shape game There are shapes and yours should be controlled by arrow keys.. you should crash with another to gain point. once you collide to a another shape, it should adopt the shape and the color. The problem is when i se,t for example, shape1 top …

Software Development gaming visual-basic
Member Avatar for rodge125blazer
0
200
Member Avatar for vishal1949

I am making a program of a bowling tracker. I made four names and then I have to add specific dates they played and then the score they got on those days. Then print to screen the names, the number of games they played, average score, last games score and …

Software Development java linked-list
Member Avatar for NormR1
0
412
Member Avatar for Genericusername

Hello, I have written some code that spans 5 different files, which are all in a folder called Employee. The code runs fine without a package, but i have an assignment to package them. When i try to compile the object method which contains all the get and set methods, …

Software Development java
Member Avatar for Genericusername
0
147
Member Avatar for hughesadam_87

Hey everyone, I've tried extensively to find a thread like this already, so I hope it's not a repose. Basically, I have a program with a nice GUI (Tkinter) which has a frame which takes in matplotlib figures. I am able to connect the plots to the Tkinter frame this …

Software Development github gui python qt tkinter
Member Avatar for hughesadam_87
0
390
Member Avatar for SamY

I know how to print forms in vb but i wanted to change the page orientation to landscape but the code in the help file is [COLOR=red]:evil:form1.orientation=1 '1 for landscpe and 2 for prtrait:evil:[/COLOR] [COLOR=#ff0000][/COLOR] [COLOR=black]this doesn't work please help[/COLOR]

Software Development visual-basic
Member Avatar for agrothe
0
1K
Member Avatar for mikejs

Hi I am trying to save settings on close I have the following code [CODE] Private Sub MainSystem_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing My.Settings.firstRun = Me.RadCheckBoxFirstLoad.Checked = True End Sub[/CODE] and on form load [CODE] If My.Settings.firstRun = False Then RadPanelWelcome.Show() Else RadPanelWelcome.Hide() End If[/CODE] I …

Software Development vb.net
Member Avatar for mikejs
0
143
Member Avatar for discovery-power

Hi All, I am writing a program that saves quotes for writers to an xml file. Well I save my data to the xml file, but when I go to load the document I get this exception thrown at runtime. System.Xml.Xsl.XslLoadException was unhandled LineNumber=2 LinePosition=1 Message="Stylesheet must start either with …

Software Development vb.net visual-studio xml
Member Avatar for lolafuertes
0
268
Member Avatar for ninjatalon

I've created this application for some clients and for some odd reason it is not working for 1 of my clients. its seems to download a file no problem using this code [CODE] Dim request As FtpWebRequest = Nothing Dim response As FtpWebResponse = Nothing Dim respstrm As Stream = …

Software Development file-stream vb.net
Member Avatar for ninjatalon
0
177
Member Avatar for warlord902

I am using netbeans 7.0 in windows 7. The problem I am facing is that when we design any frame in GUI builder of netbeans then it uses Windows Look and Feel always, so i need to design according to that. So as long as I use windows look and …

Software Development gui java java-netbeans
Member Avatar for mKorbel
0
867
Member Avatar for Srcee

I'm writing an application in C#. I already have not empty .xml file but I want to add new values in it, without deleting some old. I have tried these codes: First: [code=c]FileStream docNewUser = new FileStream(@"C:\\MyApp\\MySubDir\\Data\\" + pr + ".xml", FileMode.Open); XmlTextWriter xmlNewUser = new XmlTextWriter(docNewUser, null); xmlNewUser.WriteStartDocument(); xmlNewUser.WriteStartElement("RootEl");//root …

Software Development file-stream xml
Member Avatar for hericles
0
166
Member Avatar for Javaid1

Hi All, A newbie question and a really stupid one indeed:$ I want to store some incoming data into an array and then compare it with an array that I have defined. I am posting the program here but it is Arduino based and uses the Wire library. But I …

Software Development c++
Member Avatar for Javaid1
0
797
Member Avatar for Roobin

Hi! Im Im trying to read a some 32-bit registers from a PLC and check if a bit is set. If e.g bit number 8 is set then i have an alarm. If bit 9 is set then it is acknowledged. If there is an alarm i would like to …

Software Development
Member Avatar for sknake
0
855
Member Avatar for SANJAY26

[CODE]Imports System.Data.OleDb Public Class Form1 Public con As New OleDbConnection Public cmd As New OleDbCommand Public da As New OleDbDataAdapter Public dr As OleDbDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim oOLE As String Try con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\BOND\BOND\bin\database\RBIBOND.mdb;Persist security info=False;" con.Open() oOLE = …

Software Development open-source vb.net
Member Avatar for SANJAY26
0
112
Member Avatar for DaveTran

Hi folks, I was wondering how I can differentiate between file types when using OpenFileDialog. I would like to be able to have the option to load different file types (as denoted by the Filter property) and handle each type in a different way. For example [CODE] Stream stream; OpenFileDialog …

Software Development file-stream file-system
Member Avatar for DaveTran
0
230
Member Avatar for cse.avinash

Can any one help me to know how to deal with big numbers, like to count the number of digits in factorial of 5*10^9. or how to make number 20,000 decimal. array can store only to 10^6, if heap is taken the size could extend up to 10^9.How to deal …

Software Development c
Member Avatar for TrustyTony
0
281
Member Avatar for Majestics

How to set white back ground for disabled combo box??? I already tried setBackground.... But it didnt work like textfields.

Software Development java
Member Avatar for mKorbel
0
1K
Member Avatar for Vaspar

[IMG]http://i25.lulzimg.com/29b7c6.png[/IMG] I used transparent panel and labels... used paint method to round corners... b4 using paint method panels were transparent but now one panel is transparent others are white... in properties it still transparent [url]http://www.mediafire.com/?l7tbtsh00w97pyn[/url] if i select wordpress category panel become transparent.. how i can solve this problem and …

Software Development gui vb.net wordpress
Member Avatar for Vaspar
0
104
Member Avatar for fragtech

My program generates a list of random or pseudo random numbers between a certain range specified by the user through the console. My problem is when the user, or in this case myself, tries to generate a random number list specified by entering true(1) in the console the output is …

Software Development c++
Member Avatar for WaltP
0
176

The End.