132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Darth Vader

Hi, I have encountered a problem. I am checking if my application "testApp" is found in the ApplicationTab in TaskManager. The code below works 100%. But the problem is this when you just "rightclick" with the mouse on the "testApp" in the Taskbar, this code will produce the file and …

Software Development
Member Avatar for Darth Vader
0
129
Member Avatar for hcbckwidpeace93

using System; usingSystem.Collections.Generic; usingSystem.Text; using System.IO; namespace ConsoleApplication1 { class Program { stringchoice,c,d,E; public void n() { Console.WriteLine("Welcome To Turning GNIITians Discovery !!!!"); Console.WriteLine(""); Console.WriteLine("Choice-"); Console.WriteLine("A.New"); Console.WriteLine("B.Edit"); Console.WriteLine("C.Close"); Console.WriteLine(""); Console.WriteLine(" Enter Your Choice From The Above:- "); choice = Console.ReadLine(); Directory.CreateDirectory("D:\\SMBRD"); if (choice == "A") { Console.WriteLine("Enter Your File Name(Max …

Software Development
Member Avatar for ddanbe
0
155
Member Avatar for gazzy1

I have no idea how it will be created plz help me as long experience I have forgotten due to my illness. Write a program to determine if the digits in a three digit number are all odd, all even, or mixed odd and even. Your program should prompt the …

Software Development c++
Member Avatar for Ancient Dragon
0
244
Member Avatar for Eridanus

Hello, I need a little help with the correct implementantion of the bisection search algorithm in the following exercise: - with 2 given variables, balance and annual interest rate, calculate the smallest monthly payment so that we can pay off the balance within a year test case: balance = 320000 …

Software Development algorithm python seo
Member Avatar for amRx1
0
1K
Member Avatar for kogia

I'am trying to undestand how I can use the csv module in python to open a csv file in the same folder as the python script - and then create a .shp (shape file) using the shapefile module pyshp. The csv file looks like this, but can have a couple …

Software Development python
Member Avatar for kogia
0
257
Member Avatar for techxaidz

I have a .txt file that has a text on it, and i want to read from it and show it on a JTextField but I dont know how to code it. So far here's what i know: viewIO = new DataInputStream(new FileInputStream(phoneList.getModel().getElementAt(phoneList.getSelectedIndex())+".dat")); for(int x = 0; x < 5; …

Software Development java
Member Avatar for JamesCherrill
0
118
Member Avatar for somjit{}

**the code works perfectly, just i got something i dont understand...** i'v been trying to get a hold of recursion and sorting for about 3-4 days now, im getting some of it, but still not happy enough.. i searched for some good code for binary search and merge sort on …

Software Development c mathematics seo
Member Avatar for somjit{}
0
443
Member Avatar for bosigosean

William is interested in numbers. His friend Mary has been programming using Visual Basic and has told William about the Radom Number facility that the programming language provides. William never takes anything for granted and says to Mary: “I wonder how good this random number generator is. Suppose you write …

Software Development programming-construct visual-basic
Member Avatar for itismypushkin
0
84
Member Avatar for on93

how i m going to assign a value of 2!/6 into a variable ???

Software Development c++
Member Avatar for zeroliken
0
98
Member Avatar for kinbo

Basically I have 2 classes (class Dog and class DogChorus) and i am trying to change the getoutput() because i want it to display a message box with a message telling the number of lesg that all dogs have and it should returns details of all dogs creat using System; …

Software Development
Member Avatar for Codefiva
0
121
Member Avatar for jhedonghae

i have two textbox..TimeInTextbox that contains time in for example(8:00 am) and TimeOutTextbox that contains time out for example(5:00 pm), i want to add TimeInTextbox and TimeOutTextbox to get the total working hours but how am i suppposed to do that?

Software Development vb.net
Member Avatar for Codefiva
0
192
Member Avatar for Jacklittle01

what is wrong with this code #This is not free source #Don't cheat by looking @ this #If you do you ruin the game #A Towel Production # APOC #------- global ammo1 global ammo2 global ammo3 global health global tech_parts global exp global radio_parts ammo1=10 ammo2=0 ammo3=0 health=100 tech_parts=0 exp=0 …

Software Development python
Member Avatar for TrustyTony
0
194
Member Avatar for jongiambi

Hi im writing a program to simulate a slot machine, where a user enteres a coin and has a 70% chance of winning (say 3 coins). Anyways, I have a class slotMachine with a public int random() function. Here is the function: int slotMachine::random() { srand( time(NULL)); randomNum = rand() …

Software Development c++
Member Avatar for KaeLL
0
439
Member Avatar for lion8420

I cant seem to find an answer to this issue. I am opening a form from a user control. I created some public write only properties on the user control, but I cant figure out how to create a reference to the original existing user control to interact with those …

Software Development vb.net
Member Avatar for lion8420
0
195
Member Avatar for gtsreddy

hi can any one help me which is the best C++ compiler one can download it freely for C++ programming i will appreciate if some one post any web links for this cheers reddy

Software Development c++ first-post
Member Avatar for vijayan121
0
718
Member Avatar for Borzoi

I am trying to write a shell script but I only want it to run if there are no files with a specific name found on the server. I know how to check for a specif file which would be done like this: if [ -f /path/to/file ] then echo …

Software Development shell-scripting
Member Avatar for Watael
0
279
Member Avatar for whoisstanley

Hi guys, i'm pretty much new to python, this might be simple for some of u. But i appreciate if help is given. Here's my sample code: import random animal = ['duck', 'chicken', 'horse'] drinks = ['coke', 'tea', 'coffee'] test = animal + drinks print(test) word = random.choice(test) print(word) print() …

Software Development python
Member Avatar for Lardmeister
0
185
Member Avatar for anisha.silva

how do i represent this in aggregation C# code P1 and P2 as classes and then use aggregation to assign A, A’ instances to them. apprecite a reply thanks

Software Development c#
Member Avatar for anisha.silva
0
109
Member Avatar for lena1990

hi all i want to enter a turkish word to the database using netbeans but what apper in the database is something like that how i can solve it?????? thank you for help

Software Development java java-netbeans
Member Avatar for zeroliken
0
176
Member Avatar for i3-540

I am developing a very simple notepad-type program in C++. The only problem is that when I prompt the user to delete their newly written text file, it doesn't work. Since I let the user pick the name for his/her file, I can't figure out the code to delete it. …

Software Development c c# c++ file-system
Member Avatar for i3-540
0
796
Member Avatar for JustHere155

Okay, I keep getting an error stating that I have few arguments in my void function. I changed it so many time with different combination and yet I still get this error. I just simply want the program to print each digit in a vertical line. #include <iostream> #include <cmath> …

Software Development c++
Member Avatar for Ancient Dragon
0
150
Member Avatar for Aditya_MUHAHA

Hi, I have 2 files. I need to read a line from the File 1 and check for it in File 2. If it is present, I need to delete that line from File 2. File 1 A1 B1 C1 File 2 A1 ABCDEF S1 EEE C1 EFGH D1 XYQ …

Software Development perl
Member Avatar for 2teez
0
198
Member Avatar for nUmbdA

Hello everyone. I am in a programming fundamentals class which we are using python. I am working on a Lab problem and really am not 100% sure how to do it. The Problem: A shipping company (Fast Freight Shipping Company) wants a program that asks the user to enter the …

Software Development python
Member Avatar for nUmbdA
0
3K
Member Avatar for Thembelani

hie guys l have basic knowledge of c and c++.Recently we were given a project assignment on statistical modelling we have to implement it using c/c++.I researched on the libarries that l can use eg sdl,openGL,what l wld like to noe is it possible to code using gcc in linux, …

Software Development c++ image web-design
Member Avatar for mike_2000_17
0
1K
Member Avatar for linezero

I have code in a txt file public class TestClass { static void main(String[] args) { int id; int number; id = 3; number = 33 telNo = id int id; } } I know how to read the file using bufferedreader and get the line number but i would …

Software Development java
Member Avatar for JamesCherrill
0
306
Member Avatar for mahela

I have two forms as form1 and form2 in my project.in form1 it has textbox as txtid. I take n=txtid.text in from1.then how can I use the same value of n (got at form1) applicable at from2.

Software Development visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for yat862

hi, i have a problem of Index was outside the bounds of the array. i don't understand how to amend the existing solution in my case. anyone could help me? the message error is System.IndexOutOfRangeException {"Index was outside the bounds of the array. below is the code & the error …

Software Development vb.net visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for John A

[URL="http://www.deviantart.com/deviation/40255643/"]Line Rider[/URL] is an extremely addictive web game. (Try playing it, and see when you can stop.) Now a lot of programmers would rather play that than work on their project. But actually, if you program right, you can actually make it fun instead of being a dreary bug-fixing experience. …

Software Development web-design
Member Avatar for sapure
0
389
Member Avatar for lizziekadango

help me out, it says rand cant be used as a fuction when compiling. #include <cstdlib> #include <iostream> #include <math.h> #include <ctime> using namespace std; int main(int argc, char *argv[]) { int i,rnumber,number,power,base,rand; int randomise();//initialises random number generator srand(time(0)); cout<<"ten random numbers from 0 to 99\n\n"; for(i=0;i<10;i++){ rnumber= rand()%100; cout<<rnumber<<endl; …

Software Development c++ mathematics
Member Avatar for lizziekadango
0
161
Member Avatar for revelator

Can anyone help me with giving me an idea how to make a basic Car Rental Application using Switch, for, if loop in C language. Help will be appreciated. I am newbie and i have been given this problem to solve. pLz Help

Software Development c
Member Avatar for revelator
0
171
Member Avatar for DelilahDemented

The program runs and gives the correct data until it gets to the 4th line of the input. At the 4th line, the calculation is incorrect and when it gets to line 6 of the input, it just stops completely. I can't quite figure it out. Any help is greatly …

Software Development c++
0
142
Member Avatar for saraalaa.khodeir

code should do this : a) Given an unsorted array of integers, your task is to sort the array by applying the following algorithm (Assume that the input doesn’t contain duplicates ):  Execute the following steps starting from the first element in the array: – Count the number of …

Software Development algorithm java
Member Avatar for Taywin
0
183
Member Avatar for Pelle_3

I can't seem to figure this out. The multidimensional array "structure" changes its values without any reason. I am using Visual Studio 2010 for debugging, and when it enters "structure[x][y] = readData" for the first time, it changes the array's value, but it changes back on next line. I don't …

Software Development c++ visual-studio
Member Avatar for deceptikon
0
152
Member Avatar for philo.meena.1

iam in a hurry to create a database for the printers and its working in a shop and ..can u just help me ,how to write a program using java program for the above statement... i hope u guys help me....

Software Development java
Member Avatar for JamesCherrill
0
138
Member Avatar for Upendra76

I am triying to write a shell script which do the following steps: 1)Check the status of File (ie:Rejected,Processed and Processed_with_errors) from Database(i am using TOAD tool). 2)If the file is rejected ,then the script should immediatly send a MAIL ALERT to me. 3)If the file is processed_with_errors with mare …

Software Development shell-scripting
Member Avatar for L7Sqr
0
334
Member Avatar for DelilahDemented

I have a program that is supposed to match opening and closing braces. It's supposed to work like a stack. It works until the last line of the input file. The last line is matching, but because it thinks the array size is zero it drops out and states that …

Software Development c++ file-stream
Member Avatar for DelilahDemented
0
192
Member Avatar for Kayla1993

I need some help starting my project. You will have the following functions (no violation of these interfaces) and you may have others, as needed: − public static void GenerateRandomTriangles(int numTriangles) to create a file RandomTriangles.dat having the following format (including some comments like the ones shown below) with random …

Software Development java
Member Avatar for JamesCherrill
0
176
Member Avatar for emeka.l.iwuagwu

good day all, i was having a little difficulty in trying to code an application in python to read sms i do something like this import inbox import sms but i still dont know where to go from there. The main objective of the code is to intercept sms messages …

Software Development android python
Member Avatar for M.S.
0
438
Member Avatar for shoebodh

I am a beginner in VB. I am trying to make a simple unit converter. Can please some body tell me how can I delete the last character of the number I enter in my inputbox? thank you

Software Development vb.net
Member Avatar for Reverend Jim
0
31K
Member Avatar for Koji01

hi guys...i have a problem concerning strcmpi not equal while inside a while loop. Check out my code below: #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> main() { char yr[4],new_yr[4]; int x=0; FILE *fp1; printf("Enter Year: ");scanf("%s",new_yr); printf("\n"); printf("You Entered Year %s\n\n",&new_yr); if(strlen(new_yr)==4) { fp1=fopen("year.txt","r"); while(fscanf(fp1,"%s",yr)>0) { if(strcmpi(yr,new_yr)!=0) { fp1=fopen("year.txt","a"); fprintf(fp1,"\n%s",new_yr); fclose(fp1); x=1; …

Software Development algorithm c++
Member Avatar for Koji01
0
121
Member Avatar for mikesr

Hi! I'm trying to read wstring from file. This is an file content example: "83 118 269 ... " The number 83 represent "S", 118 represent "v", 269 represent "č", and so on.. So, I tried to read the numbers into int. But the problem is, that I don't know …

Software Development c++
Member Avatar for mikesr
0
175
Member Avatar for Skate Bart

I'm using a MSHFlexGrid (fgdVehicle) to input data from a database ( via a recordset (rsVehicle) ). You can either enter the data into the database in two ways : 1. From the database application 2. From a form. The problem is present in the second method. There are specific …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
595
Member Avatar for SH3H@N

Hello everyone. I am making a game trainer in vb.net. and want to know how to write a "TEXT" wherever your cursor is. I have already found shortkey mechanism but still looking for this one. Example: I am playing game. I pressed Shift+f3 and no matter which windows is focused …

Software Development vb.net
Member Avatar for SH3H@N
0
197
Member Avatar for jhedonghae

can anyone help me in adding items to a listview? here is what i want to do: when i click the login button the date and time will be added in the column date and time in, here is my code and it works[Click Here](null): Private Sub LoginButton_Click(ByVal sender As …

Software Development listview vb.net
Member Avatar for jhedonghae
0
194
Member Avatar for siram1

write a programe that read amount of money ranging from rm0.10 up to rm5.00(multiple of 10cents). Display number of coins that can be used tp form the above amount. eg. input=rm1.40 , output: 50cents=2, 20cents=2, 10cents=0

Software Development c++
Member Avatar for Despairy
0
82
Member Avatar for t0kipot

hi, can u help me my Datagrid which connected to ADODC1 was updating evrytime i click my ADD command button, then i made another command button to CLEAR what data is in the grid, i used this codes to do that but always error like this "KEY COLUMN INFO IS …

Software Development visual-basic
Member Avatar for shahidpk
0
2K
Member Avatar for gelmi

--->>> when i click the yes button me.show, disappears, it suppose to stay, i don't know that the problem is. I hope someone can help thanks in advanced ^_^ Public Class MagicBeans Private Sub MagicBeans_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MessageBox.Show("WELCOME TO MAGIC BEANS INC. ^_^ …

Software Development vb.net
Member Avatar for poojavb
0
269
Member Avatar for strizh

I'm trying to override equals method, but I'm getting error I have two classes one abstract and the inherited class. public abstract class MyData extends Object { public abstract boolean equals(MyData ohtherData); } public class IntData extends MyData { protected int num; public IntData (int n) { this.num = n; …

Software Development java
Member Avatar for stultuske
0
182
Member Avatar for alanso

hey...how can i use the dialog box joption for now i just use the normal display when i do the joption there alot of error can anyone help thanks. package javaapplication1; import java.util.Scanner; public class JavaApplication1 { static int MicrowaveNetPerIntem =638,JuicerNetPerIntem=270,CookerNetPerItem=216,OvenNetPerItem=229; static Scanner input=new Scanner(System.in); static int MicrowaveSellingPrice=1338; static int …

Software Development java
Member Avatar for stultuske
0
234
Member Avatar for consc197

Hello everyone, I have a problem, i am unsure how to read the data from my Access Database into my vb.net form. I did some searching but i didn't manage to find anything useful so i would appreciate any pointers. Here is the code from frmAddNewCandidate i am using that …

Member Avatar for consc197
0
3K

The End.