132,726 Archived Topics
Remove Filter ![]() | |
Hi, Merry cristmas and Happy new year to everyone. I am writing this because i am having problems with my compiler Borland C++ Builder 6 Evaluation Version :-( The problem is that after I have designed a GUI program, Build it and run the executable, Windows declares a Stack Overflow. … | |
Hi, I'm a bit stuck on getting 1 function that's not inside any class or function, accessible or callable to everyother part of the program, from within classes and the Main function.. i've tried to make it global but i'm not sure on how to make it work and it … Software Development python | |
[B]why is this keep giving me same 2 numbers?[/B] [code=cplusplus] #include <iostream> #include <iomanip> #include <ctime> #include <cstdlib> #include <windows.h> using namespace std; int generate(int,int); int _tmain(int argc, _TCHAR* argv[]) { int random[1000]; for(int n=0;n<1000;n++) { random[n]=generate(1,50); cout << random[n] << endl; } system("pause"); return 0; } int generate(int min, … Software Development c++ | |
hi there, I am trying to make my service to insert to a database when it starts as follows : [CODE]protected override void OnStart(string[] args) { base.OnStart(args); string query; id += 1; SqlCommand comm; conn = new SqlConnection("my connection string"); query = "insert into myTable values('" + id + "'lamya'" … Software Development c# | |
I have done most of languages, I did arrays[] to all of them and of cause except COBOL, I can declare them(arrayz[]) yes that one is easy, but manipulating them thats where the problem starts, I never get any program right if I have to use arrays, Im not gona … Software Development c++ | |
i am working with a matrix manipulation program...consists of a matrix class and its member functions.. i have also overloaded << and >>...so dat dey can read and print d whole matrix at one statement.. the code of these overloaded operators is something like this.. [CODE] // for >> (cin) … Software Development c++ | |
Hello! Trying to use regexp in glib but I cannot get it to work. I would like to have a regular expression to describe: [2003-03-11 13:14:12.111] letters letters.:1234 Hello I have tryed the following expression in 'regular expression testers' and there this works: ^\[\d{4}\-\d{2}\-\d{2}\s\d{2}\:\d{2}\:\d{2}\.\d{3}\]\s\w*\s*\w*\.+\w*\:\d{4}\sHello But not with glib's regexp. Why … Software Development c++ | |
I want to display an image right after the dialog is drawn and keep it for like 3 secs (an intro). I know how to do everything but i can't find a message that is sent when the MFC dialog is displayed, "NOT" about to display. I can show messages … Software Development c++ | |
can anyone please guide me with the code in VB6.0 how to retrieve values from binary files to to measure rise time of a waveform . Software Development visual-basic | |
hi.. im using vb.net can u guys help me.. i dont know why error still come... whats wrong with my coding? dis my code [B]Public Sub UpdateMember(ByVal membername As String, ByVal address As String, ByVal handphone As String) ExecuteSqlCommand("update member set tmembername=" & membername & ", taddress='" & address & … Software Development vb.net | |
how can i make the program print stars instead of typed letters. like password. for example enter the username: mike enter the password: **** **** = 1234 mike will go to a username variable and 1234 will go into password variable thanks Software Development c++ | |
On C++ we have two different types of function which are non-returning value or void function and returning value function and what I would like to know under which condition you use either of those functions, and when do you know that you have to pass by reference(ByRef) or by … | |
I know this seems like a very noobish question and has probably been asked many times before, I'm trying to write a lottery program in which the numbers are generated, then you can check your numbers. There is a command button on the first form which says "Check Numbers" and … Software Development visual-basic | |
Hi, Suppose I have a character array array1[]={A,B,B,B,A,A}. Now I want to declare a structure with a pointer in it and make each array1 element point to the previous element.For example last array1 element 'A' will point to the previous 'A' which will point to 'B' and so on. Can … Software Development c++ | |
I have developed a small web application in c# and want to convert it to HTA (Hypertext Application).. Can any body help me by telling how to start with this... Software Development c# | |
I'm trying to use composition. I included the header file and made a type of the class that is contained within the owner class but I keep getting errors like this: [QUOTE]c:\documents and settings\cheryl\desktop\parking lot system\person.cpp(7) : error C2614: 'PERSON' : illegal member initialization: 'DATE' is not a base or … Software Development c++ | |
I am beginner at java.I want to learn jdbc-oracle database subjects.By downloading jdeveloper and sqldeveloper I started but I couldnt connect database.So I want to start learning jdbc-oracle from begin.I need your advices.thanks. | |
Hello i am using AES to encrypt/decrypt data/ pixel values.. saved in a file myfile.txt and the AES encrypts tha data and writes the ciphertext in a file ciphertext.txt When decrypting the data i am getting some of the pixel values decrypted correctly followed by garbage.. Code to open myfile.txt … Software Development c++ | |
I have a base class name Elec, and 3 derived class.....capacitor, resistor, and series_circuits. I also used composition on class series_circuit to use capacitor and resistor object. In series circuit, i have declare an elec pointer to object.....Elec* *component. in the implementation, somewhere i wrote down component=new Elec*[10];..in another method, … Software Development c++ | |
Alright, so I'm having some trouble with ye olde factorials. "bool C++ beginner=true", folks. I'm struggling with this here problemo. Here's the formula I need to compute : C(n,k) = n!/k!(n-k)! And I have no idea how to go about this. First, I have to implement a function for the … Software Development c++ | |
I followed the book to finish this 2 node linked list, and however it looks like there is only one node in it. (temp has replaced the head???? my book example coded this way which i don't fully understand) Is anything wrong in here? And i think my output function … Software Development c++ linked-list | |
hi, I have a XML in a String coming from an external input. The problem is that this string is getting some junk characters appended to in the last. I need to find the lenght of the string only till the correct part. once i get this lenght i can … | |
I have to make a program that takes a user entered deposit and interest rate and then calculates the balance for 5 years. I can't figure out what I'm doing wrong. I always use the deposit amount of 1000 and interest rate of 5 therefore for the five years the … Software Development assembly | |
Okay I am trying to create a program that takes in 10 integers, then prints out the Max integer and the Min integer. The first loop reads in the 10 integers and the second one is supposed to print out the Max and Min integers. The problem I'm having is … Software Development assembly | |
This code tells what position the cursor is in a textbox. Let us say that this position is 10. Now is my question, is it possible to know what character it is if any on position 9 in the textBox. Is it possible to put the character on position 9 … Software Development c++ | |
I got a text file and saved it in python25 (a folder) as .txt. I need to import this file and I am getting syntax error that file is not defined. I am a complete biology novice to defining and importing files. Please help! Software Development python | |
i need to create a system to read the txt file data to datagrid but i just know read by line. that say the sample.txt file pettern as below: date time price 1/8 2:15pm $5.00 2/8 3:20pm $6.00 how i going to fill the data separate by date, time, and … Software Development vb.net | |
Hi all, I am new to this VB programming stuff, so far so good, but this last project of the semester has me wanting to pull out my hair, and the textbook is more aggrevating. I am wanting to pull info, that is typed in a inputbox, and put it … Software Development pay-per-click vb.net | |
class Person:IComparer<Person> { int age; public Person(int age) { this.age = age; } public int Age { get { return age; } } public int CompareTo(Person p) { return 1; } } ArrayList al = new ArrayList(); al.Add(new Person(9)); al.Sort(); it throws an error: failed to compare 2 elements in … Software Development | |
Hi all, I've recently had some issues with the streaming operator and the order of precedence used when mixing it with the member function operator (operator .) Example code is below. [code=cpp] #include <iostream> #include <vector> using namespace std; class A { public: A() : i(0) {}; int f() { … Software Development c++ | |
Hi,I am implementing graph ,all function works except the Hamiltonian part(1 function and 2 private method).Every time i compile,it shows two error message,,i don't know how to use adjacency list or is there any way to implement it using the class declaration as given above...I have main problem on my … | |
Is it possible to [COLOR="Red"]get [/COLOR]the cursor position in any way in a textBox and also [COLOR="Red"]set [/COLOR]a Cursorpositon. I have tried out this syntax but am not sure if this is correct: I dont know what this returns. [code] textBox1->Cursor->Position::[COLOR="Red"]get[/COLOR](); textBox1->Cursor->Position::[COLOR="Red"]set[/COLOR](); [/code] Software Development c++ | |
I'm getting pretty bored with the straight-forward database work we're learning in school. I've got very solid understanding of intermediate C++ concepts, but we have yet to implement any graphics! When I was a lot younger I mastered QBasic (which isn't much of a feat) so I should have a … Software Development c++ | |
I wanna create a titlebar in visual basic so everytime i create new form, it wont add default windows xp look but the new title bar what i made. can anyone help me how to do this. any code will be appriceated i know how to do it for one … Software Development visual-basic | |
If I have a textBox that contains this information below wich meens 2 lines. What I am trying to do is to search this textBox with a while loop for the word: "five" and when found this word, I wonder if this word has any kind of substringindex where I … Software Development c++ | |
write a program that reads the number of student from keyboard. Then it reads each students name, family name and average and keep these values in the memory. Then the program will sort students according to the choice of the user. You must also format the uppercase/lowercase according to the … Software Development c | |
I am implementing code to program a hangman game in C++ for my CSP class. So far, I am working on the random string function as well as calling the body parts as void functions. I am attempting to compile what I have as of now to see how it … Software Development c++ visual-basic visual-studio | |
Hi I am using C# - Windows Application wat my requirement is i have the gridview in my form and also i bind the table to gridView 1 ) how to select a row in the gridview... wat the code... then wher shall i write the code..? 2) if i … Software Development | |
Hi all, In my program I am using RMI call to a service in a remote host. My program runs without any exceptions from within eclipse, since I have all the packages and jar files in my build path. However, the program needs to eventually run from the command line. … | |
Hi there, can a service written using C# to open another application written using C# too , In other word I wrote a service which I need to open forms and do more , so I had a windows application to perform all what all I want, but I do … Software Development c# | |
Need to be informed on how to code and also how my coding should follow.If possible need to be shown with an example of how to code.Ihave never done this so please assist me. Software Development c++ | |
i seem to have messed up on the out put some how [code] #include<iostream> #include<cmath> using namespace std; char ans[16]= {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}; int digit2value(char); char value2digit(int); int conversion(int, int, int); int reversing(int p[],int i); int main(){ int radixa,radixb,number; cout<<"radix a(10) ";// i am going to changing program cin>>radixa; // after i … Software Development c++ | |
Hey - sorry if this is the wrong place for this. I have this basic chess game I'm making, and I'm done with the first alpha build of it. It works fine when I compile it on my own computer, but when I bring the exe to a different computer, … Software Development c++ | |
I am working on a GDI+ application in VB 2005 and can’t seem to find a solution for a problem with graphicspaths. This is a Windows application and I am allowing the user to freehand draw on a picturebox which has a background image loaded. I want to allow the … Software Development vb.net | |
I have a wondering that if I write a specific word in a textBox in C++ .NET like for example the word: "Name" What I wonder here is that when writing this word it will turn to the color of blue when the word is written. So if there is … Software Development c++ | |
[QUOTE]Hey all, i'm having a bit of trouble with this - it's a program that should display the factorials of all numbers from 0 to k in the range 1-10. here's what i keep getting: Enter a number to see factorials for: 10 10! = 100 9! = 90 8! … Software Development c++ | |
I am trying to create a program that will do address standardizing. I have to compare two files. One file is a master file that has all the correct info I will need to use. The other file is a collection of data received from seperate individuals. Not all individuals … Software Development visual-basic | |
My instructor at my engineering institute has given the following assignment question: Create a database of scientists and labourers and maintain the same by making use of inheritance. We haven't been taught the database connectivity with program execution, so that's not to be used. I wrote the following code: [code] … Software Development c++ engineering | |
I've been working on this script all weekend and am almost done with it accept for one last detail; implementing a "process another number?" prompt after a user input is processed. The script works like this: First, the user enters a number to test (to find the two prime numbers … Software Development python | |
I have a from created to fill out and print. I have the form size set but when I run the program I cant scroll down to fill out the bottom part of the form. I have added a vertical scroll bar to my for but it does not move … Software Development visual-basic |
The End.