199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ancient Dragon

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 …

Member Avatar for Ancient Dragon
0
964
Member Avatar for bmos31

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 …

Member Avatar for bmos31
0
1K
Member Avatar for purijatin

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 …

Member Avatar for purijatin
0
5K
Member Avatar for amrahim

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.

Member Avatar for amrahim
0
2K
Member Avatar for kuchick32

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

Member Avatar for kuchick32
0
101
Member Avatar for frankel81

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 …

Member Avatar for frankel81
0
643
Member Avatar for cchase36

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

Member Avatar for mrnutty
0
50
Member Avatar for shahanakazi

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 …

Member Avatar for vidit_X
0
229
Member Avatar for Aamit

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 …

Member Avatar for chrishea
0
82
Member Avatar for timpogue

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 …

Member Avatar for edwinhermann
0
142
Member Avatar for jemz

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

Member Avatar for jemz
0
251
Member Avatar for nrue

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 …

Member Avatar for NormR1
0
1K
Member Avatar for TheSecOrg

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 …

Member Avatar for NormR1
0
137
Member Avatar for MWE_QUE

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 …

Member Avatar for MWE_QUE
0
127
Member Avatar for hockeygurl35

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 …

Member Avatar for hockeygurl35
0
191
Member Avatar for dspjm

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 …

Member Avatar for iamthwee
0
151
Member Avatar for Beancounter5

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 …

Member Avatar for mike_2000_17
0
93
Member Avatar for new SE

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 …

Member Avatar for guru_sarkar
0
96
Member Avatar for TheSecOrg

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?

Member Avatar for TheSecOrg
0
66
Member Avatar for samuel17

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 …

Member Avatar for samuel17
0
196
Member Avatar for bufospro

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 …

Member Avatar for bufospro
0
74
Member Avatar for valonesal

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 …

Member Avatar for diafol
0
132
Member Avatar for Katana24

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 …

Member Avatar for Katana24
0
2K
Member Avatar for skybomb0

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 …

Member Avatar for karylm
0
183
Member Avatar for marione

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

Member Avatar for marione
0
179
Member Avatar for canadianpanda

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 …

Member Avatar for gerard4143
0
97
Member Avatar for alex.antony.a

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 …

Member Avatar for peter_budo
0
143
Member Avatar for Dani

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.

Member Avatar for phfilly
0
457
Member Avatar for aMOEBa

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 …

Member Avatar for Ezzaral
0
193
Member Avatar for rohit_static

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 …

Member Avatar for Ancient Dragon
0
200
Member Avatar for vavazoom

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 …

Member Avatar for Ancient Dragon
0
219
Member Avatar for mitrious

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 …

Member Avatar for daviddoria
0
149
Member Avatar for Scotto13

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

Member Avatar for gbann123
0
257
Member Avatar for nssltd

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 …

Member Avatar for nssltd
0
95
Member Avatar for LEGACY-XP

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:

Member Avatar for cfajohnson
0
235
Member Avatar for enthu_Unix

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 …

Member Avatar for cfajohnson
0
177
Member Avatar for vavazoom

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 …

0
107
Member Avatar for NewOrder

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 …

Member Avatar for JamesCherrill
0
236
Member Avatar for rocky86

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 …

Member Avatar for kramerd
0
74
Member Avatar for MichaelWClark

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 …

Member Avatar for MichaelWClark
0
139
Member Avatar for maharjun

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 …

Member Avatar for Narue
0
122
Member Avatar for foluis
Member Avatar for novice20

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?

Member Avatar for ptmcg
0
231
Member Avatar for loveforfire33

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

Member Avatar for foluis
0
114
Member Avatar for trilithon

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 …

Member Avatar for trilithon
0
173
Member Avatar for abstrand

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 …

Member Avatar for mahavir123
0
116
Member Avatar for ftl25

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 …

Member Avatar for ftl25
0
195
Member Avatar for Jaydenn

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

Member Avatar for Ketsuekiame
0
876
Member Avatar for kirvie

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 …

Member Avatar for csurfer
0
160
Member Avatar for Xufyan

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 …

Member Avatar for Xufyan
0
1K

The End.