64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Stefano Mtangoo

Hello guys, I'm trying to make a program that will : at startup it will give you login Dialog which will connect to database. Then it will bring Main window displaying tables. Then I have Another dialog to do some editing of Tables. Here are my two Questions: Is it …

Member Avatar for Stefano Mtangoo
0
182
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 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 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 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 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 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 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 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
Member Avatar for atularora66

I'm new to java and we have to create a program telling the user how much of their income will be taxed based on rates given out by the government of Canada. I am getting 2 errors, one saying that "variable federal might not have been initialized" and the other …

Member Avatar for atularora66
0
105
Member Avatar for jobojo

Good evening everyone. I am new here and also new to JavaScript. I have a small assignment that I think I have just about done, but the False part of my conditional expression is not calculating properly. My program keeps 'spitting out' the same calculation of rate times hours if …

Member Avatar for jobojo
0
138
Member Avatar for lomo

Write a complete function: DNA represented as a list of the alphabet letters A, C, G and T. How many times the sequence ACG occurs in a specific DNA string. (An example: If the list is CACGTTGCGTACGAA, then the number of occurrences of ACG will be 2.) Write function nrACGOccur. …

Member Avatar for lomo
0
253
Member Avatar for ChroNoS

I am trying to embed an image into an rtf file using VB. Well, I tried using the clipboard method but it doesn't wield any good results, I have to embed it and align it and copy it so that the images form a border. Ideas anyone?

Member Avatar for ChroNoS
0
87
Member Avatar for Mackjan

What dose it means at Dice.rollDice(Dice.java:30) java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:250) at Dice.rollDice(Dice.java:30) my code is : [code=jva] import java.util.Random; public class Dice { // instance variables. private Random mRandom; private int mSides; /** * Constructor for objects of class Dice */ public Dice(int sides) { sides = …

Member Avatar for Mackjan
0
103
Member Avatar for Linking_90

Hi, I was hoping that someone could give me some direction with how to solve this probem. The only info in this problem is word has N digits[only digits] and the numbers (output) should be in increasing order example 1469 or 468 The output should give all combinations in the …

Member Avatar for Linking_90
0
113
Member Avatar for MylesDBaker

Hello everyone, I am having a really difficult time getting this program off of the ground. I need to use a while loop to read data from a file and then read tonnage numbers corresponding to names read in from that file. The assignment looks something like this: [I]After watching …

Member Avatar for MylesDBaker
0
179
Member Avatar for blaze5488

What is suppose to happen is that I am suppose to take a string like "Micheal Jordan" and reverse it and return it with a comma after the last name. like "Jordan, Micheal" but that is not what i am getting can you help please. I have also included the …

Member Avatar for blaze5488
0
98
Member Avatar for peter_budo

I created menu for mobile phone, where after you make move screen should be repainted and after that a sound should be played. However at present stage sound is played first and just after that Canvas view is repainted. Bellow is skeleton of the class [code=Java] public class ContactMenu extends …

Member Avatar for peter_budo
1
148
Member Avatar for Jennifer84

I know how to declare a 1D vector like below but how do you declare a 2D vector ? [code] List<String^>^ Vec1 = gcnew List<String^>(); [/code]

Member Avatar for Jennifer84
0
169
Member Avatar for mousey182

Hey Guys, Thanks for taking the time to read this, I have the following, rather complicated queries that I am trying to join, and I've spent the past two days attempting to do so, but had no luck so far so any help would be very much appreciated. I have …

0
90
Member Avatar for cosmicfool

Hello, I've been given the task of transferring a website from one server to another. Unfortunately the website was written in asp and is linked to a MS SQL database and I haven't had much experience with either. It was using a MS SQL 2000 database but the new host …

Member Avatar for cosmicfool
0
148
Member Avatar for JackieW

I'm fairly new to ASP, and need some help figuring out this error. The 'ThingsNeeded.asp' page holds 4 buttons and passes the required 'ID' value, keeping the user to just update their record. I have two pages done, but keep getting [icode]Incorrect syntax near the keyword 'WHERE'. /PPmanual/AFLocations.asp, line 23 …

Member Avatar for JackieW
0
273
Member Avatar for jesie0405

hi, we have this assignment in our computer subject in school. we need to create a c program that converts decimals to base(2-9) and vice versa. i know how the coversion works but i cant perfect my program. here's my program... i know the output for the 1st case is …

Member Avatar for jesie0405
0
80
Member Avatar for murderotica

Hello there, I just would like to ask what are the basic needs in order for me to develop a mail library using C#. I've been googling around for good tutorials in developing mail libraries but haven't found any decent one. Thanks!

Member Avatar for murderotica
0
134
Member Avatar for shijunair

Hi everyone, I want to retrieve data from database in jsp page based on the particular m_emp_no .I am finding it very difficult so please can you all help me out with the problem. Here is the structure of my database and i am using ms.access [ICODE]m_emp_no m_leavetype m_bal 1004 …

Member Avatar for peter_budo
0
1K
Member Avatar for PoovenM

Hi guys, I'm not really sure how to ask this or what to even search for. I want to write a Java program that can feed data into another program. If the other program had command line parameters then I'd know what to do, but suppose the program I want …

Member Avatar for PoovenM
0
127
Member Avatar for happy8899

Can anyone help me by telling me where to find twofish source code other than from scheinier website?? I just want to find a sample source code of encrytion and decrytion using twofish algorithm. Thx a lot for the help..

Member Avatar for Salem
0
609
Member Avatar for RayvenHawk

Ok I'm doing my final project for my Data Structures class and have a quick question. This hasn't come up in any of my programming classes yet (which now that I think about it, is kind of odd but oh well). What I'm having to do is write an interactive …

Member Avatar for RayvenHawk
0
205
Member Avatar for laghaterohan

hello, i am here again with my strange question.. I have an image (a logo ), however i need to insert this image in the title bar of the project... i MEAN to say where the form name appears i want the image there instead of ne where on the …

Member Avatar for Teme64
0
772
Member Avatar for JackDurden

How do I get the data from file into the Insert function? Or more general how do you get data from a file and put it into a linked list? [CODE]#include <iostream> #include <fstream> using namespace std; class List { public: void Insert(); void Print(); }; struct node { int …

0
83
Member Avatar for MrDiaz

Hi, I'm wondering how I can accomplish this. Suppose I have the following array [CODE]String[] randomText = {"hi", "hello", "hey there"}[/CODE]; If I want to print the array I only know how to do so line by line. [CODE]for (int num = 0; num < randomText.length; num++){ System.out.println(randomText[num]); }[/CODE] Can …

Member Avatar for MrDiaz
0
191
Member Avatar for defience

Hi, I found this sudoku solver online and it works good but I was wondering how I could get the answer that's in matrix form, to also print out in a single comma-delimited line, instead of 9 rows of 9? [code] from copy import deepcopy class DeadEnd(Exception): pass class Matrix: …

Member Avatar for defience
0
98
Member Avatar for KDizzle

i need help programming pascal's triangle in C. i looked at the old threads, and none of them really helped. its a simple program, so no getch() or anything special. i started to create an array and give each element values. when i tried to run it, my output it …

Member Avatar for josh2
0
148
Member Avatar for TheNational22

I have a software that use command line arguments to create files. You go to the directory, type posidbfw /alt 1 1, it creates the files. I want to call this from one line. I was using subprocess.Popen, but it doesn't see the arguements, any help?

Member Avatar for sneekula
0
157
Member Avatar for JackDurden

Im trying to find out if something is in this linked list function and if it is to return true and if not return false. How do you find out if ThingType thing is in the list? [CODE]bool Thelist::Search(ThingType thing) const { Node* current; current=listPtr; while(current->thing != listPtr->thing) { } …

Member Avatar for Narue
0
75
Member Avatar for TheNational22

Trying to create a zip file with yesterdays date. I think I got everything, but I am getting module has no object attrib error. Any ideas? [code] import os import zipfile import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) file = zipfile.Zipfile("CT" + yesterday.strftime('%m%d%y') +".zip", "w") files = …

Member Avatar for sneekula
0
129
Member Avatar for sonya795

Hello everyone, I need some assistance in finding an error in my Delphi code. (I am new to the Delphi programming). I am using a Delphi application to build an excel spreadsheet. When a part_number is entered for the first time(assuming it exists in db) application always runs , the …

Member Avatar for sonya795
0
211
Member Avatar for drsmith

I am using the following refresh script. It works great in IE but not in FF. Does anyone know how I can make this work in FF? Is it a setting in the browser or the actual code? Thanks DS [code] <script> <!-- /* Auto Refresh Page with Time script …

Member Avatar for drsmith
0
161
Member Avatar for Alex Edwards

I had a hard time understanding the concept of memory in a computer, but something my Instructor told me gave me some hope. He mentioned that memory isn't really created upon invocation of "new" in C++, and stated also that memory isn't really removed upon the invocation of "delete." I …

Member Avatar for skatamatic
0
169
Member Avatar for bettina702

Hi everyone, I am trying to make a login form for my site. I am using the About.com code as a template of sorts. You can find that here: [URL="http://php.about.com/od/finishedphp1/ss/php_login_code_4.htm"]http://php.about.com/od/finishedphp1/ss/php_login_code_4.htm[/URL] I have since changed this code to make it easier for my clients to log in. I want them to …

Member Avatar for bettina702
0
93
Member Avatar for spinnaret

I need to write a stored procedure to analyse appointments for the last 12 months. I need to get each salesperson (by ID) and for each person carry out a count of the number of appointments and count them by outcome (sale, second meeting , failure etc.) and then display …

Member Avatar for spinnaret
0
90
Member Avatar for liquoriser21

Hi everyone! How do I make a textBox control to validate a tel nr field? For instance When the user enters 0127748222, It should be displayed as (012) 774-8222 in the textbox. I need this to be done this way since this is the way i'll be storing the fields …

Member Avatar for liquoriser21
0
192
Member Avatar for NinjaLink

I can get everything to run perfectly, it is just when I print out the final grade, it will just give me a blank for it. Maybe I'm doing something wrong in my finalgrade function, but i don't know....I need help! [CODE=Cplusplus] #include <iostream> #include <iomanip> using namespace std; const …

Member Avatar for NinjaLink
0
166
Member Avatar for MadAxel

I have 2 tables: [B][U]IDM_IDEA_USERS[/U] USER_ID PASSWORD SAP_ID[/B] [B][U]IDM_IDEA_AUTHORIZED_USERS[/U] SAP_ID[/B] I need to retrieve information from table [B]IDM_IDEA_USERS [/B]column name [B]USER_ID [/B]and [B]PASSWORD[/B]. I also need to verify that only [B]SAP_ID[/B] from [B]IDM_IDEA_USERS [/B]table is the same as [B]SAP_ID [/B]from [B]IDM_IDEA_AUTHORIZED_USERS[/B]. Only the users from [B]IDM_IDEA_AUTHORIZED_USERS[/B] can login. This are …

Member Avatar for MadAxel
0
77
Member Avatar for rrreeefff

I am trying to write a recursive function that compute a to the n. here is as far as I have gotten as far as code [code=c] #include "stdafx.h" #include "stdio.h" int power (int n); // function prototype// main() { float a; int n; printf("\n enter values of a an …

Member Avatar for rrreeefff
0
155

The End.