43,549 Solved Topics
Remove Filter ![]() | |
hello, learner here. I have a function that checks a textbox for a value if it is below 500 or above 1000 it comes up with a message box. To invoke this I have the function at the top of a action for a button... [code] void Cal2Click(object sender, EventArgs … Software Development | |
Hi, I am writing a program that has 3 files: File 1: One.java File 2: abstract1.java File 3: child.java Child is a subclass of abstract1 and abstract1 is an abstract class. I am trying to call a method in the Child class from One.java . Currently i have this: One.java … Software Development java | |
If I know the sizes I'm using, I can declare the array as: [code]char arr[20][20];[/code] Is this correct? Well, I want to know how to insert a full string into the array of strings. I thought it might be: [code]fscanf(infile, "%s", *arr[i]);[/code] but this line gave me the error "warning: … Software Development c | |
Can anyone help me get started on this instruction for a for loop: Ask the user for 2 integers. Print all the numbers BETWEEN them and also this one When everything else works, implement a for loop that is an infinite loop I have no idea where to start with … Software Development java | |
Hello everyone! I had a quick question on how to use pictures in a VB program. What I'm trying to do is when someone selects an item in a listbox, to show the corresponding jpg file. I selected the relevant jpgs from the desktop, copied them to the clipboard and … Software Development vb.net | |
I want to enter in a bunch of integers like so: 1 11 2 12 3 13 4 14 5 56 6 80... How would I get them into an array of int? [CODE]Console.WriteLine("Enter in numbers"); string answer = Console.ReadLine(); int[] myArray = new int[answer.Length]; for (int i = 0; … Software Development | |
Firs of all hello guys.And then straight to the point :) Ok so my trouble is with creating a password function that will display '*' instead of normal chars.So here is my code: [code=language] string EnterPass() { string Pass=""; char ch=getch(); while (ch != '\r') { if(ch=='\b') cout<<'\b'<<' '<<'\b'; else … Software Development c++ | |
Hey there. I am taking a programming class using C++ and my assignment is to create "Tictactoe" using ObjectOrientedProgramming... The problem is I have no idea what I am doing... I need to have a "tictactoe" class file and a "player" class file - each with their own header files … Software Development c++ | |
Hey, I got an array with float values from 0 - 120. How can I find the first element over 100 and which element it is? Software Development python | |
Hi, Is there a way to stop the user from rezising to window ; so the user won't be able to make the window any bigger or smaller just the size i give to the window. I tried looking it up on this forum and MSDN , but MSDN is … Software Development c++ | |
Hi, I am getting an error when running a code on linux machine: "terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc Aborted" In my code i have a 2 dimensional vector defined. Can someone tell me the possible cause of error. Thanks Software Development c++ | |
Hi I get the common Undefined References error in CodeBlocks I am pretty sure The code is right. [code=c++] case WM_PAINT: { BITMAP bm; PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); HDC hdcMem = CreateCompatibleDC(hdc); HBITMAP hbmOld = (HBITMAP)SelectObject(hdcMem, g_hbmAnime); GetObject(g_hbmAnime, sizeof(bm), &bm); BitBlt(hdc, 150, 100, bm.bmWidth, bm.bmHeight, hdcMem, 0, … Software Development c++ | |
Hi, everyone! If you have worked on ACE, this is the post for you. I want to ensure that all the buffer contents of a file are on disk. So I want to use a fsync() or a fflush() function. I'm working with ACE_HANDLEs. Unfortunately, my searches concluded with this: … Software Development c++ | |
I'm working on another piece of code that did the same thing as my Dom implementation only with Microsoft's System.Xml Here's the idea, I want to take an element and insert some text into it. <nameytag> *insert text here* </slashnameytag> Currently, I have this: [ICODE]#using <mscorlib.dll> #using <System.Xml.dll> using namespace … | |
hi, basically i need to find out how many lines are in a file. would someone please refer me a quick command? i don't think wc would work since i need the line number. thanks Software Development shell-scripting | |
as part of my assignment i'm trying to validate an email address stored in an hash, with the key: 'email' and the value as the data supplied. But the email is not getting validated using reg-ex: [CODE] if($form_element{'email'} =~ m/^[A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{2,4}$/i){ $values = 0; $mail = "InValid!"; } else { $mail … | |
Hello all, Before anything else, this issue is also posted at: [url]http://www.cplusplus.com/forum/general/7518/[/url] I have a structure similar to the one below.I miss a lot of information about the specific template parameters, so I would need something like what is in the code. This code does not compile because we cannot … Software Development c++ data-structure | |
I need help writing a simple program. My Declaration is: length, width, area and perimeter. My Input is length and width. The Calculations are: p=2*(l+w) and a=l*w and my[B] Output is p and a can anyone please help me write this program. I just started out doing this and I … Software Development c++ | |
Does anyone know how i would write the code for the following instructions? Print the numbers from 3 up to 40 that are multiples of 5 Software Development java | |
I have to create a class called Day that will carry out certain functions. One of the things that it needs to do is it needs to be able to calculate and return the day by adding certain days to the current day. For example, if the current day is … Software Development java | |
So when two objects are declared say class shoe shoe1 and class shoe shoe_copy and then shoe1's variables are set, if the line of code: shoe_copy=shoe1; what would that be doing? After all what is the real data structure of the objects of class shoe? Software Development c++ data-structure | |
Hi, I could use some help. Our class assignment is to create a mortgage calculator in C++. The calcuation was provided all we had to do was code it. This is the fourth week of class and the assignment is from Ch. 2. I am sure it is not supposed … Software Development c++ | |
I'm finally getting around to using COM+ in Delphi 6 Pro, and I need a little help. My COM+ components palette has a TCOMAdminCatalog component, but it seems to be missing the other two, TCOMAdminCatalogCollection and TCOMAdminCatalogObject. How can I get them back? Did I ever have them? I've got … | |
If an explicit copy constructor is defined that makes a complex copy, does: [code=C++] int main() { class shoe shoe1; class shoe shoe_copy(shoe1); } [/code] And [code=C++] int main() { class shoe shoe1; class shoe shoe_copy; shoe_copy=shoe1; } [/code] Basically I'm asking if the assignment operator accesses the complex copy … Software Development c++ | |
First I like to thank everyone that helped me with my work... Please bear with me I don't know how to explain my problem. Trying to get the random number to remain the same through out the length of the program. When the player guess the right number the player … Software Development python | |
Hello, I wrote a program which takes CNF-files as input. It takes from 1 sec up to 1 hour to finish its task (Checking satisfiability). However, there is one CNF file which takes about 1 hours before it spurts out the message: aborted <core dumped> ... and creates an *.exe.stackdump … | |
I have an SQL2005 table loaded with ICON (image) BLOBs. I need to dynamically add ToolStripMenuItems to my Windows form including the same row Icon from the database table. This is a Plugin system where I pull the plugin file (assembly) names from the database according to the operator's rights … | |
Hi, how would I get the timer() class to change time display()'s self.time I'm new to threads and classes and have been sitting here thinking about it for the last half hour and still have know idea Thanks heaps for any help. [code=python] # Count down timer import time import … Software Development python | |
I have too collect a daily rainfall data from a certain model output. The model ouput gives out each stations daily data separately which I have to collect together and further analyse. [I have tried the following, it works but my data - thousands of pcp_#.txt which makes the process … Software Development python | |
Hi all, The program I'm making needs to basically interpret long math operations (see the attached text file) and compute them. Simple right? I have to use stacks and queues to reorder the operation into the desired output (the output will compile properly if you run the program as it … Software Development c++ file-stream queue | |
Hi, so I just have a question that I at least think will be pretty easy. So, I am making a script that basically gives you a "vocabulary test". There is just one feature I would like to implement that I need help with. I would like to make it … Software Development python | |
Hi all, I want to display a picture by moving the mouse cursor on a label or picturebox without clicking on them... How can I do that? PS: The picture would be big sized. Regards, wookinhung -VB noobie- Software Development display visual-basic | |
I did a program to read the output of the UNIX command ls -ali and count the number of directories, write files, link files etc. But there seeems to be something wrong with my code and I cant compile it. I cant seem to find out whats wrong with it. … | |
I am preparing for my a+ exams, and am turning all of my notes into a test. I plan on doing this in python, of course. But, I am a little lost at what would be best. Should I create each question as a specific function, calling the next question … Software Development python | |
im new to vb6..plz help me to solve my problem.. 1.I make a textbox that can input time 2. I have a shape in form 3. I use label to display time how can i change the color of shapes in red when i input the exact time in the … Software Development visual-basic | |
Hello there, This is my first post. I want to make a currency converter program in Java and for that i want live/real-time exchange rates. So can you please tell me how can this be done. I have full time net connection, so thats not a problem :) Software Development java | |
I have an array of array wich all have the same length. Which syntax is to be preferred : multidimensional : string[,] names = new string[5,4]; or jagged : string[][]names = new string[5][4]; Or is it, in this case just a matter of style? I searched this site and I … Software Development | |
My program needs to use exponents, however, double does not allot enough space for my numbers, is there another way to use the pow(x,y) function or is there another function for exponents that I'm overlooking? [CODE=cplusplus] #include <iostream> #include <cmath> using namespace std; int main(void) { int thresh = 10000; … Software Development c++ | |
Hi everyone, Below is code snippet to load excel file in datagrid. When my excel file is load is show unnecessary column with blank data. I did not want to show these columns. Can any help me how I will remove this column. I don't know how much blank column … Software Development open-source vb.net | |
please can u tell me how to create a software that can be used to send a email? | |
This is my code its to calculate book club points earned. i cant see where the error is if any one can help me i would be very gratefull. thank you def main(): books = getBooks points = getPoints printPoints def getBooks(): books = input("enter the books purchased") return books … Software Development python | |
Can somebody tell me the file read and write syntax. I found the following code on the net. but didnt get that. fs2.Read(fs2Content, 0, (int)fs2.Length); fs1.Write(fs2Content, 0, (int)fs2.Length); what exactly first, second and third arguement will do in above statements. pls give me some details regarding this. Thanks Software Development file-system | |
Hello I wanna ask is it possible to to us vb for building a program's GUI and c++ for its coding? | |
[CODE] class OrdArray { private double[] a; // ref to array a private int nElems; // number of data items //---------------------------------------------------------- public OrdArray(int max) // constructor { a = new double[max]; // create array nElems = 0; } //---------------------------------------------------------- public int size() { return nElems; } //---------------------------------------------------------- public int find(double … Software Development java | |
Hi am trying to make a simple application that write and read from and to a text file the problem is that i want to be able to aerch in the text file for an specific line. the text file is a list of words with a meaning each word, … Software Development c++ | |
This is homework and I am using a getfile that is just a 5 row 4 column list of numbers. I can get this program to compile and when I go to run it, I get my cout text output but without my numbers and the program crashes. I am … Software Development c++ | |
[code][code=java] public class LineSeg{ // these are the attributes of a LineSeg object private Point end1; private Point end2; private double length; // the constructor public LineSeg(double x1, double y1, double x2, double y2) { end1 = new Point(x1,y1); end2 = new Point(x2,y2); this.length=(double)(Math.sqrt((x2-x1)**2+(y2-y1)**2)); } }[/code] Software Development java | |
I used this code to serialize: [code] using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; [Serializable] public class Car { public string Make; public string Model; public uint Year; public byte Color; } public class Exercise { static void Main(string[] args) { Car vehicle = new Car(); vehicle.Make = "Lexus"; vehicle.Model = … Software Development assembly microsoft-access open-source | |
I have a code snippet that strangely works one way on a fedora 6 machine and another way on a fedora 8 machine. [code] void Form1::SendToApp() { vector<int> isciistream; vector<int> fontstream; cout<<"Entering Form1::SendToApp()"<<endl; isciistream=wwnd->OnOK(); isciistream.push_back(32); char str[255]=""; cout<<"Size of IsciiStream:"<<isciistream.size()<<endl; for (int i=0;i<(int)isciistream.size();i++) { sprintf(str,"%s%c",str,isciistream[i]); cout << "isciistream[i] :" << … Software Development c++ |
The End.