199,113 Archived Topics
Remove Filter ![]() | |
hi, as far as I know if i wanna read external text document, i can either do: [code] BufferedReader reader = new BufferedReader(new FileReader("xxx.txt")); or Scanner reader = new Scanner(new File("xxx.txt")); [/code] my first question is, what is the difference between BufferedReader and Scanner? And what is the difference between … | |
![]() | Hi guys. This is a cry for help from a desperate student!!! I don't expect you to do this for me I just need my mistake to be pointed out to me. I'm creating a c# application which acts as a learning program to be used by teachers and learners. … |
Hi again What is the name of the component in programs where there is: a 2 character text field and on the side there are up and down arrows to increase or decrease the value in the text field. There is usually one in the "Print" dialog in MSWord, with … | |
hello, I'm trying to write a simple program that proves mathematical theorems (predicate calculus). What I need to do is to have a small database that holds all of the propositions ('abc'; 'b'; 'cde'; etc.). What I'm having a problem with is creating a function that would act as a … | |
Hi I want to know how to compile c++ codes using the command prompt in windows. In linux I do [code]g++ filename.cpp -o filename[/code] and run it using [code]./filename[/code] but for windows when I try this procedure in compiling i got an error message [quote]'g++' is not recognized as an … | |
i want to know what are the lower triangle and upper triangle mean in a matrix. For eg: if matrix is [ 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 ] then what will the lower triangle and upper triangle in this … | |
Hi, i have a problem with a vector. I declare a vector<char*> moves; in header. Code: [code] void LogView::init(){ int a = 0; while (LogFile.good()){ LogFile.getline(line, 6); moves.push_back(line); cout << "vector :"<< moves[a]<< endl; // here is OK a++; } moves.begin(); cout << "vektor :"<< moves[1]<< endl; // here is … | |
I am brand new at C++ and I have a programming assignment I have to do. I have to create a directed graph and perform a breadth-first traversal. I have to use an adjacency linked list implementation without using any existing libraries as Standard Template Library. Where do I begin? … | |
hi, i'm currently doin a booking system...i have a problem regarding with the booking date... Ok, lets say i'm booking a table on the 7th of october at 7.00pm which is 2 days from today...once i book the table it is booking from today...the timer runs from now until the … | |
Hell, This might be a big vague, but I hope that someone might be able to help me. I have a program that does virtual simulation of robotic arm using inverse kinematics. The program works fine but right now I'm trying to collect some data, generated inside the program, into … | |
hi all, i have connected 4 ip camera s with my pc.. i need to raise msg when the camera cable unplugged (abnormally) using winsock.. i tried using loop like for 0 to 3 winsock(i).close if winsock1(i).connect <> sckConnected then msgbox("no connection") end if i know as a beginner this … | |
hello everyone I am trying to convert with VB a wmv video to bmp images. Does anyone knows how to do it? If it is impossible with VB could you suggest me any other language or another program? thx! | |
Plz Help! We have installed Oracle 10g successfully but the problem is that after launching Oracle from Start--->All Programs------->Oracle-------->Database Control-DB Name a login Screen comes up. This login screen is coming up.However inserting user name and password and clicking on Login button ,the next screen does not appear. I have … | |
I don't think this qualifies as cheating on homework. I am making a Java applet that will input the name of a teacher at our school and output their schedule. When I say schedule, I mean the times they teach and what classes they teach, and where they teach them. … | |
Can anyone help me to do this !!! I want to download a file (for exaclty photo file) from a web page how i can do this through delphi????? | |
Hai all, In delphi, how to make the program only one exe only on executing. example : I have a project tools after execute it appears tools.exe how to make the people can not execute tools.exe in the second time?? Only one exe can run. | |
hey guyz... i'm new here... i just want to know how i could end my program after a certain amount of time has passed by... I'm doing a "text twist" program where after 2.30minutes and if the user still has not guessed the correct answer, the program will end... i'm … | |
I am getting a the warning "assignment from incompatible pointer type" when compiling my code, I have spent ages trying everything I can think of, but I am not very experienced at using C so it is probably something really simple that I just can't see. I have commented the … | |
Hi everyone and thanks for reading, Now that I've been getting my hands dirty with PHP a lot more, I've been starting to freelance and I'm wanting to make sure I have the right systematic approach to protecting data before I commit to any projects. Whenever we accept user input … | |
hi! to everyone i have to make a program in c++ about factorial but the main problem is that the working of factorial must me shown for eg. 4!=4*3*2*1 like this on the output screen i had done upto here.... [code=cplusplus] #include <stdio.h> #include <conio.h> int main() { long float … | |
Ive been creating a Auto Patch system in C# Where if people connect to the server they get the latest patches if they dont have it. but ive got a program when auto patching only auto patches latest patch can anyone help me with this problem its meant to get … | |
Hello everyone, I am working on a web using ASP.Net (VB) and Sybase as its back end. I am trying to display data from database to the textbox. Does anyone know, pls help. Here's my code and its not working. pls. pls help. thanks a lot Try conn.Open() cmd = … | |
Hi Im new to the whole thing of programming and would like to write a C++ program to copy files from one drive to another, any help and suggestions on where to start? Any help with source code or pointers will be greatly appreciated. The OS the program is for … | |
My instructions are to write a program that assigns a five-word phrase with a single space between words to a user-defined string variable. It then outputs each word of the phrase separately. It must use the phrase "This is a test phrase" in the output, but also function properly when … | |
Hey guys, well how would you go about making a GUI, i've seen examples with Tkinter. But how would you place the button exactly where you want them. Also would you set an event for a button or field for example if the button is clicked it connects to a … | |
I'm really hoping someone can help me on this, I may have overlooked some info somewhere doing numerous searches in the past week, but what I'm trying to do is quite simple. I have a handheld inventory device (circa early 90's but still in prolific use in the industry) that … | |
![]() | Hi I'm quite new to writing programs in C language. I've been working hard on a program and my output isn't coming out as it should. Problem is you're supposed to enter 7 numbers. The program should sort the numbers in 5 categories of ages. Then calculate the average. I … |
[CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As Int16, y As Int16 x = CInt(TextBox1.Text) y = CInt(TextBox2.Text) add(10, 20) End Sub Private Sub add(Of T)(ByVal x As T, ByVal y As T) Dim res As T res = x + y … | |
I would appreciate if anyone could help me with my program that calculates a hand of black jack. I know the way I created this program is probably not the most effective way but the only thing I seem to have problems with is getting the program to add 10 … | |
Ok, so from my last post, you might have figured that I'm making a coder/decoder package. Anyways, say I've got a string of letters that i want to decode, such as: AAAGGGCCC Which should produce: ACB Because a=aaa c=ggg and b=ccc Currently with my program, you have to input one … | |
I need help with finding a function T(n) that describes the upper bound for the worst case running time of this algorithm: [CODE] 1. maxS = 0 2. n = A.length 3. for j from 0 to n − 1 do 4. for i from 0 to j do 5. … | |
hello, all: I am trying to make it so I can show a banner according to a blog articles's category(ries). per example if a posting (or postings) appears under category 101, then show banner1, if it appears on category 102, show banner2, if category 103 show banner3 and so forth. … | |
i have written a vb.net coding for linkin my vb interface to my access database...its all the same....but some linking codes i wrote work,for other forms,but sum don work... this is 1...its a form to add staff in my system [code=vb] Imports System.Data Imports System.Data.OleDb Public Class Form1 Dim ds … | |
hello all... At my project , need for creating cards online..In detail , i have provided the users with some back grounds,images and text...then user make a card by selecting the backgrounds,images, resizing them,entering text into that final image... To do this , my completed work is : i made … | |
hi, Is it possible to read 2 or more files and getting data out of them simultaneously? can I know the perl format for that | |
Hello, I don't know if this is the right place to ask this, its sort've a big collective question on how to go about building a database program =p. Yes, it is a project for school, I've got about a month to do it, I'm quite new to VB and … | |
I'm trying to read in the chars for a file in order to compare two text files. The problem is I can't seem to load space characters into my vectors. Any suggestions for me? [CODE] vector<char> cyphVector; char c; //fill vector with cypher file chars while( cyphFile.good() ){ cyphFile >> … | |
Hello, I have a problem with my form validator. For some reason it will always return true when it should return false and display and error message (either about a blank username or password). Here is my javascript: [code=JavaScript] <script type='text/javascript'> function ValidateLogin(form) { var error=false; document.getElementById('userError').style.display = 'none'; document.getElementById('passError').style.display … | |
Okay, so I'm writing an application. In this application there is a drop down with the selections 10, 20, 30, and so on to 100. This drop down controls the amount of times a loop will occur. Basically, every time the application gets to a loop that is 10% of … | |
I am trying to built the program for handling polynomial... using linklist.... and so far i tried to implement in the Class to add the 2 polynomial using the operator overloading i got messed up with the some objects.... i have commented the parts please help..... [CODE] #include<iostream> using namespace … | |
[TEX]Note[/TEX]: I've been doing this only for practice and [TEX]NOT[/TEX] for practical reasons, as you can see the output isn't realy HangMan-like and any combination of the right letters will be accepted so please do NOT comment about the funcunallity of the code! if it [TEX]DOES[/TEX]seem nice to you then … | |
Hi could anyone tell me how to compile a three tear program in VC++. I am using g++ in school and so for practice at home I am using VC++ but I just can't get it to compile. thanks in advance. | |
Ok, this is probably really stupid, but I'm lost and want someone else to say what they think. My teacher gave us an assignment and said that everything was in the file she sent us. So, I opened it and filled in all the coding as far as the comments … | |
hello guyz,,do you know best sites to recommend on : tutorials about reading a file ("text file") and writing it in "java file?? in short reading or writing files in bufferedreader.. thank you ahead guyzz.. | |
I would appreciate if anyone could help me with my program that calculates a hand of black jack. I know the way I created this program is probably not the most effective way but the only thing I seem to have problems with is getting the program to add 10 … | |
[code]return tree == NULL ? -1 : tree->height;[/code] I am trying to understand AVL trees but the one really nice example I found has a couple of methods defined like this. It is really pretty but I cannot read it? Can someone explain it to me? Or even just write … | |
If a text box control is in focus the default functionality of Key.Up and Key.Down are to move the cursor right and left respectively within the text box. I am interested in overriding this functionality. In my application a text box is used for inputs which I would like to … | |
Hi, is it possible to find out the size of an array created on the free store? thanks |
The End.