132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JaksLax

[ICODE] /* * Global Tech's employee system */ #include<iostream> using std::cout; using std::cin; using std::endl; #include "Person.h" int main(){ Person employee("Sue" , "Jones"); cout << "Employee Info " << employee.getFirstName() << " " << employee.getLastName() << endl; return 0; } /* * Person Class Definition */ #include <string> using std::string; …

Software Development c++
Member Avatar for cikara21
0
112
Member Avatar for bcm

how to copy data from one table to other table in vb.net from internet

Software Development vb.net
Member Avatar for sharrmee
0
153
Member Avatar for iamoldest

Okay everyone first heres a source page for this module that im having trouble with... [url]http://www.pygame.org/docs/ref/font.html[/url] Anyways my problem is finding out how to use this module to be able to print a variable with font.render....... anyone know how? Heres the code... [ICODE] #! usr/bin/env python import pygame, sys, os …

Software Development python
Member Avatar for sneekula
0
2K
Member Avatar for tlc30

Hi, I've just completed my intro to programming class and my last assignment is to write a program for a hangman game. I have started and I think somewhere along the line I've gotten confused, can anyone give me some guidance. We did not do randomize in class but the …

Software Development pascal
Member Avatar for Duoas
0
106
Member Avatar for guest7

Hi, I am trying to read the file (f1.txt) which contains : 3 0 -6 0 4 0 -8 0 ... I wish to read the first number from consecutive 2 lines and process them. Following is my code: std::vector<int> row; std::vector<std::vector<int> > two_node; int main() { string line1, line2; …

Software Development c++ ios
Member Avatar for Radical Edward
0
239
Member Avatar for coveredinflies

Hi, sorry if this has been asked before I did a search but couldn't find it. How do I define a pointer to a 2D array? (I am trying to pass it into a function). Thanks.

Software Development c++
Member Avatar for ArkM
0
456
Member Avatar for matt_hates_code

Ok I'm using the GCC compiler in C . I have a tree style of menu that has been designated function "Manager". I want to return to the top of the tree so basically what I do is at some point from within the "Manager" function I make the call …

Software Development c++
Member Avatar for matt_hates_code
0
119
Member Avatar for CoolGamer48

Hey, I'm learning Objective-C, and they use [ICODE]#import "File.h"[/ICODE] instead of [ICODE]#include "File.h"[/ICODE]. The tutorial I'm using says that import is like an include once thing, and it basically implements the #ifndef blocks that's normally done manually in C++. I was just wondering if this is something specific to Objective …

Software Development c++ objective-c
Member Avatar for Radical Edward
0
148
Member Avatar for robertmacedonia

Hello, I was just looking up the threads and I must say I saw a lot of codes with "std::string", "std::cout", etc... I just wanna ask, wouldn't it be better if you just wrote "using namespace std" instead ? I am doing it all the time, but if it's wrong …

Software Development c++
Member Avatar for William Hemsworth
0
256
Member Avatar for NekoGráfico

Once the object is copied to the vector the pointer isn't updated. If I use a copy constructor to fix this problem I get awkward results. Could anyone please help me find a solution? Thanks in advance. [code=C++] #include <iostream> #include <vector> using namespace std; typedef struct { void *map; …

Software Development c++
Member Avatar for NekoGráfico
0
107
Member Avatar for saneeha

I am using memcpy()function.. memcpy(&_bpb, bBootSector, 512); where _bpb is the variable of structure, bBootSector is byte array the whole progran works fine but at the exit it generates the following error: "[B]Run-Time Check Failure #2 - Stack around the variable '_bpb' was corrupted[/B]." Can any one please guide me …

Software Development c++ visual-studio
Member Avatar for saneeha
0
207
Member Avatar for drum12

I have two arrays. In the first one I have student surnames, in second the student grades. (One surname one line with grades).My task is to find the arithmetic average for each student and print that student name and grade which have the biggest grade in array. I wrote the …

Software Development java
Member Avatar for VernonDozier
0
125
Member Avatar for nadiasheikh

Hi, How to achieve hashing in C++? Can you explain this giving a small example? rgds

Software Development c++
Member Avatar for CrazyDieter
0
107
Member Avatar for iansane

Hi, I've been looking around for how to execute another application from a c++ app. I remember in VB I could have my app launch the browser or other app and could even have it launch command line with the commands I wanted the system to run. I have found …

Software Development c++
Member Avatar for iansane
0
296
Member Avatar for dajiebuda

I'm learning java. I have one Jframe with 5 jbuttons. I want to click button1 to have a new Jframe come up. How should I define the 2nd Jframe? class? public class?

Software Development java
Member Avatar for VernonDozier
0
141
Member Avatar for Manutebecker

I want integers 1-52 to be drawn only once, so every "card" will be seen and not one picked twice, heres the code [code] #include<iostream> #include<time.h> #include<string> #include<stdlib.h> using namespace std; class Player{ int hand; }; int main() { srand(time(NULL)); int deck=53; int *drawn; int notdraw[52]; for (int n=1;n<53;n++) { …

Software Development c++
Member Avatar for JaR
0
116
Member Avatar for arun_lisieux

Hey ppl, Im trying to solve some problems for topcoder website for practice purposes. But the compiler shows the following error for the codes i've been compiling. I have no problems compiling these codes with Borland C++. I've posted the errors and code below. Errors: Your code did not compile: …

Software Development c++
Member Avatar for arun_lisieux
0
181
Member Avatar for arun_lisieux

Hey ppl, I was browsing thro the topcoder sample problems and came up with this one. Plz suggest some good algorithm for this. Problem Statement Note: Please keep programs under 7000 characters in length. Thank you Class Name: SquareDigits Method Name: smallestResult Parameters: int Returns: int Define the function S(x) …

Software Development algorithm c++
Member Avatar for arun_lisieux
0
212
Member Avatar for Dell XPS

I have made a program that you can add your contacts but i need to get a way to edit the persons details.... The details are kept in a txt file(because i don't know how to make this using a db) I have a list box showing the name and …

Software Development visual-basic
Member Avatar for varghaimani
0
167
Member Avatar for rajeshkhanna_in

Hi all I have created an application which automates the Preparation of Question Papers for Various Exams. This software uses a DSN connection to a ACCESS database. While I was developing software I created this connection manually but while I distribute my application this connection will have to be created …

Software Development visual-basic
Member Avatar for rajeshkhanna_in
0
206
Member Avatar for olagh

Hi everybody, I want to declare a class having an object of another class as its member data. but I recevie compiler error: "No appropriate default constrctor available" my code samlpe is as follows: [code] class bigInt { bigInt(unsigned); bigInt(const bigInt &); unsigned *value } class RSA { RSA(unsigned); bigInt …

Software Development c++
Member Avatar for olagh
0
154
Member Avatar for MSmith78

Good day everyone. I'm completely new to scripting. I'm trying to practice in it. I'm using Bash on a SuseLinux 10.3 box. I want to practice by sort of creating my own simple IP Monitoring app that will notify me when somethings down. That said, here's my first simple but …

Software Development shell-scripting
Member Avatar for eggi
0
109
Member Avatar for lllllIllIlllI

Hi What i want to do for this is to have my program run in the background simulate pressing a button such as ENTER every 10 seconds or so. I have trauled the net and found solutions for VB and C++ but none for python. Is this possible in python …

Software Development python
Member Avatar for lllllIllIlllI
0
389
Member Avatar for Y_Game

Ive been trying to create a number guessing program were the program guesses your number instead of the user guessing the programs number heres what i have so far: [code=c] #include <stdio.h> int main(void) { int guess = 50; printf("Pick an integer from 1 to 100. I will try to …

Software Development c
Member Avatar for Aia
0
133
Member Avatar for JackDurden

I keep getting an error "cannot convert parameter 1 from 'char (*)[15]' to 'Student_Type *" in the swap call. gradclass is a struct and Student_Type is the name of the struct. Im trying to sort names with this. Anyone know how to fix this? [CODE=cplusplus]void SortNames(Student_Type* gradclass, int i) { …

Software Development c++
Member Avatar for ArkM
0
166
Member Avatar for HolyEnd

I need a little bit of help with a program I am making. I have most of the program made except for this part: [CODE]procedure Button1Click (Sender: TObject); begin Button1.Click := public int getPixel(int x, int y); if (R=R+10) or (G=G+10) or (B=B+10) then // Simulate a key press keybd_event(VK_NUMPAD4,0xcb,0 …

Software Development delphi pascal web-browser
Member Avatar for HolyEnd
0
133
Member Avatar for Psykocyber

Hi I'm trying to use a vector to store function pointers, but when implemented in a class there method ceases to work. Class header: [CODE]std::vector<void (*)()> fns[/CODE] Class .cpp file: [CODE] fns.push_back(Search); fns.push_back(Print);[/CODE] Search() and Print() are (public) members of a class named Movie. This code is currently placed in …

Software Development c++
Member Avatar for Psykocyber
0
5K
Member Avatar for leegeorg07

hi my brother has created a program called 'guess my number' (see it here: [url]http://www.naughtyottselprograms.tk/[/url]) and i know the coding that i need but i dont know if there is a module that includes numbers does anyone know the name for that module if it exists?

Software Development python
Member Avatar for friendklay
0
236
Member Avatar for linu

Hello Please help me with the following: i am trying to open a file with a specific application using java. I am working on a desktop application. The following code using java.awt.Desktop works for known extension types,but when trying to open a file with an unknown extension it throws an …

Software Development file-system java
Member Avatar for linu
0
217
Member Avatar for denbecker

I'm a student working on STL containers which were not formally taught in class. The website I typically follow hasn't helped, and neither have my textbooks. I'm getting an assertion error with this "while" loop. Probably something obvious to someone who works with C++ STL... There's an explanation for all …

Software Development c++
Member Avatar for Salem
0
118
Member Avatar for karthik_cud

Hi, i"m creating an application involving multiple forms i"ve successfully linked the forms but the problem is when a new form(form2) is linked by a button control form1 is also running,so i placed the following code in the load event of form2 "form1.close()" this segment of code terminates the entire …

Software Development vb.net
Member Avatar for @bhi
0
100
Member Avatar for JaR

Hello again. I am currently using a base class for a certain type of object, which looks like this: [CODE=C++]#include <vector> template <class T> class CObject { public: inline virtual ~CObject () { } virtual std::vector<T> *Output (std::vector<int> *Input) = 0; };[/CODE] The problem, that arises from this contraption is, …

Software Development c++
Member Avatar for JaR
0
2K
Member Avatar for R3B3L

How do you check if a button was clicked in Visual Basic .NET ?

Software Development vb.net visual-basic
Member Avatar for selvaganapathy
0
17K
Member Avatar for phillipeharris

I have the code runnig and it is all right. but within my loop I have it set from 0- 100 but my cout << only shows 59 - 100. I have tested the code with other numbers such as 20 -50 and 0 -38 .... and I see that …

Software Development c++
Member Avatar for phillipeharris
0
286
Member Avatar for Black Magic

Hey, I'm just wanting to know how i can make some code so no random numbers are the same, I've got this so far to get the random numbers and display them but tried this and that and couldn't get it to work. [CODE=C++]#include <iostream> using namespace std; int main() …

Software Development c++
Member Avatar for ArkM
0
385
Member Avatar for neknek

I compiled the code just fine. But It doesn't show on the webpage. The error message is: load: class C:\kenken\Xample1.class not found. java.lang.ClassNotFoundException: C:.kenken.Xample1.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown …

Software Development java java-swing
Member Avatar for neknek
0
119
Member Avatar for Agni

Hi Guys, i just wrote a program to print a sentence backwards using recursion. But i'm not too happy about it, if someone can give me a more optimized solution i'll be glad. You have to use std::string class. input: where the streets have no name output: name no have …

Software Development c++
Member Avatar for Agni
0
348
Member Avatar for willy taufik

where i can find emulator nokia 3500(clasic) for netbeans 6.1?

Software Development java
Member Avatar for peter_budo
0
230
Member Avatar for Naween

How to use ActionListener and ItemListener together in one java program??

Software Development java
Member Avatar for Naween
0
77
Member Avatar for linux0id

Hello everyone! I am new to C++, and still haven't got to grips with objects, inheritance etc. etc. Anyway, here's the question - [CODE]class mainFrame : public Gtk::Window { private: library *m_library; player *m_player; }[/CODE] How can member m_player, when finished playing a track, access m_library to select the next …

Software Development c c# c++
Member Avatar for linux0id
0
98
Member Avatar for lllllIllIlllI

Hi I have been trying to do one of the projects in the projects for beginners section that asks you to get your computer to log off after a certain amount of time has passed without any mouse or keyboard movement. I am not yet up to that bit, in …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for breezyy

Hey there, I'm still a newbie to VB and here's my question. I have say 3 check boxes and each of them is assigned a message. If I click on one of them, it displays its message (say Hello) in a text box. Now if i press on the 2nd …

Software Development visual-basic
Member Avatar for breezyy
0
122
Member Avatar for gang

can anyone there help me about my problem in displaying a record of names,gender,annual salary and age..the inputs are the first name,lastname,gender,birthday and monthly income...i just have a hard time implementing it coz i have to use a string to deal with the name..how will i make it???just a hint....

Software Development c++
Member Avatar for gang
0
95
Member Avatar for ++C LOVER

[CODE=LANGUAGE]#include<iostream> using namespace std; class Nibble { private: union { int number : 4; }; public: Nibble(int=0); friend ostream& operator<<(ostream&,const Nibble&); friend istream& operator>>(istream&,Nibble&); }; inline Nibble::Nibble(int n) : number(n) { cout << "constructor.." << endl;} ostream& operator<<(ostream& nout,const Nibble& n) { return nout << n.number; } istream& operator>>(istream& nin,Nibble& …

Software Development c++
Member Avatar for Alex Edwards
0
579
Member Avatar for C#Novice

I have a project where the user has to input a range of questions along with the question numbers. (So the number of questions is not fixed.) I am using a panel where i am adding the dynamically created textboxes. The textboxes are created with the user clicks an image …

Software Development
Member Avatar for selvaganapathy
0
100
Member Avatar for rocky87

I need help on an assignment, I don't know where to start, I have coded to so far for it to read in the words from a text file and an array for the words to be put into, after that I'm lost as to what the next step would …

Software Development java
Member Avatar for Alex Edwards
0
164
Member Avatar for Shadoninja

Is there a way to save in a text based game through the MSDOS window? I want to be able to save the variables that store the mana, health, ect of a player.

Software Development c++
Member Avatar for kidprogrammer
0
362
Member Avatar for K.Vanlalliana

If any body help me, I shall be very greatful: How shall we write Code using VB so that the value of the product of two variable should be rounded to the nearest Integer number which is divisible by 5. Is there any way to check whether the given number …

Software Development visual-basic
Member Avatar for selvaganapathy
0
90
Member Avatar for anshulagarwal

I am using borland compiler... i need to define 4 gloabal arrays of double type that can store 5000 values like double d[5000],d2[5000],d3[5000],d4[5000].. and an array of objects of class data whose syntax is: [code]class data { public: int x,y; double s,w,e,d; }d[5000],f[5000];[/code] i am facing two errors: array size …

Software Development c++
Member Avatar for jesseb07
0
147
Member Avatar for atplerry

i have a completed project want to comply an run succefully on system that have vb but i want to know the setup to comply so that i can install it and run in a computer without vb or refer me to a site that fully elaborate it Thank your …

Software Development visual-basic
Member Avatar for atplerry
0
95

The End.