132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NyQii

Hey guys! can you please help me.... I need my user to login to the application, My program must detect to wich depearment to user belongs to, for example if the sales person logs into the application the sales form should be called.... and so on! Having a little problem …

Software Development c# dataset
0
112
Member Avatar for Ankit_Parmar

#include <stdio.h> int main() { int a[0]; int b=2; printf("%X",a); return 0; } Where ever can we use 'a[0]' means array with index zero..

Software Development c
Member Avatar for rubberman
0
311
Member Avatar for M.Waqas Aslam

hello! i am facing an error ("object refrence is not set to an instance of an object.") i check my all code but i can able to solve it . here is a line of code where i getting it. . . . cmd = new sqlcommand(_mycommand_) if (__mycondition) { …

Software Development
Member Avatar for arunkumars
0
183
Member Avatar for bo0ga

If I highlext text on a website, is there a way for a program to automatically have it copied and pasted into an external program, say Microsoft Word? I would want to highlight text, and then right click and have a program function added to the other functions that show …

Software Development java
Member Avatar for bo0ga
0
170
Member Avatar for alanso

#include <iostream> using namespace std; struct student { char name [50]; char S_code [5]; int fees; }; void display(struct student); double input(struct student&); int main() { double total; student stu; total=input(stu); display(stu); input(stu); return 0; } double input (struct student&stu ) { double total=0; char again ='y'; cin.getline (stu.name,50); while …

Software Development c++
Member Avatar for alanso
0
198
Member Avatar for John Linux

Hi, I am trying to write a Bash Script to sort some images but I am new to Bash and not having any luck. I have a folder of images. Example: P100.jpg P172.jpg P342.jpg P400.png I need to change these filenames to <filename>_DEFAULT<extension>. ie. P100_DEFAULT.jpg and then move the file …

Software Development file-system os-x shell-scripting
Member Avatar for histrungalot
0
253
Member Avatar for JasonWung

Hi, Can someone help me on this. I need to make here a log when request is start and when is end. I want to see how much time is taken for request/response. WebResponse response = webRequest.GetResponse(); //Console.WriteLine(((HttpWebResponse)response).StatusDescription); // Get the stream containing content returned by the server. Stream dataStreamResponse …

Software Development
Member Avatar for arunkumars
0
208
Member Avatar for samiam5976

Hello, *'m trying to complete a homework assignment using a bool type array to find the prime numbers from 2 to 1000 based on the sieve of Eratosthenes. The code I've included below will find the prime numbers, but skips the first 11 primes (2, 3, 5, 7, 11, 13, …

Software Development c++
Member Avatar for samiam5976
0
113
Member Avatar for jaymayne

**The program below wont run due to the following errors :** *MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup fatal error LNK1120: 1 unresolved externals* **Please help me to solve these errors.** #include<stdio.h> #include<conio.h> #include<Windows.h> int Choice=1; char opt; int ch=0; void Main() { while (ch!=4) …

Software Development c
Member Avatar for jaymayne
0
120
Member Avatar for caltech

My whole code is below. I need to print an alphabetically sorted list towards the end right now, that's where I'm at... you can see my measly attempt, but I clearly don't really know what I'm doing with this sorting algorithm... Do I need to make a new vector comprised …

Software Development algorithm c++
Member Avatar for Lerner
0
613
Member Avatar for joankim

First I would like to state that I am almost positive that this is a bug in Java, not a coding mistake by me. This program is designed to print the first n (inputted) square triangular numbers (STN's). A STN is a number that is both a perfect square and …

Software Development java
Member Avatar for joankim
0
248
Member Avatar for Gé48

I have a listbox that contains numbers that vary from 0 to 99. My problem is when the number in the listbox is 0, listbox1.selectedindex will not return a value. So I cannot use removeat(x) which works for all other numbers. Can anyone give me an idea on how to …

Software Development vb.net
Member Avatar for Reverend Jim
0
219
Member Avatar for Stjerne

Hello, I've no experience with layouts, and I want to learn it, especially how to place components in the right places. I'll give an example, and I was wondering if you could help me? **Main class:** import javax.swing.*; import java.awt.event.*; public class Main { public static void main(String[]args) { final …

Software Development java java-swing
Member Avatar for Stjerne
0
171
Member Avatar for dwlamb

I'm baffled by something in a small script I wrote. The purpose of the script is to compare 2 files on a system. Somehow a tree structure was copied and am fairly certain that the files are identical The command line is as follows: /filecomp.sh /home/daniel/Documents/workspace/www/ This is the script: …

Software Development shell-scripting
Member Avatar for dwlamb
0
124
Member Avatar for Pamilerin

Any way I can populate a datagrid in vb.net with the ff xml data. ` <?xml version="1.0" encoding="utf-8"?> <pricelist> <item> <symbol>7UP</symbol> <security>7-UP BOTTLING PLC</security> <opening price>41.75</opening price> <closing price>41.75</closing price> <description>Symbol:7UP, Security:7-UP BOTTLING PLC, Opening price:41.75, Closing price:41.75</description> <pubDate>Sun, 15 Apr 2012 01:00:10 GMT</pubDate> </item> <item> <symbol>AGLEVENT</symbol> <security>A.G.LEVENTIS(NIGERIA) PLC</security> <opening …

Software Development vb.net xml
Member Avatar for thines01
0
355
Member Avatar for hastingo

help please how to write chat program like yahoo messenger tht can allow people to register and chat between themself..

Software Development
Member Avatar for thines01
0
193
Member Avatar for Pamilerin

can any body help me by giving me a guideline on how to insert data from a populated datagrid into sql server table and how to make the values conform to the specified datatypes constructe in the sql server side...assuming the datagrid headings have already been created in the sql …

Software Development pascal sql vb.net
Member Avatar for Begginnerdev
0
850
Member Avatar for GTTravis

In my spare time i give myself programming stuff to do. Today i want to write a function that goes through a string, if the string contains any numeric value the function must return false, if the string has any special characters it must also return false else return true. …

Software Development vb.net
Member Avatar for GTTravis
0
163
Member Avatar for coroche

I'm trying to write a code to take in strings of "Name Surname City" separated by spaces which are then sorted alphabetically first by city then surname then name. I have it as far as extracting the idividual elements of the string but don't know how to implement the bubblesort. …

Software Development c++
Member Avatar for coroche
0
140
Member Avatar for benclifford

I have done this code 5 times in my program for different classes and variables and it has worked fine for 4 of them but the 5th is giving a segmentation fault. The error occurs just after the cout saying 'here' in the main.cpp code below I have run valgrind …

Software Development c c# c++
Member Avatar for benclifford
0
388
Member Avatar for c.pentasuglia

I'm working on a project, and i put in some code to tell the program when to stop. Basically it completes it's task then shuts itself down, however it outputs information to a text box aka log. I'd like to stop the program from running, yet leave the log open …

Software Development java
Member Avatar for c.pentasuglia
0
245
Member Avatar for c.pentasuglia

So i have a jar of a project that i was working on, and i want to use it as a library in another project (resource adapter). I have brought it into the libraries folder, and used an import. I basically want to be able to call that whole project …

Software Development java
Member Avatar for c.pentasuglia
0
300
Member Avatar for SillyNoob

**IDE: **MS Visual Studio 2008 Professional **Compiler:** Unknown First off let me thank any of you who take the time to read this and reply back. I'm having a ridiculous amount of trouble returning a pointer from a function and then using that returned pointer to change the pointer-pointer in …

Member Avatar for SillyNoob
0
234
Member Avatar for Labdabeta

I need to calculate chi squared cdf from x->infinity with n=255 degrees of freedom. I cannot seem to get it to work. You can find formulae for chi squared distributions using google. Here is my non-functional approximation code: double riemannsum(double(*fnc)(double),double dx, double xmin, double xmax) { double ret=0; double x=xmin; …

Software Development c++ mathematics
Member Avatar for Labdabeta
0
619
Member Avatar for VasquezPL

Hi! I am still fighting with outlook myappointment.RTFBODY method... I have found on some page that there is a workround which will give me a possibility to put there html text... I have tried it, and it wokrs - almost... webBrowser.CreateControl(); webBrowser.DocumentText = html; // HTML = HTML CODE Application.DoEvents(); …

Software Development c#
Member Avatar for VasquezPL
0
914
Member Avatar for minimee120

Hi all I need help with the final part of my practice problems for class, if anyone who can show me what to do it would be greatly appreciated!! Write a program that incorporates the following functionality: 1) Prompt the user for a series of names and scores. 2) Store …

Software Development python
Member Avatar for Lardmeister
0
262
Member Avatar for SovietTrash

Hi, I am creating a VB.NET application that uses multiple lines of a text files as an array member. I came up with this code to create the array: Dim PSArray as string = Split(my.computer.Filesystem.readalltext ("E:\PS.txt") ) Now that I have created the array, I need to know how I …

Software Development vb.net
Member Avatar for Gé48
0
155
Member Avatar for ladybro

Hey folks, Basically, I am trying to recreate Conway's Game of Life in java. I'm getting input from a file and using it as the first generation. I set up my array and have input working correctly. However, when I'm trying to use a method evaluate my array at certain …

Software Development java
Member Avatar for JamesCherrill
0
177
Member Avatar for shean1488

Hi everybody, I'm trying to figure out how much memory was used for merge sort algorithm. I believe it is just one or two expressions, but can't come up with them by my own. public void mergeSort (T[] data, int min, int max) { T[] temp; int index1, left, right; …

Software Development algorithm java
Member Avatar for shean1488
0
334
Member Avatar for kh.taimoor

ii m getting error message "class ,interface or enum expected.can anybody help me please thanks.." import javax.swing.*; import java.util.*; public class StudentBook { ArrayList students; public StudentBook() { students=new ArrayList(); } public void addStudent() { String name=JOptionPane.showInputDialog("Enter the name of the Student"); String rNum=JOptionPane.showInputDialog("Enter the Roll Number of the Student"); …

Software Development java java-swing
Member Avatar for DavidKroukamp
0
198
Member Avatar for cisumma

Hello. I am using a Swing worker to scan various tables during a can of a DB. While it is working the progress bar encompasses a busy icon. My question is how can I make the pointer take on that icon while a system scan is in progress? While the …

Software Development java-swing
Member Avatar for Begginnerdev
0
289
Member Avatar for Erwin_Rosyid

First, I apologize for posting a question as my first post but I'm in need of help since I couldn't solve this assignment. I wrote this simple code for an assignment last week. Today, the professor got to leave early so he left us an assignment which is related to …

Software Development
Member Avatar for Erwin_Rosyid
0
146
Member Avatar for jarograv

I have an assignment that I have been working on that is to modify an existing rock paper scissors program so that I ahve a method that sets the player name and a method that gets the player's name. I have created the methods however it does not allow me …

Software Development java
Member Avatar for jarograv
0
885
Member Avatar for Tortura

Hi, I don't find a solution for my problem. The important classes in my measurement program for this problem are: public partial class Preview : Form { //... private void Preview_Load(object sender, EventArgs e) { CreateZGC(numberOfGraphs); //Creation of the ZedGraphControls. ShowZGC(); // Adds the ZedGraphControls to the form 'Preview'. LabelGraph(); …

Software Development
0
117
Member Avatar for polarbear125

I've tried to define result many different ways, but I just can't get it to work. I know it's just something simple I am missing, but what is it? Can someone point me in the right direction? It currently says 'variable result might not have been initialized'.. but if I …

Software Development java
Member Avatar for DavidKroukamp
0
204
Member Avatar for shaswat.j

I have made a program in BlueJ using several attributes such as Arrays, Strings etc. I want to know a way in which I can execute this program in any Windows based application or any other platform than BlueJ so that it can be used by people. Any ideas?

Software Development java
Member Avatar for NormR1
0
87
Member Avatar for iPanda

I got an assignment which I don't even know how to start, I have a path to a driver & its name (Argv) and I need to create a code that will install this driver automatically. If anyone even has an idea how to make this code generic I would …

Software Development c
Member Avatar for BobS0327
0
218
Member Avatar for NoUserNameHere

Why doesn't it display the output for mouseReleased and mouseClicked in console? Is there something that I am missing? import java.applet.*; import java.awt.*; import java.awt.event.*; public class MouseMotion extends Applet implements MouseMotionListener{ public void init() { addMouseMotionListener(this); } public void mouseDragged(MouseEvent e) { System.out.println("mouse is being dragged at location (" …

Software Development java
Member Avatar for NormR1
0
309
Member Avatar for nicprog

can you explain how to chack all the char inside the array without check only the first and it says equal for(j=0;j<len;j++) { if (letter==copywords[j]) { //words[j]=copywords[j]; words[j]=letter; cout << "good guess: " << words[j] << endl; //correct } else if(words[j]==copywords[j])) /problem { cout << "done!!!" << endl; system ("pause"); …

Software Development c++
Member Avatar for zeroliken
0
124
Member Avatar for Mbot

Im trying to make a highlighter that will highlight a word after I have typed it in a JTextArea. The problem I have, is that after I press space, the highlighter doesnt stop. It continues highlighting the next words as well. public class highLighter { JTextArea ref; Highlighter hilite; String …

Software Development java
Member Avatar for Mbot
0
289
Member Avatar for Hazuan Nazri

This is my search button and textbox code, but i will got error on pelanggandatagridview and searchdatas, i need to search data on SQL DB like google! just type any word with almost same with the data and it will show on pelanggandatagridview, please help me... Private Sub Button5_Click(ByVal searchword …

Software Development gui seo vb.net
Member Avatar for poojavb
0
143
Member Avatar for subith86

Anybody of you got any idea what this "internal compiler error: Segmentation fault" means? I searched internet, but didn't get anything useful. Then I did my analysis. I found out something peculiar. The code that I am trying to compile is a file for unit testing one of our classes. …

Software Development c++ redhat
Member Avatar for mitrmkar
0
3K
Member Avatar for shah1509

I got an application where by it will monitor all the files in multiple directories. Whenever there is files that exceeds a certain size limit, it will send warning email notification. Currently, my program will send an email for each oversize file. Meaning if there is 20 files that is …

Software Development file-system
Member Avatar for shah1509
0
201
Member Avatar for anuj6928

currently i m workin on Ms CHarts wid VB.NET nd create a chart sucessfully bt nw i wnt to click on that particular bar of that chart nd want to get that particular axis label of that bar ..

Software Development vb.net
Member Avatar for anuj6928
0
80
Member Avatar for don't give up

hello please help me it's important i want code c++ convert from array to another " example: **user enter : acb** array1[0]=a array2[0]=1 and array1[1]=b array2[1]=2 array1[2]=c array2[2]=3 **out put for user : 132 ** thanksthankthanthatht

Software Development c++
Member Avatar for don't give up
0
186
Member Avatar for Kert

Hey, I have a problem that I've been messing with for several hours, but with no result. I have a basic textfield where I can enter some info and I have to be able to read it and save it to a static variable by both pressing "Enter" and clicking …

Software Development java
Member Avatar for Kert
0
158
Member Avatar for anonymous1987

Need help, trying to perform arithmetic operations using words, so far i've got to the stage where if the user enters a number in words with the operation type eg(one + six), the result is printed out as an int. But i am unable to convert this int back to …

Software Development c++
Member Avatar for Lerner
0
175
Member Avatar for sumi1234

I have an assignment question . We need to simulate FCFS scheduling algorithm using C on linux OS. This is what I need to do Write a program to simulate **FCFS scheduling algorithm** using pipes for inter process communication. 1. Let the parent program be the scheduler. 2. It takes …

Software Development c
Member Avatar for histrungalot
0
2K
Member Avatar for renzlo

Hi All, I have a access database with these columns. USER_ID,COUNT,TIMES Let say the current record is this: USER_ID,COUNT,TIMES STEVE20,24,1.5 Now I want to updated the current count record and times, but before updating I want the old record to be added to the new record. What should be my …

Software Development microsoft-access vb.net
Member Avatar for renzlo
0
180
Member Avatar for Daigan

int main() { float stud1[2], stud2[2], total1, total2, ave1, ave2; int x; char letter1, letter2,opt; do { system ("cls"); printf ("Enter the test scores for Student 1\n"); printf ("Test 1: "); scanf("%f", &stud1[0]); //Error checking, when the user inputs a value less than 0 or more than 100 if (stud1[0] …

Software Development c
Member Avatar for Ancient Dragon
0
218

The End.