132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ThuggyWuggy

I attempted to overload the == operator for one of my classes, I even copied a previous implementation of it, but now that I am using pointers it refuses to function properly here is the relevant code (there is a lot so I will provide more if need be) [CODE]#ifndef …

Software Development c c# c++ os-x perl
Member Avatar for ThuggyWuggy
0
6K
Member Avatar for Mi_99

he question is to get my shapes to change over time according to some criteria of my own design therefore i tried to make the shape change size as it hits certain coordinates but it would turn into line and keep moving as lines below is my move method to …

Software Development java
Member Avatar for Taywin
0
110
Member Avatar for Capritarius21

What's wrong with the code, pls help: setCon adoJOReport adoJOReport.RecordSource = "Shape{Select SUM(Cost) as SC,SUM(Price) as SP,Brand From Temp_JOMaster Where JoNumber='" & txtJO.Text & "'Group by Brand} " _ & "Append ({Select * From Temp_JOMaster " _ & "Where JOnumber='" & txtJO.Text & "'} Relate Brand To Brand) As Command2" …

Software Development visual-basic
Member Avatar for Capritarius21
0
179
Member Avatar for ksm092

Hi I am trying to assign 5 people various objectives between day0 and day13. However the output is not correct and goes fuzzy in the second half of the output. This is my code: [CODE]for(int x=1, y=0; y < 5, x < 15; x++, y++) { array[x][y] = objectives[y]; if …

Software Development c++
Member Avatar for ksm092
0
113
Member Avatar for abrahami

How do I apply and code a list box in visual basic 6.0, How do i link and generate a report with visual basic linked with the database table in Access 2007.

Software Development linked-list visual-basic
Member Avatar for dwiniers
0
67
Member Avatar for javaNooblet

Hi All, The GUI works as intended to. But I was wondering if some of you java gurus could look over my code and maybe give me some tips on how I could have written this code better. Thanks! [B]GUI CLASS: [/B] [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; …

Software Development gui java java-swing
Member Avatar for hfx642
0
230
Member Avatar for DmytriE

Hello everybody, I have never done anything with dynamic memory allocation and was trying to allocate enough memory to hold four elements of an array. Each of these elements will hold another array that will hold the actual data. My questions is how can I check the size of a …

Software Development c motherboards-cpu-ram
Member Avatar for DmytriE
0
118
Member Avatar for RMWChaos

Maybe this is a bit too broad a question and too much code for this forum, but I'll give it a shot... OS: Win7x64 6.1.7601 py: 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] wx: 2.8-msw-unicode My question is more of a general nature than in regards …

Software Development gui macos python regex
0
205
Member Avatar for fonzi

So i have been assigned a program where i create a interface a bag and the main or tester i have been trying to get this done for a while now and so far two other people have checked my work and have no idea why my list prints the …

Software Development ipad java
Member Avatar for fonzi
0
181
Member Avatar for Zssffssz

ok all I need is to learn how to convert a char variable into a acsii byte and back again. €£¥$ Edit: I know about typecasting or something and it's not exactly what I need because I wat to store the new variable in a int vareuble and I don't …

Software Development c++
Member Avatar for Fbody
0
155
Member Avatar for Sunyata

Hi, I'm trying to make a program which reads a text as an input and counts the letters as an output. For example, if my input is: "Hello, my name is Alan", I want my output to be: A = 3, B = 0, C = 0, D = 0, …

Software Development java java-swing
Member Avatar for Taywin
0
143
Member Avatar for frost1

My problem is, I've just started with C# and i was given a problem to solve by my teacher... here is the code... [CODE] { class Program { static void Main(string[] args) { int[] a = new int[20]; Random rand = new Random(); for (int i = 0; i < …

Software Development c#
Member Avatar for Ketsuekiame
0
438
Member Avatar for ste_a47

[CODE]class InspectionGroup(models.Model): group = models.CharField(max_length=50) class InspectionItem(models.Model): group = models.ForeignKey(InspectionGroup) item = models.CharField(max_length=50) class InspectionQuestion(models.Model): item = models.ForeignKey(InspectionItem) question = models.CharField(max_length=200) question_pass = models.BooleanField() class InspectionResult(models.Model): question = models.ForeignKey(InspectionQuestion) vehicle = models.ForeignKey(Vehicle) result = models.BooleanField() submitted_by = models.ForeignKey(User, editable=False) date_time_submitted = models.DateTimeField(default=datetime.today, editable=False)[/CODE] From the above structure, I'd like to …

Software Development python python-django
Member Avatar for ste_a47
0
190
Member Avatar for Leaningnew

how does the size of int ,float ,pointer varies according to 32 and 64 bit processors? can anyone explain it clearly?

Software Development c
Member Avatar for sergent
0
184
Member Avatar for henky2011

Hi! My aim is to create a grid in which cols, rows, range, and step are given by the user BUT they have to be placed in the grid in a random way. Then, I have to save that grid in a txt file. I wrote the following using some …

Software Development python
Member Avatar for TrustyTony
0
589
Member Avatar for FRGT/10

Please help me with my problem in algorithm coding.. the error says no matching function call .. i attach the picture in this thread hoping u help me :)

Software Development algorithm c++
Member Avatar for homeryansta
0
312
Member Avatar for FRGT/10

Project: Binary Tree ADT Transformers: 1. Add Node (You may follow BST rules for adding and deleting) 2. Delete Node Observers: 1. Node Count 2. isRoot 3. isParent 4. isChild 5. isSibling 6. isAncestor 7. isDescendant 8. isLeaf 9. Indegree 10. Outdegree 11. Traversals (pre, in, post, level-order) .CPP CODE …

Software Development c++ queue
Member Avatar for homeryansta
0
238
Member Avatar for HBovenkamp

Hi All, I'm running an application in VB.NET 2003 that loads huge amounts of data into a sql server database ( a conversion project) When the application has run for some time the windows form freezes and displays a (Not Responding) message in the title of the form. In the …

Software Development vb.net windows-server
Member Avatar for Art_95148
0
460
Member Avatar for SyncMaster170

Hello all! So in my app, I have 5 columns, firstname,lastname,membership,accountid, and date. Once a members card has been scanned, the app figures out if that member is in my sql table or not. If he/she is, it will update their 'date' column in my dgv. If he/she is not, …

Software Development sql
Member Avatar for Mitja Bonca
0
132
Member Avatar for linuxoidoz

Hi, What's the best and easiest way to make a table and print it on a printer? 1. I tried QTextEdit + QTextTable but it's a lot of work to move/set a cursor for each cell first and then add text to each cell 2. I also tried a QTableWidget …

Software Development printer python
Member Avatar for britanicus
0
1K
Member Avatar for fraandres

I'm getting a error code : java:23: error: cannot find symbol monthlyPayment=(balance*(interest/12))/(1-(Math.pow(1/(1+(interest/12)),(numberOfYears*12)))); ^ symbol: method pow(double,int) location: class Math 1 error it's pointing at Math.pow, but I dont understand what else to do thank you for any help. [code] import java.util.*; public class Loan { public static void main(String[] args) …

Software Development java
Member Avatar for Taywin
0
221
Member Avatar for jagan605

i am trying to implement ceaser's cipher in the generic sense by rotating the digits by integer n.i am trying to find out the pairs of these from a file containing words. this what i've done so far, [CODE] from string import * d = dict() l = [] for …

Software Development encryption python
Member Avatar for TrustyTony
0
198
Member Avatar for JamesCherrill

The sort methods for collections specifies that the parameter must be a collection of objects that implement Comparable for their own class or superclass, eg [CODE]public static <T extends Comparable<? super T>> void sort(List<T> list)[/CODE] Can anyone tell me how to define an ArrayList that will only accept such objects? …

Software Development java
Member Avatar for ~s.o.s~
0
187
Member Avatar for codeorder

[CODE] With bulbPrgSave1, bulbPrgSave2 .Value = 50 End Wit[/CODE] What would I need to create something as the above and set values to 2+ ProgressBars? A Structure? Property?

Software Development vb.net
Member Avatar for codeorder
0
184
Member Avatar for stereomatching

What is the meaning of using dynamic_cast without any error handling? Like [code] struct base { virtual void testing() { std::cout<<"base"<<std::endl; } }; struct derived : public base { virtual void testing() { std::cout<<"derived"<<std::endl; } }; int main() { base baseInstance; derived derivedInstance; base *bp = &derivedInstance; base &br = …

Software Development c++
Member Avatar for stereomatching
0
241
Member Avatar for Will Gresham

Hello, I am having an issue with C++. I am relatively new to this language. The issue I am having is that I am unable to use a variable declared as private in my class. Definition: [code] class Matrix { public: Matrix(void); Matrix(int rows, int cols); Matrix(const Matrix& m); ~Matrix(void); …

Software Development c++
Member Avatar for JasonHippy
0
163
Member Avatar for raaif

I Want to make a class accept string variable like this [ICODE]Dim mystring as custstring mystring = "test var" [/ICODE] like how we declare string classes I tried to use property as such [ICODE] Public class cust dim inputstr as string = "" Public Property cust() As String Get Return …

Software Development vb.net
Member Avatar for raaif
0
372
Member Avatar for rezial

ok for some reason I keep getting this error. I know that it normally happens when u forget to put in a curly brace and the compiler thinks your trying to define a function within a function but I cant seem to fix the error sooo hopefully someone here would …

Software Development java
Member Avatar for JamesCherrill
0
200
Member Avatar for SyncMaster170

So heres my problem: I have a datagrid w/ 5 columns(ID, firstname, lastname, Membership, Date). My app takes a 5 digit number from the user and with that number populates my datagrid with the members information. My BIGGEST problem is trying to check to see if the member is already …

Software Development perl
Member Avatar for SyncMaster170
0
110
Member Avatar for Master Mascus

[CODE]printf("\n How much you tickets you want to bet(Rs20 per ticket): "); scanf("%i",&bet); int x=0; for (x=0;x<bet;x++) { printf("\n Enter the 6 numbers ( 1 - 40): "); // int num/*concatenate x */[100] for( i=0;i<6;i++) scanf("%d",&num/*concatenate x */[i]); // Storing the values inserted into array num }[/CODE] Suppose i got …

Software Development c
Member Avatar for Master Mascus
0
140
Member Avatar for behrooz.09

Hello guys, I have a text file which I have to read it from my code which is Ok. THE PROBLEM : the program has to read the file and just take and extract or print some part of the text file. it means Strings between 2 Words. Here is …

Software Development file-system
Member Avatar for behrooz.09
0
186
Member Avatar for stereomatching

[code] void testRR(std::string &A); [/code] [code] void testRR(std::string &&A); [/code] Which one is better? && is more flexible than &, should I choose && rather than &? Thanks

Software Development c++
Member Avatar for stereomatching
0
124
Member Avatar for TurkAlush

Hey I need something to help me train in C# I would like learn alot, but the pro's became pro by using the system all the time. Any off the pro's that could help me something to work with, give me idea's and how to start with the idea's...

Software Development c#
Member Avatar for TurkAlush
0
92
Member Avatar for Kron

Ok, so basically I have an assignment in which I have to determine if what the user typed in is a number between 0-9, a letter or a symbol. The commands I can use are: [CODE]cout endl system("pause") system("cls") #include<iomanip> setw(#) setfill('ch') "\t" cin getline(cin,s) bool char int double string …

Software Development c++
Member Avatar for Narue
0
239
Member Avatar for jtodd

Hello everyone! I created a database in Access 2010. I am thinking of creating a front end in Visual Basic and was wondering if anyone had any experience with this. Is it doable? Or should I save my time and use access's front edn?

Software Development vb.net visual-basic
Member Avatar for NetJunkie
0
112
Member Avatar for convoluted

Hi all. I'm trying to capture video from a webcam and then display the feed in a wxPython GUI. I originally borrowed code from the OpenCV wiki ([url]http://opencv.willowgarage.com/wiki/wxpython[/url]), and since the code was for OpenCV 1.x I tried to adapt it for version 2.1. Here's my attempt to far: [CODE]import …

Software Development gui python video webcam
Member Avatar for lassytouton
0
2K
Member Avatar for yup790

I was wondering which language should learn. I do not want to be a programmer for a job(at the moment I am a young teen) in the future, I would like to be a physicist. In the meantime though I would like to learn a programming language. I want to …

Software Development asp.net c++ java
Member Avatar for JamesCherrill
0
257
Member Avatar for Azmah

I'm looking for some projects to follow and learn in C; it really helps in developing my skill. Thanks in advance.

Software Development c
Member Avatar for Azmah
0
168
Member Avatar for deefpi

Hello. I have a datagrid with 9 columns. I want to add a one row from data table who is that same. I believs I can do it that: [CODE]DataGridViewRow drow = new DataGridViewRow(); foreach (DataRow wiersz in dTable2.Rows) { for (int i = 0; i <= ilosckolumn - 1; …

Software Development vb.net
Member Avatar for deefpi
0
446
Member Avatar for Deemar

I'm creating an installation program using Inno Setup and I have all the custom install pages made but I need to know how to set whether or not a component will be installed. Normally there's a premade page which allows the user to select which components will get installed and …

Software Development pascal
Member Avatar for popelka
0
713
Member Avatar for homeryansta

[CODE=C++]void List::remove_last() { if(first == NULL) { first -> data = ' '; } else { Node *newnode; newnode = new Node; newnode = NULL; newnode -> data = last -> back -> data; last = newnode; } }[/CODE] am I doing something wrong? I'm trying to remove the end …

Software Development c++ linked-list
Member Avatar for sunn shine
0
178
Member Avatar for kylelendo

Hello Friends I am developing application in C#...I have created few pages in ASP.NET The sequence is in the following manner 1...Login 2....Secure 3.....Registration but when i type [url]www.localhost\secure.aspx[/url] I am directed to that page However i want to ensure that user has to navigate to the page only in …

Software Development c#
Member Avatar for _Barakat_
0
102
Member Avatar for manaila

Hi, I have a working C source code for implementing writing of alphanumeric characters from a 3x4 keypad, similar to a normal cell phone 3x4 keypad. However, when I want to store the characters that have been typed from the keypad as a string, the characters that are on the …

Software Development c
Member Avatar for kings_mitra
0
194
Member Avatar for abylus187

I think something is wrong with my Flames project.. please help me the wrong might have been the counting.. example Rizal maria I crossed out the similar letter and it came out that it had only three letters that are not similar so in F L A M E S …

Software Development c
Member Avatar for kings_mitra
0
143
Member Avatar for mrjillberth

I am going to do my first Java Project the ElGamal's Encryption. Honestly, i have no idea yet on how to start my program because i don't have idea in encryption but i have to do it. Because it was assigned to me by our instructor. Please help me.

Software Development encryption java
Member Avatar for mrjillberth
0
1K
Member Avatar for dwiniers

Gud Day Guys! Re: MY thread Word Marquee or running text in text box, I got the working code. If you don't mind guys can you explain it me or simulate how this code work and what it means the mentioned variable? What 'Len' means? Thank you very much! br. …

Software Development visual-basic
Member Avatar for dwiniers
0
102
Member Avatar for Cupidvogel

Hi, I am learning Python, and I was just wondering whether Python can achieve everything PHP can. I don't know PHP, but I know it's a server side scripting language, and it is often embedded in HTML pages. Can Python be used in the same manner, i.e. embedded in HTML …

Software Development perl php python
Member Avatar for Cupidvogel
0
213
Member Avatar for bennetk2

[CODE] #include <iostream> #include <iomanip> // set width and decimal #include <fstream> // use file input and output #include <cstring> // use strings using namespace std; ifstream infile; ofstream outfile; string input(string, int); string copy(string, string, int); string breakup(string, string, string, string, int); string capt(string, string, string, string, int); string …

Software Development c++
Member Avatar for vidit_X
0
994
Member Avatar for theCompiler

[CODE]#include.. int x,y,x1,x2,y1,y2; int midpoint (int x, int y) { x=2(x1+x2); y=2(y1+y2); } void main() { clrscr(); printf("enter 4 points"); scanf("%d %d %d %d",&x1,&x2,&y1,&y2); midpoint(x,y); printf("the midpoint is %d %d",x,y); getch(); } [/CODE] i cant run my program i think there's a problem in the function midpoint but i cant …

Software Development c
Member Avatar for MonsieurPointer
0
111
Member Avatar for eddieteddie

Ok, Edited. I got it working, dont worry guys, thanks.

Software Development java
0
70

The End.