43,549 Solved Topics
Remove Filter ![]() | |
[CODE]#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { char ch, play_or_no_play='y'; while (play_or_no_play == 'y') { cout << "Enter a character: "; cin >> ch; while (ch != 'c') { cout << "Wrong Character, try again: "; cin >> ch; } cout << … Software Development c++ | |
Hey, im just wondering if there was any easy were to make sure that an entry havent been used twice in a selection of ComboBoxes. Heres the start for what id have to do if there isnt. [CODE]Private Sub ComboBox9_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox9.SelectedIndexChanged If … Software Development vb.net | |
Hello - The code that I have below works .. but I am sure that there must be a more efficient way of looping through to check for a winner. Any advice much appreciated ... thanks:). [CODE]if ((nandcButton[0,0].Text == "0") && (nandcButton[0,1].Text == "0") && (nandcButton[0,2].Text == "0") || (nandcButton[1,0].Text … Software Development | |
hello all i have a string *354*4*string#.what i want is to fetch the string and calculate it's length. plz help Software Development java | |
As the title suggests, i am trying to pull a bitmap image stored in a table location with an OLEObject type to my picture box on the form. The code i am using is as following: [CODE=VB.NET]img_ProductPicture.Image = DS.Tables("LocationInfo").Rows(0).Item(5)[/CODE] The error i am receiving is an InvalidCastException: Unable to cast … | |
Hello - I cannot understand why I cannot get a win message box to show for my naughts and crosses game? I'm puzzled because no errors show - so I am guessing that I need to be making a 'win method' or something similar ???:confused: [CODE]Button[,] nandcButton = new Button[3,3]; … Software Development | |
[B]hi all using telnetlib, I am issuing a 'top' command on a remote host. Top seems to continue indefinitely. On a terminal, I can use CTRL+c to suspend the process... What can be passed in telnet.write() equivalently to suspend the process , yet retain the output so far... pls help … | |
Hi everyone! Is there a function in Perl which is similar to the following [CODE]getServletContext().getRealPath("/filepathInContext")[/CODE] which is in Java? The getRealPath method returns a String containing the real path for a given virtual path . I can't seem to find one. Any help would be much appreciated. TIA. Software Development perl | |
how to store the output of a telnet session on a local machine, so that it can be used further for calculations?? | |
I am making a program that involves adding time. It involves adding a beginning time, duration which would lead to the result of an end time from the sum of beginning time and duration. I will illustrate the problem i am having below: 12:15 start time with a duration of … Software Development c++ | |
Hello! Every 1.. Can Any1 Please tell me How to make A Form in vb.net Transparent without Making Its Contents Transparent..! Actually I mean I make a border less form which i want as Transparent and in that Form i added little animation picture .. and iwant this animation picture … Software Development vb.net | |
hi i want to create a program which will be working like a agenta,meaning a user will fill in a form with an action he wants to perform and the time he must do it and my program should pop up a window which will be trigered by his computer's … Software Development c | |
Hi, I have just started C# and I have created a console application that ensures that the option 'Calculate and display (c)' is not executed if the student details and results have not been entered. I am unsure how to validate a non-entry. Software Development | |
I'm trying to use a DLL that is generated from one of my projects. When I try to compile I get alot of linker errors from ONE of the files from the DLL project. What I think is the problem is that I should be linking to the .lib file … Software Development c++ | |
Okay, so I understand this C# program I was given to analyze, and now I am being told that I need to convert the entire program into C++, just my luck. So there are several features that at the moment I do not understand how to convert over. If there … | |
#This is a homework assignment# I need to calculate how many seconds old I am in C. I'm thinking that I can take my birthday as user input and convert it to a date with strptime. I then would like to take the present date and put both it and … | |
I am using streamreader to read and streamwriter to write, i have put the lines into an array [text file contents] ********** Remove [ ] ***************** blah blah blah ;this is blah blah blah ;this is another blah [end of example file] i want to remove the lines that start … Software Development vb.net visual-basic | |
Help.... I have 3 vectors I want to store in 1 array, but I can't figure out what I'm doing wrong [CODE] vector<double> range, az, el; double RAzEl[1000][3] = {}; for ( unsigned int j = range; j <= (num); j = j + ncols ) { range.push_back(row_d[j]); } for … Software Development c++ | |
I'm creating some barcode generator, and I want to save generated barcode to database, but I have a problem when I want to get bytes from PictureBox Image. It says that Image property is null. That's hapening because barcode is drawn on the PictureBox(not in Image property). I think that … Software Development image | |
Hi you all, I have the following code to put a CSV file into a DataTable. [CODE=C#]// read CSV file private DataTable BuildDataTable(string fileFullPath, char seperator) { const int EOF = -1; DataTable myTable = new DataTable("MyTable"); DataRow myRow; try { StreamReader myReader = new StreamReader(fileFullPath); } catch (Exception ex) … Software Development file-system | |
Hi, I would like to set my application to show [COLOR="Green"]system under maintenance[/COLOR] if it hit the [COLOR="Red"]start time[/COLOR] until the [COLOR="Red"]end time[/COLOR] which i set in the xml (24 hrs). How do i code it. Please anyone can guide me.Thank You! [B]XML[/B] [CODE] <Value Name="StartTime">22.45</Value> <Value Name="EndTime">00.00</Value>[/CODE] ![]() | |
Hello Friends... I have one urgent query... Please help me solving it. I am trying to use PreparedStatementCreator interface. By making an anonymous inner class,i have implemented it's createPreparedStatement(Connection) method. When this method is implemented, it will automatically called every time. But, I want to know which is that connection … Software Development java | |
Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this … Software Development python | |
hey guys ive made a project in vs2010 that has a hardcoded (int val; val=800000; in main) amount set at start , the amount is 800000 (800k) i gave it an int type , and it works all well but when i try to run it in the anicent turboc … Software Development c | |
hello guys)) Advice please - how to set the stream encoding? (to read a text file) I use this code - [CODE] StreamReader stream1 = new StreamReader(fs); System.Text.Encoding code = stream1.CurrentEncoding; StreamReader stream2 = new StreamReader(fs,code); while ((i = stream2.ReadLine()) != null) { label1.Text = label1.Text + i; } stream2.Close();[/CODE] … Software Development file-stream | |
[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m … | |
Hello. Can someone tell me why this doesn't work? [CODE] Public Sub LoadFile() Dim file As StreamReader Dim temp As String Try file = New StreamReader("C:\file.txt) temp = file.ReadLine() While Not temp Is Nothing Dim ListaTemp() As String = temp.Split(CChar(",")) ListBindingSource.Add(New Mod(CInt(ListTemp(0)), ListTemp(1), ListTemp(2))) temp = file.ReadLine() End While file.Close() … Software Development file-system vb.net | |
Hi all, I'm new on this site and was hoping some of you more experienced coders could give me some advice. I'm a long time IT guy, always loved programming but never got too deep into it. I know the basics of programming in .Net and C# but I would … Software Development c# engineering | |
Hi I am a PERL novice. Currently dealing with a problem and wondering whether it can be solved using PERL? I got a folder containing a number of text files. Every time a file is created a timestamp is added at the end followed by an "_". for example "apple_20101210091255.txt". … | |
i dont understand why i have that exceptions. All i try to do is to write a file . Kill an object and load the file :( it says: "Unable to read beyond the end of the stream." [CODE]using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Project1 { class … Software Development file-stream | |
Hi. I've got a JSlider in my applet which I want to change the position of. [CODE] int initValue = 10; int minimum = 10; int maximum = 20; JSlider slider = new JSlider(JSlider.HORIZONTAL, minimum, maximum, initValue); [/CODE] I've got this in the applets init() method. [CODE]add(slider); //add the slider … Software Development java | |
Hi, I have a problem with my code. I am checking for the application instance. When i run application A , application B also must run. Below is my code to check the Application B if it is not running i have to make sure the code below execute it. … Software Development vb.net | |
Hi, I have a form with gridview data with database data. With query I run INSERT INTO from one table into another, with button. I would like when I run procedure, also reset/update/refresh gridview with new import data??!! For info, I have try with some methods, such as me. gridview.refresh() … Software Development vb.net visual-studio | |
hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some … Software Development c++ | |
I have a text file contain a coordinate 100,20 240,100 23,45 I manage to read row and split it into and integer. and get it to point x=100 ,y=20. the problem is in the end i got a null when i print in console show a null like this 100 … Software Development java | |
how can we draw arc using turtle graphics. any guidance would be great regards Software Development python | |
I'm trying to write a small app and I want it to show the OS Install key. How can I pull this? I'm using Visual Basic 2008. Software Development vb.net visual-basic | |
I've been scanning all over Google for code or articles explaining this but nothing seems to tell me what I need to know. Most have said to use InPtr = 4 for 32 or 8 for 64. I just need to be able to determine whether the OS the program … Software Development vb.net ![]() | |
Hello... I want to change the TextBox border color if certain event is true. For example, in a GroupBox, there is a TextBox and a Button. If the TextBox is empty, and I click the button, I want the TextBox border color to change to red. If the TextBox is … Software Development vb.net | |
I am getting external link errors with the static consts below. Couldn't figure out what to do, would appreciate help :) [CODE]// Declartion of Order class class Order { private: // all of the different combo #s int a, b, c, d; int e, f, g, h; int i, j … Software Development c++ | |
forgive me buddies if it is childish question, I cannot find good tutorial explaining it. So bear with me. My questions are, how does forward declaration differ from normal include which I'm used to? Also, where do we use it and what are limitation of the two? Lastly is there … Software Development c++ | |
Hello guys, I hope you are all well! I am creating a game in Visual Studio using picture box's, but I cannot for the life of me figure out how I can have a nice picture in the background, as when I do put one in there it is constantly … Software Development visual-studio | |
Hello, I was wondering if anyone could help me with something. I am not a programmer yet I am able to modify scripts to a certain extent. I recently downloaded a script to read an existing CSV file and output via an SSI call. What I would like to do … | |
I use visual basic 2008 I use Groupbox1 In the Groupbox1 in have two labels: label1 and label2. I have change the font of[COLOR="Red"] label1 [/COLOR]with properties to size [COLOR="red"]12[/COLOR] No i change the font size of [COLOR="red"]Groupbox1 [/COLOR]with properties to size [COLOR="Green"]8[/COLOR] Only [COLOR="Green"]label2[/COLOR] inherit font ([COLOR="green"]8[/COLOR]) format from … Software Development vb.net visual-basic ![]() | |
I have searched on the internet before, but cannot get a suitable tool. I found tools to profile jdbc performance, gc statistics, but no some obvious tool to measure the time spent in each statement. I would like found which statements are spending the most of the time of my … Software Development java | |
Hi all, I want to transform an xml file to another xml file based on the length of innertext in an element. Here is an example of the file to be transformed: [CODE] <?xml version="1.0" encoding="utf-8"?> <recipe xmnls=""> <recipeList> <recipeType description="Breakfast"> <recipeInfo> <name>Omelet</name> <summary>An English Breakfast</summary> <ingredients>Eggs,Butter</ingredients> <instructions>(1) You will … Software Development xml | |
[code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the … Software Development python | |
[B]hi, my problem is as such... I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n"). after this i call a system command 'snmpwalk' to walk the MIBs of the IP above. I again need to establish the … | |
Hi guys, I can't figure it out where I am doing wrong. I keep getting FileNotFoundException saying that "Could not find file 'C:\delete\band3_tao.img'." but this file was writen to a file in previous step. I have attached the code I have written. I need your help. Thanks. Here is the … Software Development vb.net |
The End.