132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sivak

hi all i have one employee table ..it contains 2 coloums like employee name and manager... every employee have manager ...that manager also one of the employee...some employee dosnt have manager on that table... i want to write the query who dosent have manager on that table?

Software Development
Member Avatar for sivak
0
110
Member Avatar for saneeha

I have made a data table and want to display its content on the crystal report viewer. My data table has 2 columns but the report only shows one column... <code> DataTable dtRecords; dtRecords = new DataTable("Records"); dtRecords.Columns.Add(new DataColumn("Name", typeof(string))); dtRecords.Columns.Add(new DataColumn("FullName", typeof(string))); dtRecords.Rows.Add("aslam", "zia"); dtRecords.Rows.Add("hamad", "anwar"); CrystalReport1 cr = …

Software Development visual-studio
Member Avatar for saneeha
0
53
Member Avatar for sivak

can any one telll me the answer soon 1.i dint get clear idea about abstract class and interfaces in c#? when we go for abstract class and interface in c# .net? explain with coding example 2.explain about staic mathoda with example... 3.i have 1000 records in my database...want to dispaly …

Software Development
Member Avatar for sivak
0
208
Member Avatar for Trekker182

What is the best way to kill a number of PIDs that I've isolated from an external file? So far I've done grep PID badPids | awk {'print$2}' to get the list of bad PIDS to kill. I've searched through the man pages to no avail and I need to …

Software Development
Member Avatar for Trekker182
0
104
Member Avatar for nokomoli

Hello Friends, I'm facing a problem now that is i have some THAI language data in SQL Server 2000. The problem i don't know how to retrieve this data to variable and i don't noe the variable should be what data type? such as string or others? Have any one …

Software Development sql visual-basic
Member Avatar for nokomoli
0
89
Member Avatar for abhaydiwan

Problem: I need to read in each line of an input file into an aray of strings.The program should quick sort the array and output the sorted list to a file: I came out with the below code, buts its giving me two error and i need to update it …

Software Development algorithm java
Member Avatar for VernonDozier
0
96
Member Avatar for Ormick

OK, just a quick question. What is a good sound library I can use to play files? On a slightly unrelated note, what is one I can use to generate sounds (tones, like 8 or 16 bit.)? I would very much prefer it to be open source and platform independent. …

Software Development c++ open-source
Member Avatar for Ormick
0
95
Member Avatar for iamdougsinbox

Hello everyone, This is my first post, I'm having trouble on an assignment. I'm writing a function for a database program in class... I have to write the function that will tranverse a linked list, add a "node" and then write the user entered info into the "node". The first …

Software Development c linked-list
Member Avatar for iamdougsinbox
0
100
Member Avatar for rtmarch

ok so i have been sitting here for over 2 hours trying to figure out what is wrong with my code and why i keep getting the same 2 error messages energy part 2.cpp(104) : error C2059: syntax error : ']' and energy part 2.cpp(105) : error C2447: '{' : …

Software Development c++
Member Avatar for MosaicFuneral
0
125
Member Avatar for jesseb07

hello, for one of my programs I need to acquire the decimal off of a number, for example, if a double has value of "123.45" I need an int to have the value "45". to do this, I have the following code [CODE] double value, tempValue; int decimalValue; value = …

Software Development c++
Member Avatar for jesseb07
0
273
Member Avatar for orwell84

How do I make a variable a random value between 1 and 10 each time the program loops? I want to have a "I'm thinking of a number between 1 and 10..." thing, and then you have to guess the number, but I don't want the number to be the …

Software Development c++
Member Avatar for mrboolf
0
96
Member Avatar for LincolnGurl

Hi all, Does anyone know if it is possible to write a C++ macro, which will force the compiler to construct Pascal/custom style string constants during compilation? The basic idea is to avoid unnecessary run-time construction from C-style to custom-style string literals. For example, when evaluating the expression {String2 = …

Software Development c c# c++ pascal
Member Avatar for LincolnGurl
0
305
Member Avatar for Falkoner1

I'm trying to find a good, easy to use GUI for an inventory in my game, all I really want them to be able to do is select items, maybe move them around into different slots, and be able to modify variables based on where things are moved. I plan …

Software Development c++ gui
Member Avatar for Freaky_Chris
0
103
Member Avatar for cmharris90

Hi everyone, I am working on a checkbook balancer for school and my code looks like this: [B]def process(balance): trans_type= raw_input("Enter Deposit(d), withdrawal(w), print(p), or quit(q):") amount=input("Enter the amount:") if amount<0: print"You've entered an invalid number." if trans_type=="d": balance=int(balance)+int(amount) print"Your current balance is", balance elif trans_type=="w": balance=int(balance)-int(amount) print"Your current balance …

Software Development python
Member Avatar for lllllIllIlllI
0
94
Member Avatar for leeba

I have a program that asks for a knights coordinates and prints out all possible moves. That works. What doesn't work is if it is not a legal place for the knight (i.e. off the board) it prints an error but also prints coordinates for -1,-2. not sure why. Any …

Software Development java legal
Member Avatar for leeba
0
137
Member Avatar for shubhang

I am new at java. I am making an address book program. Below is a code of the Search class. Could anyone please look into it? The program is giving a problem while runtime. [code] import java.io.*; import java.util.*; class search { private String str,sval; private String arr[]=new String[8]; char …

Software Development java
Member Avatar for shubhang
0
129
Member Avatar for dickersonka

Is it possible to have a dynamic operator? I know I could parse it out and find the symbol just wondered if it was possible. [code] string aString = "5"; int a = 5; int b = 6; string op = "<"; //want to do something like dynamically without checking …

Software Development
Member Avatar for Jugortha
0
149
Member Avatar for amt_muk

Hello friends, I am facing a linking problem in VC++8.0 compiler. Suppose I have a library, say A.dll. In this library I have a file, say x.cpp. Within this file there is a extern const variable, like [code] ..... __declspec( dllexport ) extern const long ERROR = 100; ..... [/code] …

Software Development c++
Member Avatar for amt_muk
0
104
Member Avatar for Kainan54

I'm starting to learn c++. I use vista so lots of ide's dont work for me. Right now im trying visual c++ but things like cout are not understood when compiling. This may be a compiler issue. I all would like to know is a good basic (for beginers) ide …

Software Development c++ ide visual-basic
Member Avatar for Kainan54
0
124
Member Avatar for gofinmath

I need help for my c# hw. I have no idea about it. It is due on Sun night. Money for helping me is negotiated.

Software Development c#
Member Avatar for rapture
0
94
Member Avatar for Doops

ok, I have created a mobile application for a java enabled phone. I want to make the classic pong game with one paddle, and a number of blocks to break. I have managed to get the ball bouncing around the screen and off the block using a set of if …

Software Development java
Member Avatar for mjta18
0
156
Member Avatar for Acidburn

Hey guys, I've an issue when it comes to multithreading i seem to get this error after updating a variable... [quote] Cross-thread operation not valid: Control 'progressBar1' accessed from a thread other than the thread it was created on. [/quote] Basically I'm trying to use a progress bar indicator to …

Software Development multithreading
Member Avatar for dickersonka
0
99
Member Avatar for invisal

I am trying to make a simple engine with WinAPI and I encounter this problem: [code] class Window { .... public: [COLOR="Red"]static HINSTANCE hInst;[/COLOR] .... }; .... .... .... int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; [COLOR="Red"]Window::hInst = hInstance;[/COLOR] .... .... } [/code] The …

Software Development c++ visual-studio
Member Avatar for invisal
0
245
Member Avatar for barclays82

I've been given this work to do for uni, can somebody give me some hints how to start it? 1. In order to demonstrate your understanding of Object Oriented Programming within a visual environment you are required to create an object oriented graphical program to simulate a simple telephone network. …

Software Development vb.net
Member Avatar for waynespangler
0
106
Member Avatar for JustLearning

The function that I am having a problem with is in the middle of this seperated from the rest of the code. [code=c++] #ifndef GRAPH_H #define GRAPH_H #include <string> #include "queue.h" using namespace std; class FileOpenError // Exception class -- cannot open input file { }; struct EdgeNode // Structure …

Software Development c++ open-source queue
Member Avatar for Lerner
0
669
Member Avatar for jorgejhandal

hello Im starting into programming and Im triying to program a pic to collect pulses, and for each pulse it accumulates 10 but when I start a new pulse sequence it repeats itself again and again till the memory fills up and gives error, the problem is that I cant …

Software Development visual-basic
Member Avatar for jorgejhandal
0
92
Member Avatar for Sheryl99

I've written a UserControl, and within that control the user is able to change some properties on a form. I can't figure out how to display the changes in the property grid. The only time I've been able to update these properties, is in the UserControl's Load event. This won't …

Software Development vb.net
Member Avatar for waynespangler
0
153
Member Avatar for stoymigo

Hi , what are the steps to make a .net application launch automatically when the computer is booted.I am working with c# , so a solution in VS 2003/5/8 or links would help. Thanks -

Software Development asp.net
Member Avatar for naveen_arc
0
125
Member Avatar for yair7190

Hi, i have the following script: [CODE] #!/bin/perl -w use strict; $ENV{"PATH"} = ".;" . $ENV{"PATH"}; print "Revesing the history file...\n"; print reverse <> history.txt > history_rev.txt; print "Reversing the XpressClients file\n"; print reverse <> XpressClients.txt > Xp_clients.txt; print "Parsing the XpressClients file...\n"; require 'Clients.pl' Xp_clients.txt > clients_file.txt; [/CODE] the …

Software Development perl
Member Avatar for yair7190
0
163
Member Avatar for mrjoli021

I have a 2d char array and i need to find the position of a specific char in the array. what method can i use. return Arrays.binarySearch(this.matrixCopy, "S"); does not work it keeps returning -1 when there is an S in the array.

Software Development java
Member Avatar for stultuske
0
117
Member Avatar for Puliver

Hi, I'm curently creating a command line tool in VC++ 2008 Express Edition for myself which requires reading many files and merging them together. Everything is OK and during debugging (F5) there is not a single problem, but at run time (ctrl+F5) a problem with fread occurs at the same …

Software Development c++
Member Avatar for Puliver
0
474
Member Avatar for Kcube989

how can i make the computer block when im about to score, like do something like this XXXO? and how can i make the computer to make an OOOO for it to score too? im not allowed to use internet libraries in this one, need help

Software Development c++
Member Avatar for Freaky_Chris
0
74
Member Avatar for fatnickc

I'm about to start writing a genetic algorithm program which will be able to find the highest/lowest/whatever else values of variables required for an equation, and have come upon a point about which I am uncertain. I do not know whether I should store and work upon the values as …

Software Development algorithm c++
Member Avatar for fatnickc
0
120
Member Avatar for obscured47

Hi guys, I have a type that implements an abstract class that is known at compile time and I want to construct at run time an instance of the type and place the reference in a variable that is of the abstract class's type. So, to describe it a bit.. …

Software Development
Member Avatar for obscured47
0
144
Member Avatar for Jason123

I have a qns. How can i take out the number in a basic string input and assign them into different integer variable? Not a file input example - string input = "23/4/56" or "23.4.56" int a = 23, b=4, c = 56 [code==cpp] #include <iostream> #include <string> using namespace …

Software Development c++
Member Avatar for ArkM
0
179
Member Avatar for amitj

I fetch the data datafrom database in to a datatable and bind it to a datagridview.Now I want to edit the data shown in the datagridviewand also want to add new rows in dgv.The editing part is going ok but I m not able to add new rows in dgv.Also …

Software Development
Member Avatar for Jugortha
0
175
Member Avatar for l_03

hello guyz,, i am really confused,,,we are about to make a program in java,,,we are making an ATM,,,however i am confused because i only have a transaction in ATm once and i dont remember much because it was 3 years ago... before i start,,i want to ask... what is in …

Software Development java
Member Avatar for stultuske
0
139
Member Avatar for chamaca24

I made this program but I need to figure out how to exit the program if the user does not input A,B,C,D, after three attempts. I'm new at building programs and I would be grateful for some help! #include <iostream> using namespace std; char studentAnswers(int); int main() { int i; …

Software Development c++
Member Avatar for skatamatic
0
151
Member Avatar for Syrus_Jones

ok, i've got a question that i'm having trouble with Write a program that generates the factors of a number entered by the user. This program has the following requirements: 1. The user must enter a positive integer. If the user enters something else, your program should output an error …

Software Development c++
Member Avatar for skatamatic
0
819
Member Avatar for ryan311

im beginner in visual basic can anyone help me please? i have 1 command botton and 1 picturebox my command button name is Switch every time i click my command button Switch the image in the picturebox change for example i have already an image in the picturebox Sunset image …

Software Development visual-basic
Member Avatar for QVeen72
0
108
Member Avatar for trashed

Hi all. I am attempting my first Gnome applet creation and I found a great tutorial at [url]http://projects.gnome.org/ORBit2/appletstutorial.html[/url] . Unfortunately, I am stuck where the example goes to load an image. I can compile the applet and make it run but when I add it to the Gnome bar it …

Software Development c
0
107
Member Avatar for Chaudharybilal

Hi i am bilal n i am new here i need to make a program on Human simulation....... Well what i need is a code. when i am executing a program like am printing 'x' for infinite many times during execution when the console is printing x infinitely what can …

Software Development c++
Member Avatar for Chaudharybilal
0
126
Member Avatar for love_dude1984

hi everyone.. i just want to know which of following operator can't be overloaded. a)== b)++ c)?! d)<= hoping for a Answer ASAP with explanation.. thanks..

Software Development c++
Member Avatar for MosaicFuneral
0
68
Member Avatar for vadrag

Write program in C that would read 3 figures from the 1 up to the 999 and him it presents all in a line from smallest in biggest.

Software Development c
Member Avatar for devnar
0
99
Member Avatar for BestJewSinceJC

parseInt does not seem to be throwing an exception when I pass a letter of the alphabet to it. I assume this is because ASCII letters are treated as integers. So my question is, is there a method that will do this: boolean isLetter(); And if not, how do I …

Software Development java
Member Avatar for ~s.o.s~
0
112
Member Avatar for SQ89

The sequence Fibonacci numbers begin with the integers 1,1,2,3,5,8,13,21....where each number after the first two is the sum of the two perceeding numbers, i want to write a loop to display this sequecnce numbers less than 500 . do we need to write 2 loops ? its not working for …

Software Development c++
Member Avatar for ArkM
0
76
Member Avatar for indiansoil

Hi, I have decalared a structure named record as given below and also created a function called read() inside the structure. The function works fine when I call it using this statement: myRecord.read(); but I want to create one more function which can be called to initilize all the variables …

Software Development c
Member Avatar for gagansharma
0
247
Member Avatar for shyka

Write a C program to output the product of the the digits that make up the number. example.123=6and1167=42

Software Development c
Member Avatar for gagansharma
0
258
Member Avatar for abhaydiwan

I need a program that reads in each line of an input file into an array strings.The program should then quick sort the array and output the sorted list to a file. Please help me in this ASAP.

Software Development java
Member Avatar for wimper
0
130
Member Avatar for laki234

ok .guys .i m sorry for my previous msg.Can anybody tell me how i can take user 's value,then divided into 8 groups and then i have to make node for that 8 values.Here is my code [ICODE] #include<stdio.h> struct node { long int data; struct node* llink; struct node* …

Software Development c++
Member Avatar for MosaicFuneral
0
117

The End.