199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for k2k

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 …

0
70
Member Avatar for Rraeyinde

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. …

Member Avatar for okutbay
0
219
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
111
Member Avatar for rob_xx17

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 …

Member Avatar for Salem
0
104
Member Avatar for sanchyvil

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 …

Member Avatar for sanchyvil
0
355
Member Avatar for sunveer

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 …

Member Avatar for ArkM
0
97
Member Avatar for luisvega

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 …

Member Avatar for luisvega
0
2K
Member Avatar for needhelp83

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? …

Member Avatar for needhelp83
0
144
Member Avatar for gopi17

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 …

Member Avatar for debasisdas
0
136
Member Avatar for rob_xx17

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 …

Member Avatar for rob_xx17
0
108
Member Avatar for narenthephoneix

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 …

Member Avatar for debasisdas
0
97
Member Avatar for Zeraskurinos

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!

Member Avatar for debasisdas
0
85
Member Avatar for RajeevSd

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 …

Member Avatar for debasisdas
0
86
Member Avatar for Cosmocrazy

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. …

Member Avatar for Ezzaral
0
100
Member Avatar for vanias

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?????

Member Avatar for LizR
0
175
Member Avatar for dodol

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.

Member Avatar for LizR
0
183
Member Avatar for jetdreamer

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 …

Member Avatar for unbeatable0
0
210
Member Avatar for Aus89

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 …

Member Avatar for Salem
0
2K
Member Avatar for antwan1986

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 …

Member Avatar for antwan1986
0
151
Member Avatar for anny**

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 …

Member Avatar for sidatra79
0
262
Member Avatar for tatainti55

How can i run my program for a specific amount of time? And what is threading? I'm really new to C++ so i'd like n00b-friendly answers.

Member Avatar for Freaky_Chris
0
74
Member Avatar for porko2004

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 …

Member Avatar for LizR
0
214
Member Avatar for dudegio

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 = …

Member Avatar for dudegio
0
353
Member Avatar for Gary_nel

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 …

Member Avatar for dougy83
0
135
Member Avatar for c230jif

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 …

Member Avatar for Freaky_Chris
0
111
Member Avatar for Clipper34

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 …

Member Avatar for Stefano Mtangoo
0
103
Member Avatar for frank754

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 …

Member Avatar for plumsauce
0
188
Member Avatar for mgirl

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 …

Member Avatar for grumpier
0
281
Member Avatar for uma625010

[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 …

Member Avatar for uma625010
0
130
Member Avatar for rodeostar04

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 …

Member Avatar for Salem
0
128
Member Avatar for danizzil14

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 …

Member Avatar for Gribouillis
0
212
Member Avatar for pocku

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. …

Member Avatar for sarehu
0
259
Member Avatar for websurfer

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. …

Member Avatar for websurfer
0
100
Member Avatar for mugun

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 …

Member Avatar for mugun
0
136
Member Avatar for Shanti C

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 …

Member Avatar for ~s.o.s~
0
113
Member Avatar for perltoday

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

Member Avatar for KevinADC
0
120
Member Avatar for Brodin

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 …

Member Avatar for voxviennasierra
0
170
Member Avatar for DeadJustice

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 >> …

Member Avatar for VernonDozier
0
121
Member Avatar for FlashCreations

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 …

Member Avatar for R0bb0b
0
111
Member Avatar for MVied

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 …

Member Avatar for MVied
0
181
Member Avatar for rhoit

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 …

Member Avatar for sarehu
0
144
Member Avatar for A no-name-moose

[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 …

Member Avatar for A no-name-moose
0
182
Member Avatar for STUDENT#101

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.

Member Avatar for AceofSpades19
0
150
Member Avatar for PPP1
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
88
Member Avatar for l_03

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..

Member Avatar for peter_budo
0
189
Member Avatar for rodeostar04

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 …

0
167
Member Avatar for sinrtb

[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 …

Member Avatar for Narue
0
155
Member Avatar for ninwa

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 …

Member Avatar for LizR
0
94
Member Avatar for freelancelote

Hi, is it possible to find out the size of an array created on the free store? thanks

Member Avatar for freelancelote
0
126

The End.