132,726 Archived Topics
Remove Filter ![]() | |
Hi I am new to C++ and I'm trying to create a console program that quizzes you using some of my old quizzes. My only problem is when I get to questions where there are spaces between the word it messes up. Here's an example: string answer1 = "anything\0that\0has\0mass\0and\0occupies\0space"; string … Software Development c++ | |
I'm trying to set the selected value from a combo box that is populated from my database, i cant seem to find a way to do that. I'm using this to populate my combo box: [I]Private Sub PopulateCountry() Dim country As New Client Dim contryList As OdbcDataReader = country.mpopulateCountry() Dim … | |
Hello I have a data which was captured through serial port I need help on selecting specific datas from the data´s captured. The data format is as follows ...‚.20D20¨G...‚B02DA,20,2,L,50.06,11.96,3.30,2.45,2.65,865,255,93,1205.008,928,P.ñ...‚ .10D30«D...‚?01DA,30,2,S,P,L,P,S,P,M,P,P,R,N,N,D,E,S,80010.,99.999,0.08333¾Ÿ...‚ .20D30¥I...‚?02DA,30,2,L,P,L,P,N,P,M,P,P,R,N,N,D,E,S,1457.6,99.994,0.08333.W...‚.10D31©E...‚ 101DA,31,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,M,0,1¥:...‚.20D31£J...‚102DA,31,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,M,0,1vh...‚ .10D32§F...‚P01DA,32,0,1.00,15,85,31,27,250,27.0,56,0,3,2,E,N,P,O,P,O,O,P,P,O,P,O,P,P,P,P,F1Ù...‚.20D32¡K...‚ T02DA,32,54,1.53,15,19,29,38,250,27.0,47,58,75,52,E,N,P,P,P,P,P,P,P,P,P,P,P,P,P,P,F[²...‚ .10D17£G...‚.01DA,17,50.00,0,60,-85,0êM...‚ I only need the data's of a kind B02DA,20,2,L,50.06,11.96,3.30,2.45,2.65,865,255,93,1205.008,928,P.ñ and B01DA,20,2,L,50.06,11.96,3.30,2.45,2.65,865,255,93,1205.008,928,P.ñ which are by the … Software Development visual-basic | |
Hi everybody, while i build my ant scripts in eclipse, and at the stage of [INDENT][/INDENT][B][exec] Invoking RMIC. [/B]i get an error complaining of some classes not being present. but where as they do exist in my project. Does anybody have any clue of why this happens Thanks in advance. Software Development java | |
Hello, I wrote an add method but for some reason it does not add more than 3 values. Could anyone tell me why? here is my method: [ICODE] public void addValue(int value) { IntNode cur = head; IntNode prev = cur; IntNode t = new IntNode(value); if (value <= cur.data){ … Software Development java linked-list | |
Hi, I am intending to write a simple OCR engine. How should I go about doing it? Are there any source codes available for me to use and alter it according to my need? I am a newbie to this OCR thingy. Pls help. Please reply at e-mail: <snipped email> Software Development | |
Hello., I'm very new in C++, and I have a task to solve. I have a function: [CODE] void cio_display(const char *str, int row, int col, int len){ int i; cio_move(row, col); if(len<=0) { cio_putstr(str); } else{ for(i=0;i<len && str[i];i++) cio_putch(str[i]); for(;i<len;i++) cio_putch(' '); } [/CODE] here iss what i … Software Development c++ | |
Hi im trying to get a sort function working in a program im writing, basically ive got an array of structures of [code=c] struct person { char name[20]; char address[20]; char address2[20]; char tphneno[12]; char email[30]; }; [/code] and i want a function to sort them alphabetically by name in … Software Development c | |
Hi, I'm using a JTextArea in a JApplet, and having difficulty trying to align the JTextArea on the x, y axis... I've tries setBounds, setAlignmentX & setLocation... Neither seem to work. Plz help! This is what I have: [ICODE] public class Testing () { JTextArea TxtArea; Container Panel; LayoutManager Layout; … Software Development java | |
Ok what i'm trying to do in this program is first create an empty binary file of size 31 records. Records includes studid & gpa. and then I insert valid record into the binary file with h(k) = key% 29..and then read this binary file sequentially and write the records … Software Development c++ file-system ios | |
I've tried a couple of ways of getting the source of a page, but it doesn't return the whole thing. I'm trying to get it to return the the whole source like it does if you view it in a web browser. Mine just returns parts of it and leaves … Software Development web-browser | |
I'm trying to make this game (pseudo code below) And I have no way to go about doing it. The game will have 30 trivia questions, and the player will have 3 lives When they get the answer correct, they will move on, and if they got all questions correct … Software Development python | |
Hey guys, Below code isn't working as I expect it to do. I expect it to read all params when 6 are given, buuuuuuuuuuuut it only reads one, the rest remains zero. It does enter the case, but the stringstream buf seems empty. What am I doing wrong? [code=cpp] #include … | |
Hey guys, I'm writing a small client/server application. I've got it almost completely working, other than the fact that once the user disconeccts from the server using TcpClient.close he can not reconnect without restarting the app because clientSocket is disposed. Declaration: [CODE] Dim clientSocket As New System.Net.Sockets.TcpClient() [/CODE] Connect: [CODE] … Software Development client-server vb.net | |
Is it possible to print anything on screen in C or C++ without using main().If yes please explain how? Software Development c++ | |
I can send correctly, but I can't read. Can you give me any code, ideas, and links. Thanks Software Development c | |
i need some help writing a GUI for the program i'm making. it is a simple text-based number-guessing game and i would like to have the prompts displayed in a nice window. i would also like to have the "number_guesses" and the "guess_list" variables displayed off to the right of … | |
how do i output solution in array form into a file where it can then be copied. Software Development c++ | |
Hi to all I have ADT of the AVL TREE and I need to add some the function to create tree to family. I have logic error in my code.. my code work to find relationship between two nodes (e.g: a parent of b,a and b are Sibling and so … Software Development c++ | |
do you guys know a complete setup project for windows mobile application that i can run and examine on my local computer and pocket pc? thanks. Software Development | |
Hey all, I ran a code today which digested an input file which was 304 MB, consisting of about 10 million lines with six columns a piece. I ran the code and got an indexing error. In troubleshooting, I copied only the first 1,000,000 lines into a new data file, … Software Development python | |
hi guys, i try to create setup application for cab file, when i run app manager from the code, i cant see my cab file on add/remove program list. do you have any idea why is this happening? thanks Software Development | |
I am using a program called MUST. It is for the electrical transmission industry. It uses excel to do its computations. It runs macros based on the buttons that were pushed on a form. The outputs are excel based worksheets. It has a feature to allow you to record the … Software Development python | |
Suns Java style rules specify that accessors should follow the getX/setX pattern, and most Java API mathods follow this... except for some very common exceptions such as: String length() enum name() [NB new to 1.5, not a legacy!] ArrayList size() etc It seems that there is another pattern operating here: … Software Development api java operating-system | |
I have been testing a C++ based SDK and now i have a few questions for you that i hope you will answer . 1. When passing objects between each other is it preffered to use references if not what then? 2. Is it good or bad to make a … | |
Hello, I am trying to label the axes of an array of subplots. The units of each plot are the same so I would like to just label each axis once. The array is of in determinate size. For odd numbered rows/cols I just use ylabel/xlabel on the middle row … Software Development python | |
Hello, I am having problems using an ObjectInputStream to read from a file. My program uses a File to check whether or not a specific file exists. If it exists my program will attempt to create a FileInputStream for the file and associate an ObjectInputStream with it. It should first … Software Development java | |
So I am trying to add a graphical element to my game. And it draws a circle for white or black pegs. However, the list that contains "Black" and "White" isn't acting quite like I want. The list prints like this: B l a c k B l a c … Software Development python | |
HI I am working on a java application using netbeans, I face a porblem. I want to display the output of my program, on jtextarea (i have designed a jtextarea,) just I want to display the output namely the content of an array. plz can anyone help? Software Development java java-netbeans | |
Hi I have the following function which read ASCII characters(separated by space) from a file and I want to print it out to the screen contents of the data.txt file are like this 70 97 104 97 100 [code=c++] void decode() { string str; string instr; ifstream inFile; cout<<endl; inFile.open("data.txt"); … Software Development c++ | |
The question: Get an integer value from the user to draw a cheassboard on the screen of that specified size. The black squares must be * and with any other chessboard there must always be a *(black square) in the bottom left corner. PLEASE NOTE: I'm very new to c++ … Software Development c++ | |
Firstly I don't understand english very well, so there may be a lot of mistakes. I use python-2.6.2, wxPython2.8-win32-unicode-2.8.10.1-py26 and numpy-1.3.0-win32-superpack-python2.6 in this example. So I would like to hnow, how to get variable elements form one class into another. I use wxPython, and i don't hnow how get value … Software Development python | |
Hello all, I am trying to read in the text file but it seems my code cannot read the text file which has tab space eg Mine only reads Sydney NewYork 1300 but It should read Sydney New York 1300 ( and the space between city name or number can … Software Development c++ | |
I am using following method to convert string to calendar date '2007-05-10T08:10:21-8:00' . The code is as under public Calendar dateStringCalendar(String s){ Calendar cal=Calendar.getInstance(); try{ SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); Date d1=df.parse(s); cal.setTime(d1); return cal; }catch(Exception e){ } return cal; } when I get response back to my jsp page it shows … | |
Here is some code that I am trying to use. Why wouldn't this work the way I am assuming it should? here is a sample of vector<string> mine: *** *2* *1* so mine[1][1] = 2. [CODE=C++] // In a function that has passed in vector<string> &mine int dist[2000][100]; cout << … Software Development c++ | |
Hi, I am reasonably new to C# and Visual Studio, so any help with this problem will be much appreciated! At the moment I have a C# Windows Application which runs various vb scripts which are included within the project. This works without any problems, however, I would like the … Software Development visual-studio | |
greatings to all of you!! I start learning c++ and i getting a problem with the [B]ENTER[/B] key... i want to ignore it and i just know how. [code] do{ printf("\n"); printf(" A : Quadrado\n "); printf("B : Rectangulo \n"); printf(" C : Circulo\n"); printf(" D : Triangulo\n"); printf(" E … Software Development c++ | |
Hello All. [COLOR="Red"]I created a login form and an application form in a single system. For that navigation, i imported application form's file name in login form. Then, we can easily execute it. If we enter "user id" and "password" in login form, then it navigates to application form.[/COLOR] This … Software Development python | |
Hello all, I was building a program which needs to output in alphabetical order and i got stuck. (Program reads in text file and then do dijkstra's shortest path) My output is fine except that it is not in alphabetical order.... can anyone help me with this??? here is my … Software Development c++ | |
Hi all , My question is that I want to know if possible I use C language dealing with windows such as I create a folder ,file, and show for example a pop up message says hi when windows starts to operate . I mean can I do these kind … Software Development c windows-virus | |
Hello, I'm currently creating an application in VB.Net. I have used the IsNumeric function for registering the name but the function only work if I enter only Numeric. If I enter Char + Numeric it doesn't provide any error message. For example if I key in James007, the data are … Software Development vb.net | |
im developing an http proxy in C#. my problem is reproducable outside of this language so if you can tell me of a better forum then that would be good, as i am stumped. to cut a long story short: sometimes, the response i get back from the server is … Software Development apache windows-server | |
well i´m taking some classes on C++, but i have no idea what namespacing std means or why i use getch(); an to return 0 how do i know which libary is which like the iostream or conio and how do you make your program finish and restart agian i … Software Development c++ | |
does anyone know how to make a c++ program that types what you tell it to in to a text field on a website. for example: cout << "Hello"; how do you get this to print in to a text field on a website? Software Development c c# c++ web-browser | |
Hi, I am new here and have been playing around c# for awhile. I am wondering if there is a way to change the control so that they resize to the panel or windows accoundingly... You can see the image here: [URL="http://img29.imageshack.us/img29/1317/screenshotg.jpg"]Screenshot[/URL] Software Development | |
Iam using an AWT component. Did a little research but cannot find anyway I can make my player return a JComponent..tried this casting but Iam getting an exception at the line. [code=java]((com = (JComponent)p.getVisualComponent()) != null)[/code] I also got to see something about mixing SWING with AWT so I decided … Software Development java java-swing webcam | |
[CODE]void slova(string datoteka){ ifstream coban; coban.open(datoteka.c_str()); string polje[200]; string linija; int brojac=0; while(!coban.eof()){ getline(coban,linija); polje[brojac]=linija; brojac++; } string rec=polje[1]; int brojac2=0; for(int i=0;i<rec.length();i++){brojac2++;} cout<<brojac2<<endl; if(rec[0]==rec[brojac2]){cout<<"same letters"<<endl;} else{cout<<"letters are not same"<<endl;} }[/CODE] This is my code, it should test if 1st and last letter in string are same, but i can't … Software Development c++ | |
I have a parent form. I am calling child form from parent form. Can i inherit child from parent at runtime? Software Development vb.net | |
I am trying to create a logfile for my project,whenever an err occurs,i want to store that info in my logfile,with a prefix of [COLOR="Red"]err[/COLOR] while reading the file,i want to check for this err prefix,and change that message color to red,only the err msg should come in red while … Software Development |
The End.