132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hunt4me619

hey dudes... I need help... To figure out how to design a gui in c++..... .

Software Development c++ gui
Member Avatar for jonsca
0
147
Member Avatar for svatstika

Hi everyone! I'm trying to creat a class calling INT, which is equivalent to type int. I think we must creat every operator for this class like: +, -, *, /, %, pow(x,y),... I've never seen how does type int look like? May someone give me a introduction to type …

Software Development c++
Member Avatar for mrnutty
0
214
Member Avatar for Unhnd_Exception

This should be easy. Haven't writen a C++ app in over 10 years. Trying to delve back into it. Will someone be kindley enough to show me a sample Function and Procdure Name the function AnyFunction that returns and integer. Name the procedure AnyProcdure Heres my .h and .cpp [code] …

Software Development c++
Member Avatar for Unhnd_Exception
0
182
Member Avatar for I am a beginner

I have this code here but it doesn't seem to work; int answer1[10]; int answer3[10]; char answer2[11]; char answer4[11]; answer1[i1]= answer2[i2] - '0'; answer3[i3]= answer4[i4] - '0'; answer2 and 4 are numbers except in charactor state. answer1 and 3 doesn't equall to answer2 and 4; Can some one help;

Software Development c++
Member Avatar for jonsca
0
95
Member Avatar for mrcpp

Hi, I tried doing Project Euler #27 today, which asks the following: [QUOTE] Euler published the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 40^(2) + …

Software Development c++
Member Avatar for mrcpp
0
310
Member Avatar for samaitaben

Can any one please assist with code for two objects coming from different direction. Subsequently, collide after intersection. The objects should be moving at 80km/h. And collision should happen shortly 30 minutes after take off

Software Development c++
Member Avatar for tamiruu
0
286
Member Avatar for Kuroshi

Lets say I need to compare the x position of a ball with the x position of a rectangle to see if they have collided. Wouldn't it be easier to just declare x in ball as public so I can use ball.x instead of ball.getX()?

Software Development java
Member Avatar for mrnutty
0
95
Member Avatar for ziggazam

Hi i am new to programming and i decided to go straight to C++ and i am starting to grasp it. so i am trying random codes using my current knolage(Bad spelling) to make them. But i am trying an if else statement using my name and my brothers name. …

Software Development c++
Member Avatar for ziggazam
0
108
Member Avatar for allen2663

I am writing a program to store data and want to make the main page uneditable I have an edit button that will allow editing from another form but I don't want to change stuff by accident. I have disabeled all of the boxes but don't like the way it …

Software Development vb.net
Member Avatar for allen2663
0
76
Member Avatar for like_bilal02

Dear Freinds I want to help regarding datagrid. i want that when i select any value from combobox of datagrid( value in combobox come from databse) the textbox of same datgrid show the value of slecete combo box no from same databse simply i select a item no form database …

Software Development vb.net
Member Avatar for ShahanDev
0
136
Member Avatar for goldmn480

I’ve been told to convert a standard C++ program into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. I would appreciate any help // Purpose // A program to demonstrate the application of a simple digital filter // // Overview // A sequence of data items and …

Software Development c++ data-structure
Member Avatar for Kanoisa
0
123
Member Avatar for Kanoisa

Hi guys, I have been away from programming for a while and i started back today now that i have some time again. However i have run into a bit of a brick wall. im trying to impliment a queue with a simplified interface for holding messages. What I have …

Software Development c++ queue visual-studio
Member Avatar for Kanoisa
0
167
Member Avatar for dos_killer

hey .. i intend to make a bittorent client of my own .. preferably in python ( although im also open to java or C ) .. i have worked in making a download manager but never with p2p connections... i need advice for beginning...as in which modules would help …

Software Development peer-to-peer python
Member Avatar for Schol-R-LEA
0
279
Member Avatar for redzbor

can anyone help me pls am using turbo compiler. Write function which will sort string argument in alphabetical order. You may assume that the strings contain only lower case letters, optionally,and no blanks or other non-alphabetic characters.

Software Development c++
Member Avatar for SoulReaper1680
0
126
Member Avatar for churva_churva

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JHelloFrame extends JFrame implements ActionListener{ JLabel question= new JLabel("What is your name"); Font bigFont= new Font("Arial",Font.BOLD,16); JTextField answer= new JTextField(12); JButton pressMe=new JButton("RressMe"); JLabel greeting= new JLabel(""); final int Width=175; final int Height=225; public JHelloFrame() { super("Hello Frame"); setSize(Width,Height); setLayout(new FlowLayout()); question.setFont(bigFont); …

Software Development gui java java-swing
Member Avatar for Akill10
0
281
Member Avatar for dan76

Hi Guys, I am working on developing a simulation program that tracks multiple vehicles entered by the user and copy the current location of that vehicle in the specified text file. For example, If the user inputs 3 then the program must generate 3 text files for each vehicle and …

Software Development c
Member Avatar for myk45
0
219
Member Avatar for frankvw

Hi, Firstly, I am quite new to python so hopefully this could be quick answer for any kind sole who give help. I am trying to connect the data files created from one piece of equipment to another process that require similar, but not the same, data .txt files. The …

Software Development python regex
Member Avatar for frankvw
0
103
Member Avatar for jackmaverick1

I am trying to make a card class that has a bunch of functions to make it possible for the AI to judge what cards can be played. The card game I am working on at the moment is Rummy by order of my brother. I made a 3 pointer …

Software Development c++ hard-drive
Member Avatar for jonsca
0
284
Member Avatar for dynamyt3

Hello.I'm a begginer in C++. I'm trying to make an algorithm that will shuffle randomly the elements of a matrix[4][3],but i don't know how to start... Can someone help me with the algorithm ? I think is something like this but i'm not sure : [code]bool test=false; int x; x=rand()%4; …

Software Development algorithm c++
Member Avatar for dynamyt3
0
1K
Member Avatar for novice20

telnetlib is helping me to connect to remote host and do the user login. but, when i try doing the super user login, it hangs ............... .............. ............... User="abc" Password="abc" Superuser_id="yyy" su_passwd="xxx" #-- establish a telnet connection to all the remote hosts in the list except the host running script …

Software Development python
Member Avatar for Simplified
0
174
Member Avatar for xbox221

Hi, this i'm trying to make a loop that would read a list of character (including numbers) that you type in terminated by a period and that would only write the letters and ignore the other characters. How would i do this?? Thats the code ive been doing but there …

Software Development c c# c++
Member Avatar for xbox221
0
970
Member Avatar for emongs

can some one help me w/ codes in making picture editor. that allows the user to use the following: Picture ToolBar Color Picture Color BackGround Effects Insert Text Alignment of Picture Resize thanks for the help

Software Development visual-basic
Member Avatar for AndreRet
0
142
Member Avatar for 54uydf

I'm using VS 2010 and I don't have CrystalReportViewer in my toolbox. under Reports I only have "pointer" and "ReportViewer". after I clicked on "show all" I see the CrystalReportViewer and few other new things but it's not clickable (gray) I checked on the web and I found this answer …

Software Development
Member Avatar for 54uydf
0
176
Member Avatar for libathos

I want to create a class which will be responsible for reading an input file and then filling up my other classes...But i do not know how to begin...any ideas?

Software Development file-system java
Member Avatar for libathos
0
109
Member Avatar for Ritesht93

My teacher gave me a program which will maintain the attendance of some class daily , i have made it fully , i use eclispe IDE -JAVA SE , there are a lot of swing components in it like textfields,checkboxes,JList etc so there are Listener classes for the components. constructor …

Software Development file-system ide java java-swing
Member Avatar for Ritesht93
0
205
Member Avatar for sdinu96

Hi everyone, I don't know how to calculate cpu and memory usage information of a process.I know this information is located in /proc/pid/... but where............because i want to display this information in C++ without using "gliptop" library........... Please help me ........even if possible i need "top" command source code in …

Software Development c++
Member Avatar for sdinu96
0
198
Member Avatar for lochnessmonster

what does this statement mean? BYTE *gameBase = 0x4C62FC; [B] *gamebase points to the value 0x4C62FC?[/B] or [B]*gamebase points to an address of 0x4C62FC which is the location of data or another address?[/B]

Software Development c++
Member Avatar for embooglement
0
68
Member Avatar for dineshcbe

I wish to use DCT algorithm to compress jpeg image.But, i can't able to understand how they got the values in the matrix2 for corresponding values above 200 in matrix1. Thanks in advance.

Software Development algorithm
Member Avatar for Momerath
0
81
Member Avatar for rohand

Hi Team - do you guys have any idea how to use windows application form controls within windows service ? Actually i want to build reminder application which will show popup message in Tray icon of System within a given time interval. I don;t want on daily basis user run …

Software Development
Member Avatar for vuyiswamb
0
198
Member Avatar for Tellalca

Hey; I want to be able to use VS2010 and still pass command line arguments to it somehow. When I am building an application that needs to use argv[], I need to compile it and run it from the command line. That is becoming boring sometimes especially when I want …

Software Development c++
Member Avatar for sundip
0
140
Member Avatar for loginas

i want project titles based on vb.net....

Software Development vb.net
Member Avatar for loginas
0
40
Member Avatar for ITjulz

Write a java program that computes of the long distance call. The following cost of the call is determined according to the following rate schedule. a. Any call started between 8:00 am and 6:00pm Monday through Friday is billed of a rate of $ 0.40 per minute. b. Any call …

Software Development java
Member Avatar for pbl
0
287
Member Avatar for jackmaverick1

I thought about a project idea and I came up with this: 20 questions. I have no clue how to start. I think that a simple knowledge base is necessary, along with a way for it to learn. also, how would it ask questions? it would have to know some …

Software Development c++
Member Avatar for JSPMA1988
0
161
Member Avatar for AaronLLF

I'm making a video game, but there's 1 (more like 10 others that are offtopic :P) thing I want changed. The sky/space color. See this video (Outdated code, but it's the most recent video): [url]http://www.youtube.com/watch?v=ZlCZUtoB0MA[/url] See the black space? I want to change that to something like sky color. I'm …

Software Development java
Member Avatar for pbl
0
146
Member Avatar for raghavp

trying to work on netbeans on a project.... getting the following error [CODE]Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41) at java.awt.image.Raster.createPackedRaster(Raster.java:458) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015) at sun.awt.image.SunVolatileImage.getBackupImage(SunVolatileImage.java:225) at sun.awt.image.VolatileSurfaceManager.getBackupSurface(VolatileSurfaceManager.java:252) at sun.awt.image.VolatileSurfaceManager.initialize(VolatileSurfaceManager.java:108) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:72) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:82) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:93) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:87) at sun.awt.windows.WComponentPeer.createVolatileImage(WComponentPeer.java:604) at java.awt.Component.createVolatileImage(Component.java:3316) at java.awt.Component$BltBufferStrategy.createBackBuffers(Component.java:4038) at java.awt.Component$BltBufferStrategy.<init>(Component.java:3983) at java.awt.Component$BltSubRegionBufferStrategy.<init>(Component.java:4236) …

Software Development java java-netbeans java-swing
Member Avatar for pbl
0
260
Member Avatar for jackmaverick1

what is the library used? How do I assign it the value? What are some library functions dealing with them? Thanx- JT

Software Development c++
Member Avatar for Saith
0
135
Member Avatar for zit1343

for C++ [CODE=c] #include "stdafx.h"; #include <iostream> using namespace std; int main () { int x; char name; cout << "Please Type in your Full Name: "; cin >> name; cout << "Hello" << name << " , Now please type in your age: "; cin >> x; cout << …

Software Development c++
Member Avatar for Saith
0
152
Member Avatar for MasterGberry

Hello, some of you have have seen me around the site lately picking up some C++ knowledge. I have been reading a book (brief history). I am trying to get involved in dev work for a community I help out. So i took up C++. My assignment has been to …

Software Development c# c++
Member Avatar for MasterGberry
0
260
Member Avatar for coding101

I have progm that with a class that has the main method, and that method takes arguments which must be typed in the command line...how do i compile and run the class from the terminal using mac cmds what is the syntax? thnx

Software Development java
Member Avatar for jon.kiparsky
0
57
Member Avatar for jackmaverick1

I have been trying to invoke the default destructor for a class of mine (see below). when I try I get this error: "no match for 'operator~' in '~Card(((const Card&)((const Card*)(& hearts[1]))))'" [CODE] class Card { public: bool inPlayer; bool inDeck; bool inOpp;//in opponets hand. int type; //!< Member variable …

Software Development c++
Member Avatar for jackmaverick1
0
1K
Member Avatar for soneal777

I am using Visual Studio 2010 and C#. I am having problems making my three dice generate different random numbers. All of the dice roll at the same time. I have pictures of dice that I want to pull up for each of 3 dice according to what random number …

Software Development visual-studio
Member Avatar for soneal777
0
430
Member Avatar for LogicallyInsane

Um, I'm actually KrazyKitsune, I'll use that account after I manage to recover my password. So I'm having trouble with RS NOR latches. I did this: [code=python]s = int(raw_input("set Set value: ")) r = int(raw_input("set Reset value: ")) qi = not (s or q) q = not (r or qi) …

Software Development python
Member Avatar for LogicallyInsane
0
93
Member Avatar for evertron

I get an error with this code and I dont know why I thought that sum was part of the array calss and it does come up when I put the "." after the array. This is the error I get. Traceback (most recent call last): File "F:/Python_Stuff/CSC143-901/score-array.py", line 22, …

Software Development python
Member Avatar for TrustyTony
0
114
Member Avatar for Manchala

Hi everyone i am new in visual basic. net programming. i am facing problem that when i made a file in vb.net and run it on same computer than it runs fine, but when i copy it to another computer where vb.net or .net framework is not installed then it …

Software Development vb.net visual-basic
Member Avatar for jlego
0
1K
Member Avatar for BleepyE

If I create a save a text file, how do I get my application to save it into the end users directory? Ive current got this which saves into my user area. [CODE]file = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\#####\Fruit\Fruit.txt", False)[/CODE] Thanks

Software Development vb.net
Member Avatar for BleepyE
0
160
Member Avatar for neo2nate

please help I want to reading .wav file and putting ito inot the array to do some manipulations.... here is the bit of the code, I am trying to read the file called yes1.wav and putting it into the array and it returining junk...sometime cannot open the fp1 = fopen( …

Software Development c file-system
Member Avatar for Trentacle
0
627
Member Avatar for james6754

Hi, as I understand it, you can only access a static member from another static member? can anyone tell me how I would go about accessing a static member in a different class?? thanks.. also if anyone has any good links to sites about constructors..would be most grateful :-)

Software Development
Member Avatar for james6754
0
82
Member Avatar for gutchi

Hi Everyone! I have here a queue: [CODE]my $qTool = Thread::Queue->new();[/CODE] I want to show all the elements that the queue contains. [CODE]my $qItem = $qTool->peek();[/CODE] The code above returns only either the head of the queue or an element at a specified index. Is there a way for me …

Software Development multithreading perl queue
Member Avatar for d5e5
0
251
Member Avatar for daudiam

Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } public static void main(String aa[]) { R2 nn1=new R2<Integer>(); nn1.set("hello"); (1) //String r=nn1.get(); //Integer t=nn1.get(); } }[/CODE] In line (1), an unchecked warning is given as the compiler …

Software Development java
Member Avatar for daudiam
0
205
Member Avatar for Barzanyadis

[B]The 1998 22nd Annual acm International Collegiate Programming Contest World Finals sponsored by IBM [/B] Problem F [B]Polygon Intersections[/B] Input: poly.in Most drawing or illustration programs have simple tools for creating polygon objects. The better ones can find the regions that are the intersections of two polygons. The picture below …

Software Development c++ user-interface
Member Avatar for vijayan121
0
133

The End.