132,726 Archived Topics
Remove Filter ![]() | |
im trying to get this function to show the numbers that are not on the list in the input file, i've written this and it doesnt work, i know theres sometihng wrong with it but im not sure what it is? or how i can fix it to make it … | |
OK! i have a problem. I'm making a game with a character you control and theres monsters that move when you do and when you run into a monster i have it so you lose 1 life. (iLife --; ) i set iLife equal to 4 at the start. if … Software Development c++ | |
Hello all, When trying to export save a file i get the following error in my SaveDialog window: The bold line is where the error occurs, says: Object Required [CODE] Dim eRuta As String On Local Error GoTo errores 'dialog.DialogTitle = "Exportar Archivo" cDialog.Filter = "Excel File (*.XLS)" cDialog.FileName = … Software Development visual-basic | |
I know the how to fill a magic square but there is a problem in the code. The algorithm is like below: 1-Put number 1 at the second column of first row. 2-Put the next number one upper row and one behind column. 3-If the cell mentioned in the last … | |
Hi guys im trying to generate 5 random numbers that return a string so i can compare it to a file. so far i have this but i have no idea how to make it a string. Since i have to compare it to the file i mentioned earlier. This … Software Development c++ | |
hello I have added a checkbox column in my C1TrueDBGrid i want to check all of the checkboxes with single click i have been looking for a solution i found one for DataGridView which is to add a check box in the header of column and check all of the … Software Development | |
Hi! For the past few months I've been self-learning C++ with the book "C++ Primer Plus" by Stephen Prata. After having gotten through chapter 7, I decided to check my progress by writing a little program, Baztro. Baztro stands for Basic Astrology Tool. It asks you for birthdate(s) and will … Software Development c++ user-interface | |
Please help with this program! I wrote & modified this code many time but not quite find a good solution for it. Below are some error after complied. Program problem: Input: student names, student IDs, their courses and letter grades Output to a file in table layout format with: College … Software Development java | |
hey all can any one tell me how to insert a checkbox column in C1TrueDBGrid it is really showing me hell I am stuck in it.. Please please any one help Thanks Software Development | |
Hi, I'm new to programming and I'm doing a course in uni. I'm currently using "Dev-C++". I've been away on holidays and haven't been able to grasp the work we're doing now. I would really appreciate it if any of you C++ programming geniuses helped me with my work as … Software Development c++ | |
Hi All, I try to store Korean langguage in Microsoft jet OLEDB 4.0 database, but I cant retrive it back. [CODE]catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & sDatabaseToCreate & _ ";Jet OLEDB:Engine Type=5;")[/CODE] I try to google around for weeks..but still cant find the solution, I believe microsoft jet 4.0 should … Software Development vb.net | |
While coding a random Employee storer, I use Scanner, and its .nextInt(); to ask the user for the employee's contact number: [CODE] Scanner Scan = new Scanner(System.in); out.print("\nEnter Employee Contact Number:"); newEmployee.contactNumber = Scan.nextInt(); //(I have a class Employee) [/CODE] I get the error : [CODE] Enter Employee Contact Number:456645 … Software Development java | |
Hi Guys, I am trying to make a connection with Oracle 11g which is installed on a server 2008 BUT have problems with the ConnectionString. Could you please let me know how I set a correct connection String while I have parameters like these: Database name: GISData Server Name : … Software Development c c# c++ open-source oracle | |
How to get rid of this error? [code] private static void edvPOAllLines_EpiViewNotification(EpiDataView view, EpiNotifyArgs args) { // ** Argument Properties and Uses ** // view.dataView(args.Row)("[FieldName]") // args.Row, args.Column, args.Sender, args.NotifyType // NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes if (args.NotifyType == EpiTransaction.NotifyType.AddRow || args.NotifyType == EpiTransaction.NotifyType.Initialize || args.NotifyType == EpiTransaction.NotifyType.DeleteRow || args.NotifyType … Software Development | |
I have to "re-write" the program that I wrote before. Here is the prompt of what to do: Overview For this assignment, re-write program 7 so that rather than using multiple arrays to hold the player information, it uses a single array of structures. The structure that will be used … Software Development algorithm c++ data-structure file-stream ios open-source | |
i am trying to figure this exercise. i just started, but i dont understand what do i need to put where ? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ShapesDemo { abstract class GeometricFigure { int height; int width; double area; /* public GeometricFigure(int Height, int Width) { … Software Development | |
hi, i would like to create an uniqueID where it must add +1 behind the CurrentTranxDateTime for the transaction 1 to 10....I have coded as below but the problem is the number doesnt +1 for each transaction.....any1 have idea to solve this..... eg: 300111 01:45:29 AM 1 300111 01:45:29 AM … Software Development vb.net | |
I'm getting a "IntelliSense no default constructor exists for class "Person" line 71." Also am getting error c2512: 'Person:' no appropriate default constructor available... There is a constructor there which confuses me on why I'm getting an error? [CODE]#include <iostream> #include <string> using namespace std; class Bio { public: Bio(); … Software Development c++ | |
Hi! Im finishing up a lottery number generator and the only part im kinda lost in is the binary search part. I have two strings = input[], random; I have to go through each subscript and check if it matches my already random generated number. Thanks in advance to those … Software Development c++ | |
I am making a C# program that talks to people using AIML, it is using networking so it can talk to multiple people at once. Here is my get message handler: [CODE] private void MessageRecieved(UserMessage message) { if (message.getMessageType() == Enumerations.UserMessageType.incomming_text_message) { conversationHTML += online[message.getUsername()].FriendlyName + " says: " + … Software Development c# | |
globals.h [CODE] #ifndef _globals #define _globals #define DATA( L ) ( ( L ) -> datapointer ) #define NEXT( L ) ( ( L ) -> next ) typedef enum { OK, ERROR } status ; typedef enum { FALSE = 0 , TRUE=1 } bool ; typedef void *generic_ptr … Software Development c | |
The program below crashes anytime I run it, can anyone tell what I have done wrong?. [CODE] #include <iostream> #include <cstring> using namespace std; class Human { private: char *fname; char *srname; char *phone; public: char * getFirstName(); char * getLastName(); char * getPhone(); Human(char *fn, char *sn, char *ph); … Software Development c++ | |
Good afternoon, I'm trying to alter an application that calculates the area of a square using the following guidelines: For the Square class: 1) Add a Private variable named _area 2) Associate the _area variable with a Property procedure called Area 3) Change the CalculateArea method to a Sub procedure. … Software Development vb.net ![]() | |
Program is suppose to convert binary to hex.. it says that i need a class/struct/union to the left of ".substr" but im pretty sure convert should be working.. [CODE]#include <iostream> #include <string> using namespace std; int main () { string convert [8]; string bin[16]= {"0000", "0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"}; string hex[16]= { "0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"}; … | |
This code highlights all instances of keywords in a JTextPane. I don't think it is very CPU efficient (it has three loops per LINE) It splits all the lines, creates a Matcher for each keyword, and iterates through those, which consequently means slow execution with larger files. The thread is … Software Development java | |
I tried to get help on this on a different thread, but I didnt get any help on specifically for this, so im just making a thread just for this. The first problem is im trying to make a five digit string, it needs to be 5 digits long basically … Software Development vb.net ![]() | |
My professor gave us an assignment to Convert the following 2 numbers to binary, octal and hex. 3.567, 0.032432 which would be easy if the numbers given weren't in decimals. I'm using the % operator and that can't be used by float... I'm lost. Can someone give me an idea … Software Development c++ | |
I am developing a network chat application, I am using Winapi, my main window is a dialog (created from a .rc file). I am looking into a way of doing an text box where my outuput text can be like this: [QUOTE] [COLOR="Green"]Welcome to ##### chat server![/COLOR] [COLOR="Red"]Person1[/COLOR] says: Hi … Software Development c windows-api | |
Greetings, My app saves a bunch of stuff to an XML file. This is my line of code- [CODE] Using writer As XmlWriter = XmlWriter.Create("C:\vdx2k\MWS\RE\EXTReportsInbox\TK" & frmCitation.txtCiteNumber.Text & "Traff.xml", settings)[/CODE] So that saves it at that specific location. I need to duplicate the XML and have it also save in … | |
here is the error message: Exception in thread "main" java.lang.NullPointerException at DriverClass.DriverExam.questionsMissed(DriverExam.java:48) at Chapter7ALabDemo.main(Chapter7ALabDemo.java:33) program is to read a answer key txt and a student's answers txt, then the number of questions would be entered to correspond with the txt file. and here is my code in two files: [ICODE] … Software Development java | |
Hello how to read from a file,which contains only nimbers(int) and to record them in an array.It's sounds easy,but i can't do it:( for file example: 1234 4353 2345 2345 2312 1267 I mean they are in collom. Thanks in advance. Software Development | |
Hi all, Ive been trying to find a seek method for StreamReader. I want to be able to reverse the file buffer by a couple characters at a time. How I have everything set up. [CODE] private void SortThread() { string[] lines; string line, totalLine = null; char[] fileInput = … | |
Maybe it's a noob question ... anyway, I create a dynamic number of PictureBox controls. I keep them inside a List. What I want now is to make them clickable: same event handler for all (opening of the image source file) with a parameter. The question is: how can I … Software Development vb.net | |
Hello, I want to create an application that can make selections from a webpage. I did an assignment for school and now I want to extend my program. The assignment was to parse a webpage and display the data. The webpage's exact URL was given to us. The URL was … | |
I have an important assignment to do but I am new to assembly programming and I understand some basics but I don't exactly know how to put together some of these codes. Please help? I really am trying. It would be appreciated if you could fill in some of the … Software Development assembly | |
New to Java! We have to create a "sales" 2D array and initialize it with 100.00. Then we have to up the 3rd quarter by 500.00 and then lower the 4th quarter by 50.00. I know there's something simple I'm missing, but I can't quite figure it out. Any help … Software Development java | |
i have the following code [CODE] Dim i As Integer i = Me.GridDomains.CurrentRow.Index Me.lbdomainid.Text = GridDomains.Item(0, i).Value [/CODE] when i have complied it in visual studio 2010 (debug) i get a error saying system.data.sqlclient.sqlexceptions conversion faild when converting varchar value LBdomainID to data type int. in sql the datatype is … Software Development sql vb.net visual-studio | |
i have code in which datatable values will be given in crystal report of vs2008 iam very surprised when i run my application in debug mode by pressing f10 key value all the value loaded perfect but when i start application in normal mode only one value of datatable is … Software Development vb.net | |
I am a 22 year old college gal currently enrolled in a c++ course, and we are on the topic of recursion. I understand how it works and have completed several other exercises on the professor has listed in the book, but this one has me stumped. Is there anyone … Software Development c++ | |
[CODE]void maximum(double *max, double x[]) { int i; for( i = 0; i<100; i++) { if(max < x[i]) max=x[i]; } }[/CODE] Why isnt this working Im probrably missing one syntaz that i cant think of at the moment Thank u Software Development c | |
Hi, I have a program which needs to accept a date, it can only accept under 30 days, and the entry has to be over 0 My problem is that it accepts anything, it doesnt make sense because i have used the exact layout on other bits of code which … | |
Hey, I've got this code that scans a 3x3 section of a 9x9 array. Heres the code: [CODE]for (j=x; j<x+3; j++) { for (i=y; i<y+3; i++) { if (array[i][j] == value) { cout<< "Number already used in Section" << endl; } } }[/CODE] It works fine if you start from … Software Development c++ | |
if anybody can help me with this code...plz [CODE]#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> void * scrambleArr(void * arr, int numElem, int elemSize,int (*func)(void*)); int func(void *x); void main( ) { int a[7]={1,2,3,4,5,6,7}; int i; int *p = NULL; p = scrambleArr(a, 7, sizeof(int),func); for (i = 0; … Software Development c | |
Hi all, I want to ask a question about replacing specific word in a string for example I have a string of: input = a fast nope e i want to replace word "a", if I use method replace which is: input.replace("a", "hello"); the character a in fast will also … Software Development java | |
I have to read in a file and do dot product calculations on two arrays but I get an error whenever I try to run it. Here is my code, [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { FILE* input; FILE* output; int product=0; int length=0; int* … Software Development c file-stream file-system | |
I need to write several algorithms and one is giving me trouble. The one giving me issue requires the use of recursion to produce a summation for an integer. For example summation(4)=0+1+2+3+4=10. The code I am working with is: [CODE] public long recursion(int N){ if (N <=1) return 1; else … Software Development java | |
Is there any way to implement a scope change for the template keyword? I have a templated class with almost 100 different functions and my code looks disgusting with my external declarations. Is there any way to implement a scope increase for template? EG: [CODE]template <typename Type> class TypeClass { … Software Development c++ | |
Hi, I have some basic knowledge in programming however it is not enough to solve the problem I faced currently. So I would like to ask for the pros for guild and help. I have attached the print screen of my program's GUI 1)From the GUI, the combobox next to … | |
Im trying for a message box to pop up but this code gives me always "Absent".How can i fix this. [CODE] Dim time As Date Dim CurrHour As Integer Dim CurrMinute As Integer time = DateTime.Now CurrHour = time.Hour ' Get current hour value CurrMinute = time.Minute ' Get current … Software Development vb.net | |
One part of my program requires that the user enters a date and this date is then checked against each product in the dictionary to see if the date the product arrived plus its shelf life causes the product to expire before or after the date entered by the user. … Software Development python |
The End.