199,114 Archived Topics
Remove Filter ![]() | |
I previously posted an MS-Windows example program about how to recursively search folders and create a list of their filename. This program is similar in concept but is for linux. It c++ and uses std::string and std::vector classes to hold the strings. When the program encounters a directory it will … | |
I'm trying to solve a maze that originally chooses moves randomly, keeping track of its last move...left and forward, right and foward, and forward, and by chance will choose to 'undoMove' if a 'moveBlocked', but not guaranteed. I am attempting to use a stack to solve. according to instructions the … | |
Hello! Can someone please suggest a way to effectively copy the bytes from one array to another. In my program a user will call the method setDate(byte[] buf) which will set data continuously ie inside the method there is an array say buf2. for example if the method is called … | |
Hi, just try to create application using VB6 for my kids, but facing problem with image on how to save & retrieve it from MS access database. could you guys please share the code. TQ in advance. | |
I am told to write a definition after the main program that takes numbers from the keyboard and stores them in an array. I'm slightly confused on how to do this step. Help would be majorly appreciated. This is what I have so far with the program. [code] #include <iostream> … | |
hey guys, thanks for looking at this. I'm new to java and need help with this one problem. What i need to do is, 3) Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a … | |
I am trying to loop through a polynomial using the iterator from the STL but it says i am dereferencing the iterator somewhere but i can not spot it. I have pin pointed the error to the return of the following code. [code=c] Polynom& Polynom :: AddPoly( const Polynom &a) … | |
Hi.. Here is a program about determining the total number of green-necked vulture eggs counted by all conservationists in the conservation district. The program in fact works correctly but there is a line which i am not being able to understand its use in the program and it is the … | |
Hi, I want to create simple file management program. Suppose i have 10 users. and file xyz.txt When 1st user access file he has authority to read and write. but if at the same time 2nd user try to access this file. i have to give only read access or … | |
Hi again, Ok heres my problem: Lets say I have a string which contains: "Hi my name is Tim"; And i have another string containing a pattern: "HI MY NAME IS *"; I wanna match the pattern to the input and replace the star with what they put. How can … | |
hello sir can you help me sir what is the random access files?i want to learn that but i have no idea to make the code...please help me sir, hoping for your positive responds...thank you in advance... | |
How do I properly bubble sort through a text file by assigning the values to an array. In the code below I tried to assign the values from the text file to a string while there is still something to fetch. Then I used a for loop to assign the … | |
The class Newfile has a red zig zaggy line underneath it, The type Newfile must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent). What does this mean? My code ^_^' : [CODE]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JButton; import javax.swing.JMenu; import javax.swing.*; import java.util.*; public class tuna … | |
This is for an assignment. The child process never prints it's output, or calls the fibonacci functions. I've got other sample programs where the printf command works. Any help would be appreciated. Thanks in advance. [CODE] #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <errno.h> #include <unistd.h> #define MAX_SEQUENCE 10 typedef … | |
I'm working on an assignment where we are to implement an address book that holds standard information (ie. Name, Address, City, State, Zip) and contains a user interface to provide options to add, delete, or modify records, search for a specific record, or display all records. These operations are to … | |
I am a beginner in c++, I taught myself c++ through the book "c++ primer plus", it really took me a lot of will to finish the book. Now i just want to use the thing i learned to do some pratical things in my life, can anybody tell me … ![]() | |
helllo, i've got a problem with the code below. I think the problem lies with the const command . I understand you have to use const_iterator with variables that are passed as const. However in the code i->printSummary() it reports a problem? I've been reading about the const command and … | |
Hi all, i havw make a page for user entry..now i'm uisng [CODE] <asp:RequiredFieldValidator ID="CmpCode" ErrorMessage="*" runat="server" ControlToValidate="txtCmpCode"></asp:RequiredFieldValidator> [/CODE] to make a validation but not enough space.. anybody have any suggestion to make a validation rather than diaplay the error message? i'm thinking about just red bold the textbox but … | |
Uh, I don't think I'm on the right lines but is there a way to connect to the internet and send some variables to a database? | |
Hi all, Having issues with my guessing game I made. For once its not a compiling error. For some reason my loop only executes once, and it wont re-execute when the wrong number is entered. Hoping someone can help me. Here is my code: [CODE]import javax.swing.*; public class Guessing Game … | |
Hi all, I use glossy.js and I am trying to apply it in an image with the path like [CODE]<img src="../Users/admin/header1.gif" class="glossy"/>[/CODE] the effect is ok. But when I am trying this in a php code like [CODE] echo '<img src="../Users/$user[username]/$photo[filename]" class="glossy"/>'; [/CODE] then it does not work. I have … | |
We would like to serve javascript from our database. We assumed it would be like serving html but its not working. What we have is a small news ticker and we would like to use a call to our database via php to serve this ticker, so we put the … ![]() | |
Hi - Im making a small and relatively simple game that use's the common feature of the scoreboard to keep track of the user's score. I have declared the main game frame in one class, the actual game on one panel in another and have decided to keep the scoreboard … | |
Well, I have been learning C# of and on for a little over a month now and I decided to try a simple game. Yahtzee shouldn't be too bad; just roll the dice and check for your score, right? Actually, the complexity of it turned out to be much deeper … | |
"Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in X on line 146" problem.. Need expert help plss... here is the code.. [CODE] <?php require_once('Connections/reservations.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue … | |
Hello, I am new to C++ and I am trying to create a program but I am not sure where to start exactly. Program purpose : Person/Player is asked to enter a number between 1 and 100. The computer randomly guesses a number and the player says whether its (h)igher … | |
I have a JSP page 1 to addusers to the account.On submission of the form another JSP 2gets called and manipulates the parameters.If values are null i am returning an error message to the user.If values are not null i need to call a servlet which will run a backend … | |
You might find this a bit silly, but could someone please explain to me how to do C++ templates? I know they're very simple ... I just never learned them nor ever had a teacher who taught them or even made mention of them. | |
I really need help(ideas) with a project I want to work on. I want to build a software that will be used for Financial Management in a bank with java. What I need is help with where to start and also pointers to resources that might help me get this … | |
Hi , i have to merge two arrays that are already sorted in ascending order .Somehow my code doesn't give the correct output .Can someone please help [code=c] include<stdio.h> #include<conio.h> void merge(int a[],int b[],int m,int n); int main(void) { int a[20],b[20]; int i,n,m; printf("\nEnter the number of elements in array … | |
I am trying to extract data from a 1.5 GB text file. The problem occurs when the program tries to open the large text file. It works perfectly on smaller files. Does anyone know how to successfully open a file of this size? Or, is there a better way to … | |
I "miss wrote" the name of the book ... sorry ahhaha accelerated hhahah why did I write advanced ... damn =S ahha 4-2. Write a program to calculate the squares of int values up to 100. The program should write two columns: The first lists the value; the second contains … | |
I have the following data in a field in my SQL table. I want to break up the data in this field so I can use it in reporting: Sample records: Record 1: Player: (265613) Miss Linlde M Simonds, Promo Adjusted -> 10.00, Beg. Bal -> 0.00, End Bal -> … | |
![]() | Hello! I have been working on a `Advanced log in` project. And i was going to store pass words on a text file. i have found some code on the web but their is one problem. I don't know what to convert it to! [CODE] public void Getpasswd() { if … ![]() |
can anyone tell me how to do the pyramid like in the attached file :- i want it simple program with explanation how it works if you can. PLEASE HELP.:icon_cry::icon_cry::icon_cry: | |
Normally i would google, but I did not know how to google the problem I am facing now also being a newbie in shell scripting. Okay, the requirement is user1 has sudo rule to su - user2(NO PASSWORD) and user2 has will be able to sudo certain commands so following … | |
I am trying to extract data from a 1.5 GB text file. The problem occurs when the program tries to open the large text file. It works perfectly on smaller files. Does anyone know how to successfully open a file of this size? Or, is there a better way to … | |
okay i have question about how to apply those to my code. first the Hashmap, i used the code it and i entered information inside dic.put(studentName, new Student( studentName, studentSurname, studentSubject, daysBookBorrowed, booksName)); this is what i put inside. now i want to extract studentName , i want the user … | |
hi guys, i need help!, how do i extract odd digits from a positive number, example: 1234567 then only 1357 will be extracted out from the value 1234567? I noe can make use of modules % to check for odd and even number however i do not know how to … | |
I am trying to bind my gridview to a stored procedure via Linq to SQL but keep getting 'Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.' I know I am supposed to convert the stored Proc .ToList, but this method is not available … | |
i have just observed this wierd thing with visual c++ the following is my code.[please forgive my poor C++ standard. im using it only because im doing it 4 a school project and the examiner wont be bright enough to understand what iss not in the syllabus. this is sad … | |
How do i cancel the filtering | |
hi.... I am doing an snmpwalk on MIB variables and dumping the output to a text file. I dont need all the info and need to read only a part of it. How can this be done efficiently in python? | |
Hi, im trying to set a row filter based one fixed paramater (locationID) and a second paramater on a session variable - im not an expert in C# at all, but i think what i have done should work? Can anyone see anything wrong / offer suggestions please? :) [code] … | |
Hi everyone, I have a problem getting this code to work properly. What I need is to create a update form where the Admin user manages what menu items the different user levels will have access to by ticking or untickking the check boxes. I need the check boxes to … | |
I'm looking for the coding used to cause a radio button selection to enable a shortlist of checkbox inputs. Conversely, if the radio option not related to the checkboxes is selected, they are grayed out (example below). I thought this would be easy to research, but can't seem to find … | |
Hi, I have the task of creating an export tool - where a list of files are gathered and zipped up and placed into a folder of the user's choosing. So far I have gathered a list of files and put them in a list box for the user to … | |
How exactly do you distinguish file and folder deletion events using the file system watcher control? I've searched google trying to find an answer, but the only suggestion I've seen is to use separate filesystemwatcher objects for each task, just changing the "include sub directories" flag each time. That's stupid, … | |
i have a problem with my program it can only search 1 account number at a time... and after i search again... it will not display the search number... hope someone can help my with the missing parts of these program.. tnx in advance... goal: to search id number more … | |
In this program how can i overload the pop() method to use two pop() methods (int and float) in a program as i used two push() methods ? [CODE] class Stack{ int StackArrayI[] = new int[3]; float StackArrayF[] = new float[3]; int tos=-1; public void push(int value){ if (tos==2) System.out.print … |
The End.