132,726 Archived Topics
Remove Filter ![]() | |
ok for one... I must say I'm a noob at classes, but have made some pretty good apps using nothing but functions. I'd like to get into classes though, and every time I try, I end up misunderstanding 1 or 2 things and messing the whole thing up... <:\ can … | |
calculate value of PI from the infinite series π = 4-4/3+4/5-4/7+4/9-4/11 +..... write a class with two data members aproxivalue(double value ) and percision ( integer value ) where precion is the number of terms of the series used to compute the value of approxivalue : 1- default constructor permits … Software Development java | |
Please take a look at the following code. When I do not put my pointers in an array the code works. See the commented out section. I thought it would be nice to do an array as I could then have more control over my output. I could also add … Software Development c++ ![]() | |
hi i'm a vb.net programmer trying to learn C# for now. Let me ask you about simple questions in C# How do you do this in C#? this is a vb.net code: [CODE] TextBox1.Text = 1 [/CODE] Software Development c# | |
I'm having a bit of trouble figuring out what i'm doing wrong with my overloaded operators Header file [CODE]#ifndef SavingsAccount_H #define SavingsAccount_H #include <string> using namespace std; class SavingsAccount { friend istream &operator >>(istream& input, SavingsAccount & ); friend ostream &operator <<(ostream& output, const SavingsAccount & ); public: SavingsAccount(); SavingsAccount(string, … Software Development c++ | |
Hi guys, I have a difficult problem to solve. I have a list with 4 columns of values as follow 750.633 379.039 652.524 1112.63 930.491 452.16 842.753 1191.78 882.063 446.411 787.56 1183.43 434.362 410.174 325.863 1145.34 954.426 445.297 865.449 1183.74 1233.67 194.909 1155.27 908.305 1505.97 917.95 1441.07 1698.01 852.882 133.219 … Software Development python | |
Hello everyone, I need some help understanding some concepts and possibly with my logic on this problem. We are supposed to create a program that asks users for their name, id, and grade average. The set is supposed to be where the exception is thrown. When the user enters their … Software Development java | |
I'm new to generic programming and I just cant figure out what is wrong in this . The program is supposed to make a linked list using class. I have used 2 classes so that a single object of class LL can be used to manipulate a linked list . … Software Development c++ linked-list | |
I am working on a project called Payroll Management System... and am using C as the platform. The project will look to ADD..VIEW..DELETE..& EDIT employee details. All this will be done by the Administrator. I have been working on it a bit lately.. and i know before i seek help.. … | |
Hi, I find in all books and websites that in order to run a Python script from the command prompt, I have to run something like this [CODE]python example.py 1.3[/CODE] where [B]example.py[/B] script is provided with an argument of 1.3. However, it is not working for me in Windows 7 … Software Development python | |
Hey all I need to convert audio file of wav format into text file in order to feed it as input to an encryption algorithm(IBE encrypt method of [URL="http://www.shamus.ie/"]Miracl[/URL] library takes only texts as input) and have to reconvert the decrypted text file to audio format. Could you please suggest … Software Development algorithm audio c++ encryption | |
I'm using ArrayList. But the problem is that the indexOf function is not working in a for loop. It's showing 0 for all the elements or objects. Code goes like that for a FOR loop : [CODE]for(or_data or : counts.or_gates) { if (or.isHit(x, y)) { mutual=counts.or_gates.indexOf(or); set_move_cursor(); or.addX(dx); or.addY(dy); System.out.println("Got … Software Development java | |
I am having a problem with trying to copy a "char array to an int array". I have a code to randomly picked an amount of character and (in progress) print out how many occurrences, even if it's not in there a letter has. For now I'm only doing upper … Software Development c++ | |
Well I noticed recently that the more unusual bool operators arnt there. How would I use them? Ex: xand, NAND, nor, etc. Software Development c++ | |
Hello, i know that * is a pointer, also i know for ** is a pointer to a pointer... i can understand that [code] int *x; int y; x=&y; [/code] but last days i see something like this, and is a little hard to me to understand it. [code] void … Software Development c | |
plz help me to know..whether this pointer in c++ is public access or private access Software Development c++ | |
Here is the assignment criteria : Implement exception handling to validate user input as was described in class. You need to at least catch type mismatch exception. No late or by emailed homework will be accepted. We are to have a student enter their name, id and grade. The name … Software Development java | |
Hello I was working through a Netbeans tutorial : [URL="http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/"]http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/[/URL] I am having a problem understanding adding my properties and xml dependencies contained in an xml dir in my project (Please find screen print of dir) I jar my app and it can not find these files or dir. java … Software Development app-store ide java java-netbeans java-swing | |
Below you will find a code sample that I have dummied up to try and demonstrate the issue I am having. However, this is just a dummied up piece of code. The actual program has noting to do with [B]STUDENTS[/B] or [B]TEACHERS[/B]. This was just my way of trying to … Software Development vb.net | |
[CODE]struct ch8_struct { int field1; short field2; char field3; int field4; double field5; }; struct ch8_struct g_StructArray[3]; ch8_struct *g_pStructArray = g_StructArray; ch8_struct **g_ppStructArray = &g_pStructArray; g_ppStructArray[1]->field1 = 11;[/CODE] program is crashing on g_ppStructArray[1]->field1 = 11; i think my pointer notation is wrong :) Software Development c++ | |
I'm getting the error for the following code "error C2664: 'KaibaMainPhase' : cannot convert parameter 1 from 'void (__cdecl *[2])(std::vector<_Ty> &,std::vector<_Ty> &,std::vector<std::vector<_Ty>> &,std::vector<_Ty> &,std::vector<_Ty> &)' to 'void (__cdecl *)(std::vector<_Ty> &,std::vector<Card> &,std::vector<Card> &)" [CODE]class Card { public: string GetName() {return Name;} void SetName(const string& setName) {Name = setName; } void SetType(const … Software Development c++ | |
Hello, as anyone reading this might have guessed I need help. And please forgive me for making it long. [COLOR="Green"]You may skip right to [B]Found Half of a Solution[/B] if you don't want/need the background of my problem.[/COLOR] [B][U]Why and What[/U][/B] I am developping for a client an Excel worksheet … Software Development microsoft-access microsoft-office microsoft-windows visual-basic | |
This is not about a DataGridView or something else, it is just about drawing a simple grid in a form window. Googled a bit but found not much of my liking. A Grid as a BitMap in a PictureBox? Come on! Must have been some of those GUI guys I … Software Development gui | |
In my win form application having 1 button ,folderbrowseDialog box, Picturebox inside the Panel. On Button click open folderbrowsedialog for open the images folder i want to add this list images to my contextmenu at runtime i get that images path at runtime but now i am not able to … Software Development | |
Hi. I am trying to create a program to send data in real time from computer to computer. I am a bit unsure on how this will work with the server. I am thinking of serializing the objects and sending them through the server to be received by another user … Software Development | |
Hi Can anyone please provide source code or links for how to create simple windows chat application using WCF that works on LAN. I have gone through these Links but they are using xaml http://www.codeproject.com/KB/WCF/WCFWPFChat.aspxand this link does not explain about callback operation http://www.codeproject.com/KB/WCF/Chat_application_using_WC.aspx . Please provide C# source code … Software Development | |
I am writing code to open file and read info from that file to open other files, dont' know why it's only open the first file, not file after that THanks [CODE] /* strtok example */ #include <stdio.h> #include <string.h> #include <iostream> using namespace std; void remove ( char str[] … Software Development c file-system | |
I am writing a code to read file and output stuff for two files and combine them together... Don't know why they read good at the first file but wit the same code , it didn't show up for the second file Please help Thanks [CODE]#include <stdio.h> #include <string.h> #include … Software Development c file-system | |
Hi guys, I am drawing a table in richtextbox with border in cell . Now i want it without border and text align is center. Here is my rtf string [CODE]{\rtf1\ansi \par \trowd \trql\trgaph108\trrh280\trleft36\clbrdrt\brdrth \brdrdb\clbrdrb\brdrdb \clbrdrr\brdrdb \cellx9600 \clbrdrt\brdrth \clbrdrl\brdrdb \clbrdrb\brdrdb \clbrdrr\brdrdb \pard \intbl Hello Bhagawat \row\pard\par}[/CODE] can anybody help me … Software Development vb.net | |
Problem: our program is syntax-wise correct, the problem is that it is not evaluating power operation for alphabets, can anyone help it is urgent a+b*c/d^e also tell the output for this expression #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> #include<ctype.h> #include<math.h> #define MAX 20 char stack[MAX]; int top=-1; char pop(); void push(int val); … Software Development c++ | |
Now I want to add the number of picture boxes to windows form dynamically. for eg. when user put the input in text box such as user enter 4 then Four picture boxes are added to the form at run time. also I don't know how handle the context menu … Software Development | |
visual studio 2010 (vb.net window forms) access 2010 database multiple forms tab controls (2 tabs) groupboxes I have a BindingSource bound to a single row of a dataset.table The question is how to call and check the information of a single cell the cells are bound to textbox.text however on … Software Development dataset vb.net visual-studio | |
[code] # include<stdio.h> # include<stdio.h> # include<process.h> # include<stdlib.h> # include<ctype.h> # include<conio.h> # include<mem.h> unsigned char huge Data[100001]; unsigned char keystream[1001]; int Rpoint[300]; void main(int argc,char *argv[]){ FILE *fd; int i,j; int size; char ch; char *name; int cracked; int sizemask; int maxr; int rsz; int pos; int Rall[300]; … Software Development c++ | |
Hi, How do i write to xml format for the below data. This is sample parsing data that i need to save in xml format. Please guide me ! [CODE]<field id="0" value="0210"/> <field id="2" value="00"/> <field id="3" value="320000"/> <field id="4" value="000000068519"/> <field id="5" value="000000000000"/> <field id="7" value="5465464545"/> <field id="11" value="000021"/> … | |
Hello, I'm still trying to work out the same problem: how to process data from an Excel sheet (above all sort through it but in groups; will explain further down) to use in a Cluster Chart without storing it as data in an Excel sheet. The problem at hand: I … Software Development microsoft-office visual-basic | |
I am building a Circuit Editor using Java. I'm now at very first stage. Now I'm building a simple editor like Paint. I've implemented a drawing-pad where you can draw straight line and continue the line until you click an right click, by a "WIRE" Button click in the frame. … Software Development java java-swing | |
Hi, I have a simple query but im just not able to get it right. Have a look at my sample code below [CODE] Sub Function1 My Code Here Function2(Year,Month) End Sub Sub Function2(Year,Month) Dim Str as String() for 1 to 30 Dim MyDate As New Date(Year, Month, i) Str … Software Development vb.net | |
I'm having to design a program in java to get the radius from the user than print back the diameter, circumference and area using that radius I'm not sure where I'm going wrong in this [CODE] import java.util.Scanner; public class Circle { private static void circleInfo() { float radius; public … Software Development java | |
Hello, I'm working on a litle program. While working I stumbeled upon some problems. I would like to check if two Arrays are equal to each other. I tried this one, but it didn't work properly. [CODE] int control(int x1,int y1,int x2, int y2)//x1,y1 and x2,y2 -> coordinates of a … Software Development c | |
Does anyone now of a regular expression that will omit words in a string while replacing others? Software Development java | |
how to minimize child form inside of parent mdi form in vb.net...? I change the property of "IsMdiContainer" to "True". but when i minimize parent mdi form, it is not minimize the child form... Please help me. Regards Pra$ad. Software Development vb.net | |
I am doing a project like a car gallery system and need to ask for help... Suppose I want to create a class call [COLOR="Red"]"Brand"[/COLOR], it is basically just to store the brand name, a brief description, and also need to give it a picture. Says: Toyota, it is a … | |
I'm running to compiler error while I'm trying to use Enum to create a program that display a deck of cards. The compiler mistake is "Cannot find symbol", but I did call the constructor and use method call to call the method in card class. It still give me compiler … Software Development java | |
Hello, it now seems that I might be able to use SQL/MS Query to do what I tried to find a [URL="http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/388319"]workaround[/URL]. (Even if this works that does not invalidate the problem posed in that thread, though its urgency would be reduced.) So: is there a way to perform in … Software Development microsoft-office sql visual-basic | |
can anyone tell me how to [B][U]setOwner[/U][/B] as well as the [B][U]fileKey[/U][/B] for the particular file........ i've retrieved the metadata information but can't able to set values..... [CODE="java"] import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.attribute.AclFileAttributeView; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.UserPrincipal; /** * * @author user */ public class … Software Development java | |
is there is any way to access 3rd element of a linked list without using arrow operator?? Software Development c++ linked-list | |
hi, i have a panel with controls and richtextbox's within it. When the user clicks the save button, i take panel1 and DrawToBitmap, then add the image to a pdf created using abcPDF7. My problem is that i have recently change textbox's with richTextBox's to enable the user more functionality, … Software Development pdf | |
Hello all. So I am trying to write a program that will read in a text file, then it will scan the file for prompts, such as %[color], %[noise], etc. Then from what prompts are within that file, the program will ask the user what word they would like to … Software Development python | |
I'm working on a program that will find the prime factors to an unsigned integer that is entered by the user. I just have to make sure the program can handle a number up to 1000. I'm writing assembly in x86. I have already got a prompt for the user … Software Development assembly | |
Hey guys. I am getting a fair amount of errors when trying to create this menu. I am not sure whether or not I am going about it correctly. Without further adieu: [CODE]package assignment.pkg2; import java.util.Scanner; public class Assignment2 { public static final int MAX_NUM = 10; public static void … Software Development java |
The End.