43,549 Solved Topics
Remove Filter ![]() | |
I am doing a homework assignment in which we have to get an undetermained amount of numbers from the user. I was wondering how to tell when the user is done entering numbers and wants to exit the loop, such as perhaps a blank space or a word like 'quit'. … Software Development c++ | |
Can anyone help me out with the code. I'm getting the Null Reference Object Exception at the following line textFile1_Paras[paraNumber] = line; I'm trying to separate paragraphs from a text file into string array [code] int paraNumber = 0; string[] lines = File.ReadAllLines(filePath1); foreach (string line in lines) { while … Software Development | |
I am having trouble using cin.getline and classes. Here is the code[CODE] #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <fstream> using namespace std; class RememberPlans { public: string date; string subject; string resources; string description; }; RememberPlans nds; // Function Prototypes bool enterPlans(RememberPlans& nds); void exportData(RememberPlans& nds); void … Software Development c++ ios visual-studio | |
Hi all, I'm researching how to move data from a C#.Net web program into our accounting MAS90 database and back. I can do this manually, what I want to attempt to figure out is how to make the system do it without me having to hit a button. I'm hearing … Software Development | |
I am some-what new to programming in python, and i'm trying to make a game but I need to know some of theses thing. Sprites I have sprites created, but how do I import them and print them on the screen? Movement I am completely clueless on how to make … Software Development python | |
hi guys how r u doing .. i am trying something in java .. i want to know if there is a way to the java looks into the current year. i want to be to return the age of someone after filling in his birth year .. and then … Software Development java | |
I'm from a C background and need help with the following lines of code [CODE] struct IGame { // Summary // Entry function used to initialize a new IGame of a GameMod // Parameters // pGameFramework - a pointer to the game framework, from which a pointer of ISystem can … Software Development c++ | |
Im trying to make a counter that tells how many times a name appears with array. I am using a scanner that read the names from a file and stores it an array. It then uses random class to pick a random name. I then stored all the names that … Software Development java | |
I have made a base class and a derived class and I am having a couple compile errors. [QUOTE]SavingsAccount.hpp(9) : error C2512: 'Account' : no appropiate default constructor available[/QUOTE] What i want to do is be able to give the savings account an inital balance and it changes the currentBalance … Software Development c++ | |
ok what i need to do is to make a script function which allows me to change the records in a file. I read some other posts about using sed but i still could not get it to work. The function runs But nothing changes in my file. This is … Software Development shell-scripting | |
hello everybody, I am installing some (~10y old) research software which must have been using vb4, because when I started installing it failed because it was looking for vb40016.dll (got that) than oc25.dll (got that one too), and then PUSHHELP.VBX. This is where I got stuck, there a lot of … Software Development visual-basic | |
Im getting these two errors, here is the whole code besides the edits and i know the edits works so their not important here. Error 6 error LNK2019: unresolved external symbol "int __cdecl loadArray(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const (* const)[2])" (?loadArray@@YAHQAY01$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main Q6_A1_CODE.obj Error 7 fatal … | |
Okay, I am a new student (to Java--well programming in general) and the first assignment we have is to create a program that computes the future value of an investment based on three user inputs (principle deposit, interest rate, and length of term in years). First of all, I am … Software Development java | |
I'm new in Java and supposed to write a program that prints a number into a diamond shape. It doesn't print correctly, can someone point out where I'm messed up? [code] private static void diamondOfAsterisks(int number) { int spaces = number / 2; int stars = 1; int row; int … Software Development java | |
hi i have vb program in client connect with vb program in the server by winsock clinet will send data to the server and server will add data to the data base access data base how i can work with access in vb 6 program ? how can i add … Software Development client-server visual-basic | |
I need a code that when I'm given two number, the computeer gives me back 4 integers ex) user gives me: "3 & 6" The computer displays back: "3,4,5,6" Software Development java | |
I'm VERY inexperienced in programming, I'm just learning the very basics. Anyways, I just figured out how to add a "pause" line to keep the program from closing as soon as I run it, but now there's a nasty "Press any key to continue" after my text. Is there a … Software Development c++ | |
Hey ya'll For one of my assignments I gotta produce some small VB programs. One of them has to be a menu. A menu that does whatever I want it to. I can't find any tutorials that help :| I have [B]Visual Basic.Net 2003.[/B] I know how to ADD the … Software Development vb.net visual-basic | |
Hi, as you can understand from the name, I am new in VB. So I have 2 questions regarding buttons: 1: I have an array of buttons created like this in the code: [CODE]Dim buttons(10) As System.Windows.Forms.Button[/CODE] I need whenever each one of these buttons is clicked to invoke the … Software Development vb.net | |
Hello everybody! I am new to the site and to java. I am in week 2 of my java class now and still not sure if I am enjoying it. Unfortunately I would say it is my weakest link in the IT field so I picked this class on my … Software Development java | |
How can I exchange 2 variables values without using any 3rd temporary variable. Software Development c | |
OK, yeah u guessed it. VBnoob here. Like so many other poor souls, lost in a sea of code...heres the dealio- I know param's need to be completely done and in the correct order for executeNonQuery() to work, but here's my error: Exception Details: System.Data.OleDb.OleDbException: No value given for one … Software Development open-source vb.net | |
When I double click on a slide, how do I pass the filename of a selected image in a form, to another form? [CODE]public void DblClickSld(object sender, System.EventArgs e) { frmZoom fZ = new frmZoom(); MessageBox.Show((string)((AxSlide.AxSlide)sender).FileName.ToString()); fZ.Show(); }public void DblClickSld(object sender, System.EventArgs e) { frmZoom fZ = new frmZoom(); MessageBox.Show((string)((AxSlide.AxSlide)sender).FileName.ToString()); … Software Development | |
I am doing a shell script to be able to read some records from a file, then ask the user to input a name. The script should then be able to search the records and only print out the requested record. I have figured out how to print the records … Software Development shell-scripting | |
Hi, I have some images that has to be displayed on a form from a dynamic folder using control array. The controls display 5X3, that is 15 images on one form. How do I display the next set of images using Next button, and go back to the previous set … Software Development | |
Im trying to add a subtotal to my script but i cant think of a way , i tried adding another function to it so it would calculate the subtotal as i go but it wont happen ... . Also i tried returnig the value of this function to another … Software Development c++ | |
I'm using the writeAlltext method to save a text file with the contents saved in string variable namely textFile1. File.WriteAllText(saveFileDialog1.FileName, textFile1); However for each blank line i'm getting two boxes in the output text file. I need to keep the formatting as it is while saving a file. the blank … Software Development file-system | |
[COLOR="Red"][B]I have A project and I need someLibraries in opencv and join it with c++ but I didn't know how to but it Is there any books can help me and where can I find the libraries for opencv?[/B][/COLOR] Software Development c++ | |
Hi, I have a small problem... I'm developing a small application (very similar to the Windows Task Manager) that I want to be able to control other application windows (Bring them up, change focus, minimize them and so on). I don't know how to control the other windows, but I … Software Development vb.net | |
i have been using CreatProcess in my program to initialize another program with two command line arguments as C:\\Documents and Settings\\xyz.exe and 2 so the code i am using is [code=c] CreateProcess ( "C:\\abc.exe", " C:\\Documents and Settings\\xyz.exe 2", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi ); [/code] but … Software Development c | |
Hello, have a good day everyone. I am confused if what elements are to be inserted in a queue. Are only numbers can be inserted in a queue? Are letters or word(e.g."Subject") can be inserted in a queue? Thank you ahead everyone. Have a nice day. | |
Hi all i am a newbie in development I have a window application in vb.net in VS 2003 there is a tabcontrol which has three tab pages. i want that user was not able to change tabpages by clicking tabcontrol rahter than it is done by clicking button on tabpages … Software Development vb.net | |
Hi, I have I am trying to create a program for my lecturer, who has asked me to create an application containing a number of different class that all inherit from an abstract class. This has been completed and encapsulated, however in writting the application that utilises these classes I … Software Development oop | |
Hi, I am using a WebClient to FTP files to a server. A question I have though, is how to create a new folder on the server. There doesn't seem to be any option with a WebClient. Thanks in advance! MrGreggles EDIT: Don't worry, I sat down to eat an … Software Development apple | |
I am trying to figure out how many ways you can go if you only take one or two steps. For example. If the number is 4 there are 5 ways you can move going one or two steps. I have to do it with recursion. I have the following … Software Development java | |
Hi, The program I'm making to teach myself C++ uses a user-specified file and then does the opening and read/write whatever stuff. The error i get is this when trying to compile the read_file.open(in_file) line: "no matching function for call to 'std::basic_ifstream,char, std::char_traits> >::open(std::string&)'" Please help Thanks [CODE=C++]#include <iostream> #include … Software Development c++ | |
I want to accumulate time into a variable (Time1) and have it count hours, minutes and seconds. It should not carry over to date when it passes 24:00:00 but should go to 25:00:00. For example, if I have 22:00:00 hours on a project and spend another 10:00:00 hours the total … Software Development visual-basic | |
![]() | Hi, I have this sample program where the compiler gives me error for the break statement. The error is " misplaced break in afunction" Could anyone help me understanding why the break statement gives an error? i understand that u can use break in a for , while loop etc., … Software Development c++ |
:'( hi guys hope you can help i have written a small project used to simulate a cash reg however i have 3 froms on it ,main,checkout and about my problem is that if i move my main form to say left had of screen when i click on checkout … Software Development visual-basic | |
Is it necessary to have the "All files" option in the dialogBox. I tried removing it but it won't compile. gives some sort of error this.saveFileDialog1.Filter = "Document Files - (*.txt)|*.txt|" + "All files (*.*)|*.*"; Tried removing the [+ "All file ] onwards string. this.saveFileDialog1.Filter = "Document Files - (*.txt)|*.txt|"; … Software Development | |
hi i have just begun C++. I already put some time in learning this so i now a few basics like creating a class and pointers and such. but ive only been able to get a simple dos-window. I know there is a window.h class that creates normal windows but … | |
Hi, Something new from me: I have an application which can act as server and client (launch them on separate PCs). I need the server stdout because it displays some data for evaluating their communication. I start the server through a [B]subprocess.Popen[/B] giving its stdout to [B]PIPE[/B] [CODE=Python] from subprocess … Software Development client-server python | |
I have to write log entries through my app (ASP.NET -VB-) In my understanding that's what I do: created a DLL Message library, then I've created certain registry entries, and insert the log entry using System.Diagnostics.EventLog.WriteEntry method on my app, then, it insert the entry but seems to be wrong … | |
I am creating a script that allows me to calculate the future value of an investment at the end of x years, but I am having a little trouble writing the summation syntax in my script. I am not familar with the sum syntax so I do not know how … Software Development python | |
I want to show some information to the user in a nonmodal form. Basically just like a message box (doesn't even need buttons) except nonmodal (and doesn't beep). I could probably create a form from scratch, but I would think this type of form already exists somewhere in .net?? Software Development vb.net | |
I am using VC++ 2008, and i am programing a little software to search for a folder and open it. My problem is i have no idea how to open a folder. Please help Software Development c++ | |
Hi, I have a label on my form but when you type in the text it all stays on one line. So i set its max size to force it to tab the text but it only shows two lines. How do i set it to allow me to enter … Software Development vb.net | |
I'm a computer science major with a background in C++, not Java. My professor told the class that the Scanner class has a nextInt(), nextDouble(), nextFloat(), etc for every primative type. But whenever I try to use nextChar(), the compiler gives me an "undefined symbol" error. That means that there … Software Development java | |
Hello, Thanks in advance for any help. I am running a fairly good-sized MPI-C++ code, and I am getting a frustratingly unreproducible segfault. I am also having trouble with gdb (I think because of my MPI implementation), but I think the problem may have something to do with the fact … Software Development c++ | |
hi, i have 2 txtboxes n 1 label, a division if performed wid txtbox1 and txtbox2, then the result displayed in a label. How can i format the label to display it to 2 dp. my current code is as follows: [code] Public Class Form1 [INDENT][/INDENT]Private Sub btnExit_Click(ByVal sender As … Software Development vb.net |
The End.