132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Qazi_1

Hi guys, Tomorrow is my theory paper exam of C++ OOP and Data Strucutre. Paper will be based on 50% theory Q/A and 50% on coding implentaion. Can you give me some hints to prepare for this coming exam? PS. I have gone throw all lectures slides and course material, …

Software Development c c++ data-structure
Member Avatar for mathijs
0
258
Member Avatar for Agent168

THIS IS A NO GUI TEST. GUI COMES AFTER THIS IS DONE. " i hope to learn from this so i can use it on the gui " :D i have my database : friends , table : info , values : (name ) : dragon , (address) : china …

Software Development gui java mysql
Member Avatar for Ewald Horn
0
199
Member Avatar for STVG

i'm working on a array header from base definition of an array to create an array of any type with this header,so i created a array class with functions and constructors. this is my code so far: #include <iostream> #define newline "\n" class Arr { public: typedef float T; public: …

Software Development c++
Member Avatar for deceptikon
0
460
Member Avatar for Fenrir()

So here's the thing and it's been quite simple up to here. I have never been required to do something like this and most tutorials are vague at best. I have a Stackpanel with numerous children. Each child then has a label and an image. These were all dynamically created …

Software Development
Member Avatar for Fenrir()
0
143
Member Avatar for giancan

Dear friends, I need help understanding my error with urllib. I wrote the following code to check the availability of updates for a software I wrote try: datasource = urllib.urlopen("URL to FILE.txt") while 1: line = datasource.readline() if line == "": break if (line.find("<") > -1) : LastVersion="Error" else: LastVersion=line …

Software Development python
Member Avatar for snippsat
0
217
Member Avatar for jursnamo

#include <stdio.h> #include <stdlib.h> int buku; int jum; int total; char member; int main(int argc, char *argv[]) { printf("\n---------Tarif Peminjaman Buku-------\n"); printf("Member Rp.5000.oo,-\n"); printf("Non-Member Rp.15000.oo,-\n"); printf("Regist Member Rp.30000.00,-\n"); printf("-------------------------------------\n"); printf("Silahkan Masukan Pilihan Anda\n"); printf("Jumlah Buku : "); fflush(stdin); scanf( "%d",&jum ); printf("Apakah anda member [Y/T]"); fflush(stdin); scanf("%c",&member); if (member !='y') …

Software Development c
Member Avatar for Banfa
0
158
Member Avatar for nkwaga

Write a program to compute and print the number of miles a car has travelled during 2013 and compute the average litre comsumption per mile. the program shouls ask for daily number of miles, also give its output the total amount spent on petrol for the year.

Software Development c++
Member Avatar for Paul.Esson
0
126
Member Avatar for mark.mcrae.92

I have a path I trying to hook up to marathon (an automation testing tool) to locate a folder on an SVN but I keep getting a name error here is the module code def LookUpPathPrefix(pathToFind): from marathon.playback import * inFile = open("paths.txt", "r") mountPointName = "start" while (mountPointName): mountPointName …

Software Development python
Member Avatar for mark.mcrae.92
0
300
Member Avatar for king03

Hi there guys I just want to know how I can create a reset button that will erase all the contents written by a user in textboxes? I am creating an Enrollment Form for Students and I need some help about it. I have attached a screenshot for you guys …

Software Development
Member Avatar for brite_a
0
8K
Member Avatar for Vish0203

Hello everyone! I got this question in a book.. I thought of doing it using map() or using loops return the first count multiples of number in desc order in a list. e.g call with input (3,2) returns [6,3] call with input(5,3) returns [15,10, 5] but the hint along with …

Software Development python
Member Avatar for rrashkin
0
244
Member Avatar for Lethugs

Hi Is there a way a vb form structure the same as its backgroud picture? Its same with making the form invisible and let its background picture remain Im trying to make a program that when it runs, it displays like widget. thanks

Software Development vb.net visual-basic web-design
Member Avatar for Deep Modi
0
264
Member Avatar for learncoding

I have a vector personInfo that contains class objects of person details vector<person> personInfo; I am trying to use std::find to search for a existing name in the vector. I overloaded my == operator. person.h class person { public: std::string name; friend bool operator==(const person &lhs, const person &rhs); }; …

Software Development algorithm c++
Member Avatar for Paul.Esson
0
570
Member Avatar for Mkaveli

Hi im building a JavaFX project and am using JavaFX Scene Builder 2. I wanted to link my controller to my fxml file but i can't see the possibility to add a controller to my fxml file in Scene Builder 2. I was wondering if someone could help me out. …

Software Development java
Member Avatar for JamesCherrill
0
204
Member Avatar for missy_mi

Hello.. good day evryone, i encounter a problem with my save as form..i use savefiledialog..the result is that the page is saved..but when i open the word doc, it is empty..there is no data whatsoever.. i dont use database..it is suppose to save the the data that i filled in …

Software Development vb.net
Member Avatar for missy_mi
0
478
Member Avatar for Gulzar_1

I have project of vb.net when i make setup and run in my machine it works perfectly but when i run that setup in another machine it is giving "System.Runtime.InteropServices.COMException (0x80040154) HRESULT-class not registered" error..I have to give this project to client...please help

Software Development vb.net
Member Avatar for Minimalist
0
612
Member Avatar for ZixCo

Hi! I'm making an app and I need to know how to set position of strings in java. Here is a code: import java.awt.*; import javax.swing.*; public class Draw extends JFrame{ JPanel panel; JLabel string; public Draw(){ super("CO-LERNER"); setSize(300,150); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); setLocationRelativeTo(null); string = new JLabel("Example"); panel.add(string); add(panel); } }

Software Development java java-swing
Member Avatar for JamesCherrill
0
213
Member Avatar for CJMW

So, Im making a game in c# using Xna. I have a function that will read a text file and display a map on screen, using numbers in the file as texture references. The file is a integer multidimensional array. I have another file which is used to set collision …

Software Development
Member Avatar for CJMW
0
502
Member Avatar for karaman1

Hello guys,i have some issues uploading a task 10152(shellsort) in the online judge website. The code works fine,i get the results you need to get on my computer,but when i try to upload it on the site it tells me that i have an error. this is the code: #include …

Software Development c++
Member Avatar for Meron Aragaw
0
123
Member Avatar for Mr.M

Hi Dw I'm working on a program which has many forms and these forms are for setting the functionality of this program so now I want to detect if, let say Shift+F is pressed then the appropriate form will show. I don't want to use the Form_KeyPress or KeyDown or …

Software Development vb.net
Member Avatar for Mr.M
0
318
Member Avatar for soujanya.bhat.184

Hi. I am learning Java and now stuck in the exceptions chapter. I wrote a code to understand exception. But i am not getting why there is an error saying "Unreachable catch block".Please help me out here. Code is as shown. public class GetException { static int i; public static …

Software Development java
Member Avatar for soujanya.bhat.184
0
131
Member Avatar for Lp_baez

I am looking for a noob friendly C++ IDE for mac computers. I'm looking something similar to microsoft visual studio. I have tried xcode, but it appears to be missing some of the basic cpp. and h. files like stdafx.

Software Development c++ ide visual-basic visual-studio
Member Avatar for mike_2000_17
0
443
Member Avatar for beforetheyknew

I'm basically wanting to design a java questionaire gui (not on java) basically just a program that holds a bunch of questions and the corresponding correct answers. So the question i would imagine i would make appear on the label and then having four possible answers a b c and …

Software Development gui java
Member Avatar for stultuske
0
823
Member Avatar for TechxRay

Greets to all! I have 2 user defined controls. 1 is the main, the other is the control that contains all the radio buttons. One of the criteria is to have a clear button in the main control to select the 0 radio button that clears all the text fields …

Software Development gui vb.net
Member Avatar for NeilR
0
584
Member Avatar for mcoliver88

Hi I have to create an sql database for work, for my students to work with. I have created a large portion of the program, but i am stuck on the searching of data. So searching for a person or department. Not sure how to do it, here is my …

Software Development sql
Member Avatar for Cameronsmith63
0
260
Member Avatar for mixelplik

I was writing a program that opens a file assigns each element to an array. I was wondering if anyone had suggestions on how to get the number of items in a file, without knowing before hand. I was usuing this: int main() { ifstream inputFile; inputFile.open("P6.txt"); int index = …

Software Development c++
Member Avatar for Ancient Dragon
0
367
Member Avatar for jjtheflash

I am not a programmer, nor do I pretend to be. I have slowly been taking in advice from videos I have been looking at through youtube to help with my advancement of knowledge in C#. I was looking for a way to combine a list box item to a …

Software Development visual-studio
Member Avatar for Cameronsmith63
0
200
Member Avatar for Mike Askew

I've been toying with some code for the last thirty mins to try move a substring from one cell to another. In debug I can see the correct contents being picked up and moved to the new cell and even got a save prompt popup when running over line 31. …

Software Development c c# c++
Member Avatar for Mike Askew
0
478
Member Avatar for learncoding

Ihave a vector that contains monthyear Jan2013 Jan2013 Jan2013 Jan2014 Jan2014 Jan2014 Jan2014 Feb2014 Feb2014 Basically what I want to do is to search through the vector, for every same record, group them together like e.g total count for Jan2013 = 3; total count for Jan2014 = 4; total count …

Software Development c c# c++
Member Avatar for NathanOliver
0
168
Member Avatar for ZixCo

Hi! I need a bit of help here. I started a new project and i need to know how to set position of JLabels(strings). Can I just set pixels or use Int x = 300, Int Y = 400?? I realy need help. I will be thankful for all the …

Software Development java
Member Avatar for ZixCo
0
417
Member Avatar for Cameronsmith63

Hi, I kind of hit a bump in the road with SQL and C#. I am sending information through to a stored proc like: SqlCommand TestCaseManager = new SqlCommand("TestCaseManager", thisConnection); TestCaseManager.CommandType = CommandType.StoredProcedure; TestCaseManager.Parameters.Add(new SqlParameter("@TestCaseName", TestCaseName)); if (c.Controls[2].Text.Equals(string.Empty)) {TestCaseManager.Parameters.Add(new SqlParameter("@Steps", DBNull.Value));} else {TestCaseManager.Parameters.Add(new SqlParameter("@Steps", c.Controls[2].Text));} if (UnitTester.GroupBoxCreator.SomeClass.PictureLocation.Count.Equals(0)) {TestCaseManager.Parameters.Add(new SqlParameter("@Img", DBNull.Value));} …

Software Development
Member Avatar for Cameronsmith63
0
211
Member Avatar for Eric_8

Hi, I'm newbie in Python Programming. I created the below code. I want to optimize it, but dont know where to start. I am sure, I can do the same with less lines of code. Please advise on best practices and ways on how to optimize it. import math def …

Software Development python
Member Avatar for Eric_8
0
381
Member Avatar for Lisa3103

For this assignment, you must develop a program which will merge the contents of two lists, removing duplicates. You must: • develop the pseudocode • desk-check • test the program to ensure that it works for appropriate sets of data Your list merge program should be a simple program which …

Software Development
Member Avatar for Lisa3103
0
162
Member Avatar for 26bm

Hi, I am wondering if there is any easy way to up the frame rate of a pygame program. For example locking the frame rate? I don't know. Thanks in advance! 26BM

Software Development python
Member Avatar for 26bm
0
248
Member Avatar for diaafayed

which is better solution in the case of big project that have many controls 1. put controls directly on each tabPage or 2. put the controls on user control or form and then load it on the tabPage

Software Development
Member Avatar for deceptikon
0
140
Member Avatar for syasya

I am beginner to Java , I would like to know is there any Difference between JDK 32 bits and 64 bits? For example in terms of performance or something ?

Software Development java
Member Avatar for ~s.o.s~
0
188
Member Avatar for charlie1329

Hi, the following is the code for my a2 computing project. Essentially what I have tried to do is set up two basic structures of GUIS and then inherit them into other classes so I can add components to the basic structure. However, when I create a MainMenu object, only …

Software Development gui python tkinter
Member Avatar for charlie1329
0
4K
Member Avatar for on94

Anyone has any idea about how to add a column to the database's table that already create From the coding part ?

Software Development vb.net
Member Avatar for on94
0
84
Member Avatar for tbuchli

/* * In a hypothetical real-estate themed board game, a player rolls two dice to *move their token around the perimeter of the board by the number of squares *shown on the face of the dice. At each spot the player lands, he or she must *take an action, either …

Software Development java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Gulzar_1

vb.net project shifted from one pc to another pc.project includes some private dlls.I include those dlls and some activex controls are linked with these dlls.At the time of loading form it is throwing some exception.when I create controls.It is running well,But after creating exe file.It is showing error file not …

Software Development vb.net
Member Avatar for Minimalist
0
154
Member Avatar for diaafayed

what sre the differences between clik and activate events of tabPage? and their typical usages

Software Development
Member Avatar for KushMishra
0
117
Member Avatar for gurunathan_1

In ASp.net Page I Need To Know How To Maintain The Value Of A Particular Label Assign By the HTML Button Click. after Postback Done. with out converting label to textbox, not using hidden field or session Detailed Code <table> <tr> <td><asp:Label ID="lbl1" runat="server" ClientIDMode="Static">Before Changing</asp:Label></td> <td><asp:Label id="lbl2" runat="server" ClientIDMode="Static"></asp:Label></td> …

Software Development asp.net session
Member Avatar for KushMishra
0
2K
Member Avatar for dashing.adamhughes

Hi, I built a Polygon() class that originally only was initialized with veriticies: Polygon(verts=(1,2,3,4) But as the code evolved, I added a few @classmethods to construct the Polygon from other inputs. For example: Polygon.from_center(center=(1,2), length=5) Now my problem is that I'm trying to find the canonical way to choose which …

Software Development python
Member Avatar for dashing.adamhughes
0
265
Member Avatar for Zachary_1

I am relatively new to java and am having trouble using a cardlayout. When I press the button to switch cards I get a nullpointerexception but I do not understand where I could possibly have anything set to null. Any help would be greatly appreciated. This is my error... Exception …

Software Development java java-swing
Member Avatar for stultuske
0
332
Member Avatar for Iamateur

Well I am totally beginner. I came across this program. Module arrayredim Sub main() Dim marks() As Integer ReDim marks(2) marks(0) = 85 marks(1) = 75 marks(2) = 90 ReDim Preserve marks(10) marks(3) = 80 marks(4) = 76 marks(5) = 92 marks(6) = 99 marks(7) = 79 marks(8) = 75 …

Software Development vb.net
Member Avatar for Iamateur
0
150
Member Avatar for daviddoria

I would like to take a screenshot of a region of my screen programmatically (so I can do it every time through a loop, for example.) Does anyone know how to do this? I guess it would involve the win32api - I've not used this before so any hints would …

Software Development c++
Member Avatar for dougy83
0
3K
Member Avatar for waleed.makarem

Dear All , I am looking for a .net control to act as progressBar. it shoule have many empty boxes , and which progress , it gets filled. as in Free Download manager. Please refer to attached screen shot. Thanks, Waleed

Software Development vb.net
Member Avatar for Deep Modi
0
333
Member Avatar for MRAR

Hi there i want to know whats the difference b/w databanks like sql and our own text structure txt file that could easily store data even with less size than databanks. Of course i now sql is faster secure and much more but i can encrypt my data too and …

Software Development app-store data-structure sql
Member Avatar for KushMishra
0
275
Member Avatar for johnzer21

can i ask what algorithm is to used in creating a students information system? thnx

Software Development algorithm
Member Avatar for KushMishra
0
135
Member Avatar for MartinSoukup

Hello guys, First of all sorry for my bad english. Is there any way how to calculate in listwiev? I have a list view with two columns, ID and Number, using searching from text box. SEARCH BUTTON foreach(ListViewItem ID in listView1.Items) { if (search.Text == ID.Text) { ADD BUTTON ListViewItem …

Software Development c# listview
Member Avatar for KushMishra
0
254
Member Avatar for abdallah_adiga
Member Avatar for KushMishra
0
144

The End.