132,726 Archived Topics
Remove Filter ![]() | |
I have a query I am currently working on a program with a lottery theme I will post the parameters as well as my code thus far. A lottery requires that you select six different numbers from the integers 1 to 49. Write a Java program that will do this … Software Development java | |
I'm doing a homework assignment... I have two files. Payroll (the class) and myPayroll. I run myPayroll and it does everything except return the employee's name and ID number. I'm supposed to pass those values to the constructor... but i'm at a loss as to how to do that. First … Software Development java | |
Hi, I keep getting an error in Visual Studio C++. I am trying to create a copy constructor but keep getting this error. "Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, and indicates a bug in test.exe or any of the … Software Development c++ visual-studio | |
The section, of my program, that has to do with the error extracts a description from an html file or site. We are to find it based on three criteria. I have two down and this third one is giving me problems. I tried to create a DescripChars object in … Software Development c++ | |
I will give a simple example inspired from my problem : void change(int *x, int *y){x=y;} int main(){ int *xx,*yy; yy = (int*)malloc(sizeof(int)); change(xx,yy); if(xx == NULL)printf("is null\n"); else printf("---- %d ----\n",*xx); .................................................. ......... xx doesn't point to the value of yy (*yy) , the program prints "is null" . … Software Development c | |
Can it be done? cout<<"ENter name"<<endl; cin>>name; cout<<"Enter DOB"<<endl; cin>>dob; cout<<"Enter City of Birth"<<endl; cin>>city; when i try to enter "John Doe" as name the program skips and doesn't let me enter anything for dob and asks me the city input. Any help would be greatly appreciated. Thanks! Software Development c++ | |
Hi Everyone, This is my first post and I hope I followed all the guidelines correctly. This is an assignment for a class. I am supposed to read integers from a file, enqueue or dequeue them and then write them out to another file. The main method calls this Work … | |
Hi guys, this 2D arrays is not making sense to me. Some how I am just too confused. What am trying to do is average the rows in 2D array and average the columns in the 2D array seperately. Here is the code snippet that I have trouble implementing. The … Software Development c++ | |
What is the way to change size in a cell in dataGridView to 8.25 This does not seem to work. [code] dataGridView1->Rows[b]->Cells[10]->Style->Font->Size = Font->Size(8.25F); [/code] Software Development c++ | |
Hey all, I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this: [CODE]array[2] = array[1]; array[3] = array[2]; array[1] = result;[/CODE] However, … Software Development c | |
Is there any way through which I can split a single string into substrings with 20 characters each. The first string should contain first 20 characters. The seconds string should contain the next set of 20 characters and so on. Is it possible to do what I'm thinking? Software Development visual-basic | |
If I create a database that has 3 fileds per record; [I]String1[/I], [I]String2 [/I]& [I]ResultString[/I]. I want the user to enter in the first 2 strings then the program creates ‘[I]ResultString[/I]’ by adding the String2 to String 1 itself. Ie if you enter Big as [I]String1 [/I]and Cat as [I]String2 … Software Development visual-basic | |
I have written a program, it uses a lot of replace funtions with huge amounts of texts. Resultingly, It takes hell lot of time to operate. Is there any way I can increase its speed? Software Development visual-basic | |
[B]hi everybody im new here and new in vb also and i need some help to learn vb.can i find somebody to help me ? plz.thanx.[/B] Software Development visual-basic | |
![]() | hi again i have been learning about algorithm solving and designing from the website [URL="http://www.ece.uci.edu/~chou/py02/python.html"]here[/URL] i sort of understood the first code but before i went on any further i wanted to understand it the code is [ICODE]def InsertionSort(A): for j in range(1, len(A)): key = A[j] i = j … |
OK im ok with some baisc codeing but i cose to go a little farther and write some more in detailed stuff so i started making a few fuctions. iv done this once before, but i cant remeber what i did diffrent. The function takes a file and reads each … Software Development c++ | |
Does CWnd::GetClientRect() include the toolbar region? Whenever i use InvalidateRect(), i pass the entire client region for repaint, inorder to retain the client window contents : [code] InvalidateRect(NULL); [/CODE] But this affects my toolbars ( my application has two toolbars. ) - they disappear. I think it is because of … Software Development c++ | |
I have tried several things, but I just can't get this to work. What I need is a snippet which scans a program for value X, and then simply assigns a varible within the python script to the X value. I'm new to Python, but not to programming. Please be … Software Development python | |
Hello... is there any way of making java listen or capture an F-key input? i mean, like, if the user presses F5, a new panel will come up and that sorts of things... thnx Software Development java | |
I have been having significant trouble starting this project where i need to create a databse library to access an sql database. I am working in vs2008 and I should be able to just edit my app.config file and use my ODBC connection drivers. If anyone could help explain this … Software Development | |
Ok ive actually got a bootstrapper going and can display text using int10h using the BIOS interrupts but im wondering is this the only way to tell the computer what to do at the lowest level, by communicating with the BIOS service interrupts, how does windows and stuff do it. Software Development assembly | |
I have a bit of code my instructor sent me as an example to look at and it is giving me approx 100 errors when I compile it all of the form 'illegal character: \172' or 'illegal character: \8224'. This is a new one on me, was wondering if anyone … Software Development java | |
Hi, I am trying to get Python to pick random letters from a given list. However I don't want any repetitions, I just can't seem to figure out how to skip on letters already chose. Any help would be greatly appreciated. Here is what I have so far [code] let … Software Development python | |
I am writing some code just for fun and I have a question about class objects. Lets say I have [CODE] class Alpha with member functions getBeta getCharlie getDelta and so on now inside main when I want to make calls to these functions is it necessary to create an … Software Development c++ | |
Hi I'm trying to generate a random number betwen any numbers (eg from 1 to 100) and I've tried this code: [CODE=c]#include<stdio.h> #include<math.h> #include<time.h> #include <stdlib.h> int NumAleatori(int max) { int num; num=((int)ceil(((double)rand()/RAND_MAX)*(max+1)))%(max+1); return num; } void main () { int N,a; srand( (unsigned)time( NULL ) ); printf(“Enter an integer:\”); … Software Development c | |
Hi...I am making a speech recognition program for my own personal use, because I don't like the way the built in vista speech reco software works. Here are my questions: 1. when I open the app that I programmed in VB, it automatically opens vista's built in voice recognition software. … Software Development microsoft visual-basic | |
I am having a problem with this project I am working on. The assignment is to create an application that will give a user the choice of displaying the roman numeral equivalence of a number between 1 and 10 or displaying a count of roman numerals from 1 to 10. … Software Development c | |
hi, is there any buitin function like ismethod, to check whether the method exists in the class. for example, Class sample: def fun(): def meth() object = sample(). passing this object(class instance) and fun(function name of class) as inputs i need to find out, whether this function is a member … Software Development python | |
I've been learning C++ in school for awhile now, and mainly using their version of C++. I decided to download Dev C++ so I could start making programs on my own. For the most part, they've been nothing short of cheezy and useless, tho fun (like a fortune teller that … Software Development c++ | |
hi guys how r u doing .. this is my first post .. i have this code .. the problem it runs .. the following happens: when it says: geef een woord (= give a word ) i write the word .. then it says geef een letter ( = … Software Development java | |
Hi, I want to add button in my form to print when click how can i do this??????? thank you Software Development vb.net | |
heya... ok, so i was browsing the net to find out if there's a good text on this algorithm, but i don't seem to be able to find one. people are obviously using it, but, hey, there's no info on it. the part i get is the theory on how … | |
Is it easy to do this? Software Development assembly visual-studio | |
Dear Sir, My project uses Ms Access as back end tool and visual basic as front end tool. I have a problem when i run my project's tmgmt.exe file more than one time then it shows tmgmt.exe file entry into taskmanager's process tab. Suppose i used that file 4 times … Software Development file-system visual-basic | |
Just for anyone, who, like me, has got along using VB6 without the mousewheel whilst editing in the IDE. Until today I just assumed it wasn't an option. There is a simple fix in the form of a free addin from microsoft. [URL="http://support.microsoft.com/kb/837910"]http://support.microsoft.com/kb/837910[/URL] What a difference!!!!!!:$ Software Development ide visual-basic | |
Could someone help me with this. How do i make a recursive program that returns sum of 1**3 + 2**3 + ... + n**3? Software Development python | |
i dont know how to post a question so that, i can create my question in this link... my question is all about how to create an oracle code database in vb6, im a student and beginner programmer... Software Development oracle visual-basic | |
Hi, all programmers of this Forum, I am using MS Axcel 2002 and I am trying to format Excel Sheet from VB so as to make a border within the selected cell. My CB code is as under and when I run this, it select the specified rangge, but no … Software Development visual-basic | |
when i ran a perl script on xampp i got this error [B]The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: sai2.pl If you think this is a server error, please contact the webmaster. [/B] Software Development perl | |
I have to doublecheck if this is the case. When using the fileSystemWatcher in the application where an event is checking for Changes in a file. With just starting the application where no changes events is fired at all the processor (AMD double core) Peeks at 50 % constantly. Is … Software Development c++ | |
I'm working on a movie class for a project. I think I've got it reading in movies from a file. I want to test it using the overloaded subscript operator, but the Driver file will not let me enter a movie title to search for. I can't think of a … Software Development c++ data-science ios | |
Hello, Im trying to make some sort of reminder program that plays a wav every 30 seconds to remind me of what Im supposed to do. [code] #include <iostream.h> int main() { system("start alarm.wav"); } [/code] Thats what Ive got so far, now Im trying to figure out how to … Software Development c++ | |
yea I know I spelled destructor wrong what can I say my fingers got in the way of my typing I have scoured the internet and tried several different ways to implement the destructor on my link list queue. I highlighted the troulesome code like this //***************************************** code //***************************************** here … | |
Hello people, Can somebody tell me how can I use ConfigurationManager? What using assembly should I declare? There is very useful [URL="http://msdn.microsoft.com/en-us/library/ms254494.aspx"]article[/URL] which features I want to use in my code but my express edition is unable to recognize ConfigurationManager, ConnectionStringSettings,... How to solve this? Software Development assembly | |
Hi I'm fairly new to vectors in C++ and I'm having some problems with them. I have a vector of vectors but I don't know why it is causing a segment fault in my program? [CODE] vector < vector<int> > grades; int temp; for(int i = 0; i < 30; … Software Development c++ | |
Is there an easy way to open an fstream using a string? My code is as follows: [CODE]bool openArray(std::string *arrayFileName, int *width, int *height,int *myArray) { std::fstream BoardFile; BoardFile.open(*arrayFileName);[/CODE] I obviously cannot use this method since *arrayFileName is not char* but is there another way to do it? Software Development c++ | |
Hi, i need to know how to create a program draw a graph once i insert a linear programming equations can it be done by java???how??? thanks Software Development java | |
Hi I need to perogram the simple Calculatotr, Acceptable operators.' + : Add - : Subtract * : Multiply / : Divide ^ : Power ( raise left oprqnd to the power of the rifgt operand ) q or Q = Quit This is a progarm that I wrote : … Software Development c++ visual-studio | |
Im trying to write a program to count characters and words when type a sentence but i keep getting "syntax error : missing ';' before 'type'" as an error. Anyone see where I'm going wrong? Thanks [CODE]#include <stdio.h> #include <ctype.h> int found_word(void); int main() { int c, nw=0, nc=0; printf("Enter … Software Development c |
The End.