132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for docaholic

how would you sort a class object? say..you have a card class, and in the card class, you can have the suits and face value of a card. how would you sort the cards by face values? (smallest to biggest?) thanks

Software Development python
Member Avatar for docaholic
0
160
Member Avatar for codered152

Hi all I m working on this project where i need to get user input and then see if the user input is correct or not. if it is correct then show the user input in the label but if the user input is wrong then show user a warning …

Software Development java
Member Avatar for Alex Edwards
0
80
Member Avatar for karhong

Hi, I'm trying to draw circle and oval by myself without using ".addEllipse" Can I draw it by pointer? which mean i point 4 point and then make it to become the shape of circle and oval. I tried to find solution in the net, but i dont seems to …

Software Development
Member Avatar for karhong
0
193
Member Avatar for CoolGamer48

To my understanding, certain classes, like ifstream, have a conversion to a primitive data type, like bool. In other words, you can do this: [CODE] if((fin >> x) && done == false) //... [/CODE] Now, does this simply work because ifstream has the && operator overloaded, or can objects of …

Software Development c++
Member Avatar for Prabakar
0
92
Member Avatar for pavel989

does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right?

Software Development c++
Member Avatar for pavel989
0
144
Member Avatar for raymarquise

Hi, I know nothing about compiling a program, but I desperately need a program that is written in python. I installed python and tried to compile it, but got errors. If someone would be kind enough to compile it for me and sent it to my email address, I would …

Software Development python
Member Avatar for vegaseat
0
129
Member Avatar for Motvel

The traditional problem with reading & writing files with iostream... I try to read "slav.txt" file, then paste this in "slav2.txt". The text in "slav.txt" is "Hello world", at console i receive "Helloworldrl" (with nospace and "rl" at end), and in "slav2.txt" i receive "drl" This is my code: [CODE]#include …

Software Development c++
Member Avatar for Motvel
0
153
Member Avatar for gispe

hiii! im backk jajaja ¬¬ not funny, i know. well, im back with another problem, which is not exactly that, is more a question i wanna do. This program reads the file, the exage of an employee, the quantity of children and the position that occupies in a company. If …

Software Development c++
Member Avatar for gispe
0
84
Member Avatar for gouki2005

THIS MI CLASS [CODE]Public Class Formula Private a As Integer Private b As Integer Private c As Integer Public Sub seta(ByVal x As Integer) a = x End Sub Public Sub setb(ByVal y As Integer) b = y End Sub Public Sub setc(ByVal z As Integer) c = z End …

Software Development vb.net
Member Avatar for gouki2005
0
208
Member Avatar for tootypegs

Hi, I have a console application that works fine. The users puts in the path of a folder and my program looks at every file in that folder. This is exactly what I wanted only now I'm moving it over into a GUI. Im using borland c++ builder 6 and …

Software Development c++ gui
Member Avatar for Ancient Dragon
0
98
Member Avatar for gispe

hi pll with all this post im makin ill probably look like i only have problems :S, but well, books dont solve all my problems :S so.... my todays problem is that i have to make a game that uses the random values of two dices, n accordin to the …

Software Development c++
Member Avatar for Prabakar
0
90
Member Avatar for michael1201

ok so im checking a 9x9 soduku game and i need help checking the part where the 3x3 boxes are all cheked. i cant seem to output the errors for the 3x3 box check can someone help me out. i want it to output which box that has the error …

Software Development c++ puzzle
Member Avatar for Salem
0
197
Member Avatar for Ballantine

Hi I want to capture mouse events when the mouse is positioned on the title bar of a form. In particular I want to be able to replace the standard context menu (to move, size, maximize, minimize, close) with one of my own. Can anyone help please?

Software Development vb.net
Member Avatar for Ballantine
0
722
Member Avatar for Manutebecker

I did Hello world about a month ago, (my first language was BASIC), and now im onto things like Templates and I got all of my classes pointers and filing stuff down fine...Im trying to get OpenGL and SDL going (I'm already doing pretty good with the Allegro library). Idk …

Software Development c++ opengl video
Member Avatar for Tigran
0
138
Member Avatar for plike922

We i compile this program is shows that percents as 0.... any suggestions. [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include <math.h> int main() { int g1, g2, g3, g4, w1, w2, w3, w4, p1, p2, p3, p4; string n1; string n2; string n3; string n4; //-------------------------------------------// printf("Enter first …

Software Development c
Member Avatar for Ancient Dragon
0
122
Member Avatar for cam875

Is it possible to code the client application using winsock API so it can run for windows but the server with berkeley socket API so it can run for linux. I mean will they be able to establish a solid connection even though the socket API's and OS's are different. …

Member Avatar for cam875
0
240
Member Avatar for manzoor

[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected …

Software Development c++ visual-studio
Member Avatar for manzoor
0
540
Member Avatar for nikki123

Develop a program in C++ which takes input a file of C Language and process all #define (i.e. #define MAX 100, than replace every occurrence of MAX with 100). (Macro value 100 can be an expression also.)

Software Development c++
Member Avatar for Salem
0
115
Member Avatar for jerryjerry

hello everyone, My doubt is related to access specifier. There is one code snippet - [code=cplusplus] class Base { public: explicit Base(); static int object_count; protected: int id; }; class child: public Base { public: child(int val) : id(object_count++){} }; [/code] This code is giving compilation error that id is …

Software Development c++
Member Avatar for jerryjerry
0
292
Member Avatar for your uptime

well guys i know you people are professional so can u plz recommand a best book of java which make me familier with java..thx

Software Development java
Member Avatar for peter_budo
0
75
Member Avatar for gispe

hi ppl, im havin a problem with a while loop. it just doesnt go out of it, it has the end, but doesnt use it :S the program is attached :P [code=cplusplus] // ventas_por_correo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int main(int …

Software Development c++
Member Avatar for gispe
0
73
Member Avatar for Hannahlv

Hi everyone! I'm doing my project related to socket programming. The send and receive part I got problem. The code is below : Server side: [CODE] printf("Handling client %s\n",inet_ntoa(their_addr.sin_addr)); if (send(new_fd, "Menu\n", 5, 0) == -1) //(1) perror("send"); if(send(new_fd, "1. A.mp3, 2. B.mp3, C.mp3\n", 26,0) == -1) //(2) perror("send"); if(send(new_fd, …

Software Development c++ client-server socket-programming
Member Avatar for Salem
0
131
Member Avatar for bprabhumdu

hello friends, how to separate all characters from a given string in vb6.0...For example if i give "welcome" in a text box ,in the same form it will print (w,e,l,c,o,m,e,).......... Thanks in advance ............... regards natraj

Software Development visual-basic
Member Avatar for bprabhumdu
0
146
Member Avatar for Mazille

I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file …

Software Development file-system python
Member Avatar for Mazille
0
2K
Member Avatar for bloody_ninja

[code=java]package Ninja; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; public class NinjaServer implements Runnable { public final static int NULL = 0; public final static int DISCONNECTED = 1; public final static int DISCONNECTING = 2; public final static int BEGIN_CONNECT = 3; public final static int …

Software Development gui java java-swing
Member Avatar for Alex Edwards
0
438
Member Avatar for CoolGamer48

Say I have a file file1.h: [CODE] namespace a { int Func() { return 5; } } [/CODE] and a file file2.h [CODE] #include "file1.h" namespace a { class Foo { Foo(); }; } [/CODE] and file2.cpp: [CODE] #include "file2.h" a::Foo::Foo() { Func();//<---- } [/CODE] Can Func() be referenced like …

Software Development c++
Member Avatar for CoolGamer48
0
81
Member Avatar for Gorilla

I've doing my final thesis at my university I've found a place for source code related to my topic for reference: [[url]http://www.christopher-wolf.de/hfe/][/url]. But unfortunately, I cannot download any of its content listing in the page. If anyone knows how to have it, please help me. Thank you very much for …

Software Development java
Member Avatar for toli
0
131
Member Avatar for army88m2

O.k. this is my first scripting class and I need someone's opinion on this code. I need to write a code for a modularized program that will: 1.) read each record from the inventory database 2.) print a price tag for each item in inventory 3.) count and print the …

Software Development printer visual-basic
Member Avatar for chid_
0
112
Member Avatar for Lukezzz

I have created a listView on my Form. In the properties I have created 2 Columns. What I now wonder is how you can put text in each column. I have tried out this code but no Text is coming up in the listView1 at all. Could I be on …

Software Development c++ listview
Member Avatar for Lukezzz
0
114
Member Avatar for TheBeast32

Hi, how would I make a program that gets input from a user, sends it to a program with popen(), gets the output, and repeats this until the program ends? I have tried, but I only get part of the output, and when I type "exit", it won't end the …

Software Development c++ microsoft-windows
Member Avatar for TheBeast32
0
1K
Member Avatar for Ccrobinson001

I have a program for clas that requires me to write a random number guessing game. I completed the game but i have to use functions in the program and I am not to familiar with this. Can some one help me? Here is the code and here are the …

Software Development c++
Member Avatar for Ccrobinson001
0
238
Member Avatar for Billg

I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class …

Software Development python tkinter
Member Avatar for vegaseat
0
107
Member Avatar for sickle

Hi, This concerns Microsoft Windows. I want to know when a window from other processes is made visible. Also, I want the handle of the window. I've tried to catch the message WM_SHOWWINDOW with SetWindowsHookEx(WH_GETMESSAGE, &MessageProc, g_hInstance, 0) but I receive no events ! The only events I receive is …

Software Development c++ microsoft-windows
Member Avatar for sickle
0
413
Member Avatar for sinner

please help me in this code please remove all these errors because i did not remove these errors due to beginner in c

Software Development c
Member Avatar for Aia
0
110
Member Avatar for plike922

I am trying to create a program that finds the GCD of two numbers using the brute force... So far i have this but my problem (I hope) is that i cant get the value of g into int main() Here is my program. Any suggestions? [CODE]#include <cstdio> #include "simpio.h" …

Software Development c
Member Avatar for Prabakar
0
180
Member Avatar for andy4919

I have to create a Pseudo code for a class that is it's second week (I registered Late) I have no idea what I am doing. I have to create a program that writes a file that lists student ID #'s and their final scores. This is the data I …

Software Development algorithm shell-scripting
Member Avatar for andy4919
0
264
Member Avatar for ricss_madara

investment duration interest rates offered Less then 3 months 5% 3month-11 months 5.5% 1 year-23 months 7.6% 2 years and above 7.9% Note: Interest = Total investment *Interest rates *Duration Q: How to write a java application to compute the total accumulated investment after the investment periods?

Software Development java
Member Avatar for jasimp
0
143
Member Avatar for @bhi

I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance.

Software Development c
Member Avatar for @bhi
0
150
Member Avatar for sinner

this code in c++ please convert this code in c i really thankful to you because today i have shortage of time please do this for me

Software Development c
Member Avatar for ArkM
0
78
Member Avatar for gispe

hi ppl im back here, but with another problem in another code. in this one i have to count how many sellers reached the top sells. thing is that if i put one that reached the top at the end, the program doesnt count it, it counts only the first …

Software Development c++
Member Avatar for gispe
0
103
Member Avatar for xxReYMaXxx

[B]helow, can someone help me with my problem. my Teacher give me a problem, he want me to make an array that the output would be my name, buth with a space on it, [/B] [B]example:[/B] Raymond [B]output:[/B] R a y m o n d & R a y m …

Software Development c++
Member Avatar for robertmacedonia
0
143
Member Avatar for cam875

Ok, I was wondering if somebody could give me some clarification on a topic that just doesn't seem to make sense to me. I have a class that tells my program all the attributes needed to build another player in my game but there could be 3 players logged in …

Software Development c++
Member Avatar for CoolGamer48
0
98
Member Avatar for praksk

I am relatively new to visual basic. I need to take two 8 bit byte values, join them to makea 16 bit binary value and then separate the 4 msb as a 4bit binary vale and the 12 lsb as a 12 bit binary value. Thanks in advance for helping …

Software Development visual-basic
Member Avatar for dmf1978
0
475
Member Avatar for jamshed

This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation. The Daewoo Reservation System will ask the user for the following information : • Name of passenger • Departure City • Destination City …

Software Development c++
Member Avatar for ssharish2005
0
612
Member Avatar for lehe

Hi, When using "..printf Functions" with Conversion specifier type "%g", it gives different results under different environment. For example, "sprintf(string,"%g",1e-6);" gives "1e-006" in Windows (Visual C++) and "1e-06" in Linux (gcc). Maybe I am wrong about it. Is it possible to get the same format under whatever operating system or …

Software Development c operating-system
Member Avatar for ssharish2005
0
113
Member Avatar for kneel

Project Title: Daewoo (a Bus service) Reservation System Project Description: This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation. The Daewoo Reservation System will ask the user for the following information : …

Software Development c++
Member Avatar for Salem
0
109
Member Avatar for triadR

hi, i've a code shown like this.. [CODE='c'] #include <stdlib.h> #include <stdio.h> #include <winsock2.h> #include <pcap.h> #include <remote-ext.h> #define ETH_IP 0x0800 // type: IP #define ETH_ARP 0x0806 // type: ARP #define ETH_ICMP 0x0800 // type: ICMP = IP #define ARP_HARDWARE 0x0001 // type for 802.3 frames #define ARP_REQUEST 0x0001 // …

Software Development c
Member Avatar for triadR
0
250
Member Avatar for master78

How to create a array of type double and have compile time initialiser placing 10 values in two arrays. Storing the product of two arrays in the third array.

Software Development
Member Avatar for vckicks
0
121
Member Avatar for cmatos15

Hey everybody, I seem to be stuck on this rolling dice problem I received on one of my lab exercises. Can somebody get me started on the right path. Here's a description of the problem along with the code given. The green indicates where I need to insert code. DESCRIPTION: …

Software Development c++ ios
Member Avatar for cmatos15
0
2K
Member Avatar for gispe

hi! im havin a problem with a program ive made. problem is that doesnt show messages. dont know whats wrong :S also attach the program [code=cplusplus] // cartas_paquetes_v3.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { using namespace …

Software Development c++
Member Avatar for ArkM
0
94

The End.