132,726 Archived Topics
Remove Filter ![]() | |
hey guys need some help in string manipulation, example i have a string LFname = "Hello, world" and textbo1,textbo2. now i want to display "Hello" in textbox1 and display "world" in textbox2. by the way guys thanks for your patience :) Software Development | |
I'm a beginner to C# and going to develop a application using C# and SQL server 2005. one of my tables has a field named with DATE. data type is also 'datetime'. i can insert data to the database using my application properly. now i want to filter my data, … | |
Seriously need help here how can i wrte a program that read character only? i mean alphabert like people key in "i +am+ 12567 a",;. boy," and the program only read iamaboy is there another way other than lowercase the string and then compare a-z? Software Development java | |
I successfully compile the code through cmd, however when i run it, when i enter my password with anything(which fulfill the first condition (6-20))it will show error. The question is to write a program that let user to create a password which is valid (more than 6 letters, must have … Software Development java | |
Hello all, Actually i had a program which i was unable to solve i hope youll help me out and post your solutions. The program is: A Bowler is called the Best, if the average wickets taken by him during the year is 5 and above. The number of matches … | |
I have a serious problem here! i understand that the switch is wrong(the Str class should be fine). I wonder what datatype should it be? and if "char" how i am going to key in int value and how to use scanner on it ? The display menu is fix. … Software Development java | |
Hello Everyone, I am making a GUI using Tkinter... I have completed that the GUI now i want to put the validation on those Entry Widget,,,,,... i know, i have to use the re module...... but i really cannot understand that....can someone please give me the simple example...like if i … | |
Hi All, I have a JAR file that contains a .dll file. But during an ant build a ZIP Error is thrown [CODE]error reading D:\COE\Libraries\client\WSQUtil-1.0.jar; error in opening zip file[/CODE] Is there a way to overcome this ? The jar looks fine(opens in winzip) and eclipse build path also references … Software Development file-system java | |
Hay everyone I want to learn(I need to learn java) java very fast. I have some knowledge of java but not the fundamentals like in html css php or sql and mysql. I know that the structure of a program in java starts with the imports than if you have … | |
I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions??? Software Development java | |
Is it worth going out and using a program like JCreator or something like that compared to good-old notepad? They all should compile the same code, no? Ian Software Development java | |
[CODE]#include<iostream> #include<fstream> #include<string> #include<vector> #include<algorithm> using std::cin; using std::cout; using std::string; // clothing codes struct codes { char code; const char* explanation_1; float total_sales; }; codes CODES[]={'A',"BABY WEAR",0.0F, 'B',"CHILDREN WEAR",0.0F, 'C',"LADIES WEAR",0.0F, 'D',"MENSWEAR",0.0F, 0,NULL,0.0F }; struct RECORD { char category; int item_number; float price; }; const string filename="jualan.dat"; int menu(); … | |
my codes occur some problem inside.whn i answered 'N' to the last question(DO YOU WISH TO CONTINUE?(Y/N)), the program will repeat run again, but i cnt enter student name!anyone can help me solve the problem>? [CODE] import java.util.Scanner; public class homewok{ public static void main(String args[]){ Scanner xx = new … Software Development java | |
I want to start learning OpenGL. Codeblocks decided to break, so I downloaded Dev-C++ instead. I've tried loads of different websites to try and figure out how to install it, and I get some type of error every time. How should I install it with dev-c++? | |
Hi guys, I've been struggling for days to do this. I've got 2 form. The first form (Form1) is to assign a variable (Result) a value. Another form (DisplayResult) is to display out the value. Actually, my purpose is to learn how i can use global variables to share information … Software Development c++ visual-studio | |
Before looking at the code, here's an explanation: NIDAQmx is a hardware-in-the-loop integration software from National Instruments. They give this sample code to create any voltage out of the card. The variable "float64 data[1]" is a double precision floating point that defines the actual voltage being emitted from the card; … Software Development c | |
The following code worked for me but I wanted to re-do it to learn how to make a Object Array. The first set of code is the working code, the 2nd is my attempt at it. Thanks for checking this out: [CODE]public void AddPrices() { string[] cb = new string[11]; … Software Development | |
im working on a tron game with pygame and i cant figure out how to make my tail that the player's car makes disappear after somany pixels. i want the tail to start shortening itself after like 500 pixels. if you can, can you post the full code edited (im … | |
Hello experts, I'm currently trying to make program that sends commands to my home security system. I have it connected to my computer trough the COM port, this feature allow me to control my system by sending hex ASCII codes. I hope that someone could help me make a function … Software Development | |
Hello.. I am creating Contact Book Application.. and I am now having a problem while writing this information to an XML File... I get "[COLOR="Red"]Root Element is Missing[/COLOR]" that crashes the application while using XmlDocument.Load to load a Stream Simply it should save all the changes when closing the form... … Software Development file-stream xml | |
[B]I was trying to create an application implementing the Douglas Peucker algorithm in VB.NET. I already finished coding the program and tried to compile it but when I try to draw on the form, it is not working. My source code is below, I just want to ask if there … | |
<< This is my python code >> << (Step 1) - I am registering the class of this python file for this PythonUtil class by executing this code in the pythonwin.exe interpreter >> class PythonUtil: _public_methods_ = ['funct’] _reg_progid_ = "PythonUtil.Utilities" _reg_clsid_ = "{73B6791B-C161-4F26-9402-D4AE4BC602AB}" def funct(self, val, item=None): print “hi” … Software Development python | |
I am using Mac OS X with the built in configuration of Apache. I am taking a web dev class where we're writing perl scripts ... so far I've been able to get my CGI scripts to run via mod_perl. Now, I'm trying to install CGI::Session via CPAN and it's … | |
I want to first say THANK YOU to all of you programmers for your help. You truly live steady to the core of IT and are an inspiration to us newbies! I have a simple utility that starts and stops a timer on a VB4 form. I record the time … Software Development visual-basic | |
Hi , is this correct query for access database.. [CODE] string findrecord = "SELECT s.test_no, COUNT(s.test_no) AS totalQ,(SELECT COUNT(s.que_id) AS CorrectS FROM Testmark AS t INNER JOIN StartTest AS s ON s.test_no = t.test_no AND s.que_id = t.que_id AND t.ans = s.ans and t.test_no = '" + GlobalMember.TestNumber + "') … Software Development | |
Hi Guys my name is tejas m having the same problem i am trying to compile a billing project but it wont simply work gives Unhandled exception in SPBS.EXE(Program Name) (CRAXDRT.DLL) Access Violation 0xc some zeros and 5 i am posting the complete code of frmreports can anyone help me … Software Development visual-basic | |
I've been fiddling with some boost spirit stuff, and my code seems to start infinitely looping somewhere in the standard library stuff. Any ideas what's wrong? The qi::phrase_parse works very well, but the karma gets me. [code] #include <iostream> #include <string> #include <vector> #include <algorithm> //#include <boost/spirit.hpp> #include <boost/spirit/include/qi.hpp> #include … | |
Hi guys, again, coming to this forum for asking some confirmation of my knowledge confusion. firstly, let's take a look on the code:- [CODE] #include <iostream> using std::cout; using std::endl; int main() { // main process const int value_1 = 1000; const int *pointer_1 = &value_1; const int **pointer_2 = … Software Development c++ | |
Hi i have been asked to create a sample app which pulls data from a txt file. Then outputs it in another txt document depending on certain arguments. Write a console application called 'program.exe' that takes four arguments: 1. Input File 2. Output File 3. Log File 4. Product Codes … | |
Hi, I don't know anything about generics interface in java but I would like to make threads with name qorker (qorker<Someqork> qorker = new Someqorkqorker<Someqork>()) which has three states INIT, WORKING and END. And I want this thread to call a web service like [URL="http://www.w3schools.com/webservices/tempconvert.asmx"]Web Service/tempconvert.asmx[/URL] I don't know where … Software Development java | |
Hi, i have this code: s = "hi john' re.serach(r'j\w+h', s).group() and up to here there is no problem but i want to put the letter h in a str variable l = "h" re.search(r'j\w+'l, s).group() but when i do this i receive an error?? Software Development python | |
hi i want to write a text in any line inside a rich text box how can i do that ?am now able to append to existing one or insert to the beginning of the rich text box but i want to write to any line inside the text box. Software Development | |
I am trying to use a Weka method, crossValidateModel, which is posted in the last. It looks like that the fifth parameter is referred to as varargs parameter. I tried the example usage given in Weka page, such as [CODE]eval.crossValidateModel(cls, data, folds, rand);[/CODE] It works just fine on one system,(eclipse+Ubuntu); … | |
Hi Y'all, I have a RTB which I import with a set of 7 or 9 didit numbers, 7 for Staff and 9 for Students. e.g. Staff numbers 0628189 0628191 0629991 0629850 0804930 and depending on what is selected in a list box ('Student' or 'Staff') will generate a string … Software Development vb.net visual-basic | |
Hi! I'm writing a unit test where arbitrary objects have to be created without knowing anything about the objects (with some exceptions). I use reflection to create objects and set their fields to random values etc... I'm almost there but I've come to an issue I can't find a solution … Software Development java | |
[B]Hello everyone!![/B] I am new to Linux forum and have a question related to typecasting in C related to offset of structures.I have a piece of code and having a problem with this: [CODE]void fun(struct c *p) { int offset; struct b *address; offset=(char *)&((struct c *)(&((struct a*)0)->y)->j)-(char *)((struct a … | |
hi frnds , i have a combobox containing countries name and their codes like INDIA:CNT001 then i have a textbox that store the code of country i.e CNT001(fetching from database) Now i want to match that code with the combobox code so that the combobox is set to that item … | |
Goodmorning everybody, here i am wanting to make a Login System that uses Usercontrol. I have a label left and right i have a panel. in this panel i want to add usercontrol for all users that has one account in the application. this are some examples (Windos XP Login) … Software Development vb.net | |
Good Day everybody, I am wanting to make a program in VB.NET that has many files.doc in a specific folder. This program has on top a textbox(txtSearch) with a button(btnSearch) under that this has two listbox(lstOption, lstResult), that are floating a left, one richtextbox(rtbDoc) that is floating a right. I … | |
Hello Members, Can anyone please help me out with the concept of INSERTION AND DELETION OF ELEMENTS IN ARRAY.. I have understood the logic behind this, but i am facing problem with the coding thing.. i am not able to get it properly.. can anyone here pls help me out.... Software Development c | |
We're having a problem on computing the grade average [CODE]Dim hwTotal, swTotal, quizzes, project, midTerm, totalAverage, Finals, Attendance As Double[/CODE] [CODE]hwTotal = Val(hw1.Text) + Val(hw2.Text) + Val(hw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 * 100 * 0.1 swTotal = Val(sw1.Text) + Val(sw2.Text) + Val(sw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 … Software Development vb.net | |
I don't understand what is wrong with this. This is the line with the error: `}while(playAgian());` Thank you :) #include <iostream> #include <string> class Ice { public: void hit(int playerLoco, int iceStrenth, int loco1, int loco2, int loco3); int strenth; class Loco { public: int location; bool hit; }; }; … Software Development c++ | |
I'm using windows 7, hoping to use Tkinter to open an internet window when a button is clicked that goes to a specific page in google chrome. Is this possible? [CODE]class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text="Rejuvenation", command=self.info) self.button.pack() def info(self): pass #Will go … | |
How would I find the amount of characters in a string and then use that to print a certain amount of some character that you choose. For example: [CODE=Python] a = 'string' # this holds 6 characters print '*' * # amount of characters in string [/CODE] Software Development python | |
I'm trying to save and load objects from my form. Like say I have a listbox and a checked list box, I want to save the contents of these boxes to a file, NOT TEXT but through bytes (the right way). How do I do it? I need help. Any … Software Development | |
Hi can we create an exe file in vb.net and used it anywhere we want without using any .net framework. deepti | |
Classes Like Threads,Streams,Runtime and some of awt not serializable. Please tell me the Reason. This is asked in my interview. I said, classes which have native code will not be serializable. Is it correct? Please give detail note. Software Development java | |
hi i need to help me to understand this code how its work and depend on what it determine how many time yopu should enter values [CODE]#include <stdio.h> #define SIZE 100 #define SENTINEL -99999 #define TRUE 1 #define FALSE 0 #define READ 10 #define WRITE 11 #define LOAD 20 #define … Software Development c |
The End.