132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for neclark2

Hi, As the title suggests, I am completely clueless when it comes to shell scripts. However, I am in a position where I need to write one so I thought would ask for some help. What I need to do is dump every database in my instance of mysql into …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
157
Member Avatar for degamer106

Hi, In on of the lecture notes that was given to me by my prof, I was told that setting the ResizeRedraw value to true would allow whatever I drew on the form to be, well, resized. However, it does not seem to work. Here is my code: [CODE]using System; …

Software Development
Member Avatar for LizR
0
204
Member Avatar for W@n

Hi, i am facing a problem with reading of duplicate element in an array. I was told to ignore the duplicate element in a text file and continue read in data from the text file at the same time store the data in an object array and diaplay it. However, …

Software Development java
Member Avatar for BestJewSinceJC
0
698
Member Avatar for volscolts16

I have a problem with the new program, it compiles and and it debugs, but when I get to the command lines and enter my function it gives me a debug assertion failure. We are supposed to be finding the sum of the area of rectangles used for close approximation. …

Software Development c++ ios queue
Member Avatar for skatamatic
0
105
Member Avatar for yooobaaby

Hi All, i need yr help guys, i am developing a software in which i want to add one class object in MySql table, since there is no datatype available in MySql so that i can write object in to it, please do me a fever, what i should do …

Software Development java mysql
Member Avatar for Ezzaral
0
111
Member Avatar for Jennifer84

I have put values into 6 elements of the vector Numbers like below. What I wonder is if there is any function to check for the Highest value for a given range of the vector. Say I want to find the highest value from elements [3] to [5] wich in …

Software Development c++
Member Avatar for stilllearning
0
141
Member Avatar for viktorijakup

Hi !!! This script create folder. I need what this script create and open created folder. What I must add in this script...??! [CODE] @rem = '--*-Perl-*-- @echo off if "%OS%" == "Windows_NT" goto WinNT perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl …

Software Development os-x perl
Member Avatar for KevinADC
0
151
Member Avatar for shinta13

I'm completely new to C & need some help =( I want to make this clear.... This is a homework project that I'm stuck on so if you feel this is "cheating" then sorry for "offending" you. How can I change the tax rate in the executable file? This is …

Software Development c
Member Avatar for stilllearning
0
102
Member Avatar for zwench

I have 3 applets like this one that have walkers. What I need help with is adding an action listener to the buttons. I have tried several times and keep getting this error. I did have oneWalkerButton.addActionListener(this); [B]in java.awt.Button cannot be applied to walking[/B] What is supposed to happen is …

Software Development java java-swing
Member Avatar for zwench
0
161
Member Avatar for laghaterohan

hi friends, i am having a Form in which there r 5 tab pages... however i want to enable/disable these tab pages on the basis of selection of some commands.. how can this be done ? i tried but i am not finding any enabled /disable property for the tab …

Software Development vb.net
Member Avatar for Teme64
0
93
Member Avatar for leegeorg07

hi again i help with my carnival clubs fundraising and being lazy like i am, i wanted to make a program that would tell you how much to ask for after inputting information and would then save it into a text file. using griboullis' help from my other thread about …

Software Development python
Member Avatar for leegeorg07
0
113
Member Avatar for Natrax

learning C++ and going through some codes. I'm puzzled by how the following piece of code works. It's from the msdn library as part of an example, and I know that the code works, but I'm puzzled by how the "%" sign works. [code=cplusplus] #include "stdafx.h" #include <stdio.h> int main …

Software Development c c# c++
Member Avatar for Natrax
0
76
Member Avatar for pads

Customer and Pensioner. Pensioner should be a subclass of Customer. These classes should be in their own files with separate header files. Details are below. Create a third class called Manager. The manager file can contain the main function. The Manager class should contain member functions that read a text …

Software Development c++
Member Avatar for skatamatic
0
229
Member Avatar for chris99

Currently, all the functions work as expected, but the moving left and right. I want to alter my code to allow me to hold down right and left and for it to continue moving. I know there is a statement with the right syntax, I just dont know how to …

Software Development python
Member Avatar for chris99
0
133
Member Avatar for Tyster

I have a problem that I've been poking at for 2 weeks and I'm stumped. The basic problem is this: If you have an array of objects (an ArrayList in this case), and each of these objects has more than one instance variable (3 variables in this case), how the …

Software Development java
Member Avatar for Tyster
0
97
Member Avatar for tanha
Member Avatar for tanha
0
115
Member Avatar for codered152

Hi All I have a about java. and my question is i have a window open and in that window there is a add button when user click on the add button then a form window opens up and in that form window user can input anything thing want and …

Software Development java
Member Avatar for Ezzaral
0
85
Member Avatar for msundastud

hey guys..I'm trying to teach myself to writee code using C. The program I am working on now is to write a program that prompts a user for his/her age and then prints a message based upon the age range that the user’s age falls into here is the age …

Software Development c
Member Avatar for msundastud
0
64
Member Avatar for Elmo_loves_you

Hi Guys, Im more familiar with coding in C# ... can someone please help me to convert the line highlighted below into VB.NET Much appreciated [code] private int file_count = 0; /// /// Get the file count of a given directory recursively. /// public void GetDirectoryFileCount(string dir) { dir = …

Software Development c c# c++ vb.net
Member Avatar for Jx_Man
0
219
Member Avatar for plenitude

My aim is to read a part of excel sheet for which I have written C# DLL,Now I have to call my DLL from a per written unmanaged C++ program.... plz help n plz dont suggest to create a seperate C++ client program.....coz I can't do that... following is the …

Software Development c# c++
Member Avatar for ArkM
0
154
Member Avatar for jagdishc

Can anyone tell how to print a pascal's triangle... i've wriiten a code but it is not printing the triangle as the way iwanted it to.. here is my code: [code=cplusplus] #include<stdio.h> #include<conio.h> void main() { int n,a[50][50],x,y; clrscr(); printf("Enter the number rows:\t"); scanf("%d",&n); for(x=0;x<n;x++) { for(y=0;y<=x;y++) { if((y==x)||(y==0)) { …

Software Development c++ pascal
Member Avatar for jagdishc
0
81
Member Avatar for daviddoria

Normally I call this function like this [code] void MouseButton(int button, int state, int x, int y); ... glutMouseFunc(MouseButton); [/code] But now I would like to pass a member function instead of a "real" (non-member? whats the word for this?) function. [code] class Plot { void Plot::MouseButton(int button, int state, …

Software Development c++
Member Avatar for kux
0
670
Member Avatar for CelestialDog

I'm trying to instaniate (not sure if thats correct spelling lol) one of my classes but even though i've spelt the name correctly i keep getting a NameError: main: [code] import os import os.path import shutil print "#######################################################################" print "# FOLDER SORTER - VERSION 0.1 Beta #" print "# This …

Software Development python
Member Avatar for CelestialDog
0
232
Member Avatar for botter911

I have some simple questions: 1) How can I restart my program immediately. For example, when the user press F12 it will restart immediately even if the program is not complete. 2) In scanf the problem is: for example: Height Width enter the perimeter: 2 3 < the Cursor moves …

Software Development c
Member Avatar for Ancient Dragon
0
249
Member Avatar for Clockowl

Does anyone know if it's possible to create a shellscript that knows when it's fopen()ed? So when any process fopens() it, it can take an action? Thanks in advance,

Software Development shell-scripting
0
111
Member Avatar for sneekula

What's the preferred way to pass a string to and from a function?

Software Development c
Member Avatar for Ancient Dragon
0
104
Member Avatar for AutoC

hi, This is a doubt about the pseudo-eof.If i have an 8 bit system, Then the pseudo eof has to be above 8 bits...so should i allocate 16 bits for every character just so that my eof can exist?..if its a 16 bit system I have to use 24 bits?

Software Development c++
Member Avatar for ArkM
0
135
Member Avatar for Easter Bunny

i have a small app that reads a forecourt program's database. i want to get the current shift's info from that and display/print it out. SELECT name, liters, amount FROM salemast ORDER BY name the above statement was my first idea, but that didn't add them. just got a long …

Software Development java mysql
Member Avatar for Easter Bunny
0
103
Member Avatar for bman923

def P(p_0, t, i): return p_0 * (1+i)**t when i call the fuction P(1000,7,5) it returns it as 1000 and any otha number i put as p_0 it returns that number and i cant figure out why

Software Development python
Member Avatar for Chewie-DK
0
91
Member Avatar for ajithraj

hai friends, I want to convert a general expression into excel formula for eg: Grade="A1" OR Grade="A2" OR Grade="A3" convert this expression into =IF(OR(Grade="A1";Grade="A2";Grade="A3"); thank you

Software Development java
Member Avatar for javaAddict
0
84
Member Avatar for ganil123

Hi I need some material on Python unit testing framework with examples. please help me in this regard.

Software Development python
Member Avatar for ganil123
0
285
Member Avatar for IrishUpstart

Hi y'all. I was wondering if someone could help me out a little bit. I have a couple problems due in my Scientific Programming class, and I am fairly lost. I posted another question in the C forum, but I think I was able to solve it on my own. …

Software Development c++
Member Avatar for dougy83
0
264
Member Avatar for IrishUpstart

Hi Gang! I am new to the forums, and programming in general, so I apologize forthright if I am slow or just plain dense on anything/everything. With that disclaimer gotten outta the way, I have an assignment and I am not sure what exactly how to execute it. The problem …

Software Development c
Member Avatar for stilllearning
0
652
Member Avatar for san_sarangkar

I want some logic to shuffle numbers from array if a[5]={1,4,3,7,5,} then after shuffling 1,4,3,7,5 should be in any other order please help

Software Development c++
Member Avatar for VernonDozier
0
168
Member Avatar for klactose

Hello, I am writing some testing scripts. At the end of each test I may have to return my environment back to it's default state using various subroutines in various modules. I realize that using the END block I can run these subroutines, however I have hundreds of these test …

Software Development perl
Member Avatar for klactose
0
121
Member Avatar for gp04lch

hi people, I'm supposed to be creating something like a dynamic item number generator. for example: FROM: A 1 0 111 TO: B 2 0 112 should produce: A 1 0 111 A 1 0 112 B 1 0 111 B 1 0 112 this would be quite easy using …

Software Development
Member Avatar for gp04lch
0
107
Member Avatar for nizbit

First I just wanted to say thanks for all the help everyone has provided for me before. I'm sure you wanted to reach through the internet and strangle me :) . I having some difficulty with understanding/implementing a linked list class with another class. Just something as simple as interacting …

Software Development c++ linked-list
Member Avatar for nizbit
0
140
Member Avatar for Trekker182

This is the first time I'm trying to compile code that I've written using a main program file, a .h file and a .cpp implementation file. I'm using Dev C++ 4.9.9.2 and when I try to compile my main.cpp file, I get several errors of this sort. 1 F:\COP1335C\LAB#3\Time.cpp In …

Software Development c++
Member Avatar for Trekker182
0
173
Member Avatar for Evenbit

It's a FizzBuzz question designed to "separate the men from the boys", so don't cheat. :) Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are …

Software Development assembly
Member Avatar for Evenbit
0
212
Member Avatar for flipjoebanana

Hello, I am trying to incorporate the use of a batch file towards my program. For this I just want that after the program has starting running to send the file content's to stdin, in which case the program should do the rest? Is this possible, how so? Or should …

Software Development c
Member Avatar for flipjoebanana
0
161
Member Avatar for waldchr

This goes out to only the users of Dev C++ (or people knowledgeable with this compiler). I am trying to consolidate all of the files needed to run Dev C++ onto a flash drive so I can use it on multiple computers. I have been having problems getting the app …

Software Development c++ flash
Member Avatar for waldchr
0
173
Member Avatar for jhonnyboy

Hello again guys, I am trying to sort an array. First i must get the info from a txt file. The txt file has numbers and the only way i can put them into an array is to put them into a char array. Now my problem is i need …

Software Development c++
Member Avatar for Sci@phy
0
141
Member Avatar for meddlepal

I have a file with a network map consisting of 0's and 1's. I want to read this map into a two-dimensional array. I have the following code: [CODE] #include <iostream> #include <fstream> using namespace std; int main() { char map[22][22]; // 22 x 22 (r*c) ifstream fin; fin.open("netmap.txt"); char …

Software Development c++
Member Avatar for meddlepal
0
160
Member Avatar for Chewie-DK

the background of the program. A HTTP server is front end for a Fileserver and use Pyro RMI to load / write files on the Fileserver. before a client is allowed access to the files a security handshake must be done. It all works when I run it. Now I …

Software Development client-server python
Member Avatar for Chewie-DK
0
118
Member Avatar for c230jif

I started a program that calculates an employee's weekly gross pay when the user inputs hours worked and hourly pay rate. With what I have so far, it compiles fine, but gives these errors: on Dev-C++: message: [Linker error] undefined reference to 'get_pay(float, float)' Id returned 1 exit status file: …

Software Development c++ visual-studio
Member Avatar for c230jif
0
133
Member Avatar for melissajohn718

I got this error message: error C2447: '{' : missing function header (old-style formal list?) What does it mean? How can I fix this? Please let me know. Thank you! I started with... #include <iostream> using namespace std; int num; { and then i added my variables...

Software Development c++
Member Avatar for VernonDozier
0
196
Member Avatar for dhaval942

i want to write a c++ program that reads the original price of the item sold, the percentage of the mark up price, and the sales tax rate. the program then outputs the original price of the item, the percentage of the mark up, the store's selling price of the …

Software Development c++
Member Avatar for Salem
0
75
Member Avatar for Duki

Hey everyone, I'm writing a program for work. I need to do the following: The user inputs an unknown number of values to be processed. I want to allow them to basically click "new" and be able to add a new textbox or something that will allow them to input …

Software Development vb.net
Member Avatar for selvaganapathy
0
119
Member Avatar for reniies

Hi all, Would you please help me to find a way that I can open an external crystal report in my application without creating a new report. I actually wanted the application to export the report to a PDF which I know the methods to do it. What I am …

Software Development pdf vb.net visual-studio
Member Avatar for reniies
0
532
Member Avatar for ballinloughan

Hi There, I have a piece of code that is confusing me and would appreciate any advice: Reg1 is an 8 bit register Bit0 is bit 0 of Reg1 Line of code that I am having trouble understanding: Reg1 &= ~(1<<Bit0); This is what I think the answer is: Asume …

Software Development c
Member Avatar for ballinloughan
0
109

The End.