199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for balgarath

Here we go, I am working on some code to store an IP address in an object. I have overloaded operators >>, <<, and == and they are working fine with 1 problem. I am supposed to be able to cin >> ip1 >> ip2 >> ip3; but after I …

Member Avatar for balgarath
0
98
Member Avatar for camdonsquire

Hi, thanks for the welcome. I hope you can help me with ,y java pursuit. [COLOR=#000000]I am trying to create a class Date which will eventually contains a single method called showMonth() which will display a calendar for a particular month in the following format ([/COLOR] [COLOR=#000000] January[/COLOR][COLOR=#000000]S[/COLOR][COLOR=#000000]M[/COLOR][COLOR=#000000]T[/COLOR][COLOR=#000000]W[/COLOR][COLOR=#000000]T[/COLOR][COLOR=#000000]F[/COLOR][COLOR=#000000]S[/COLOR][COLOR=#000000] [/COLOR][COLOR=#000000] [/COLOR][COLOR=#000000]1[/COLOR][COLOR=#000000]2[/COLOR][COLOR=#000000]3[/COLOR][COLOR=#000000]4[/COLOR][COLOR=#000000]5[/COLOR][COLOR=#000000]6[/COLOR][COLOR=#000000]7[/COLOR][COLOR=#000000]8[/COLOR][COLOR=#000000]9[/COLOR][COLOR=#000000]10[/COLOR][COLOR=#000000]11[/COLOR][COLOR=#000000]12[/COLOR][COLOR=#000000]13[/COLOR][COLOR=#000000]14[/COLOR][COLOR=#000000]15[/COLOR][COLOR=#000000]16[/COLOR][COLOR=#000000]17[/COLOR][COLOR=#000000]18[/COLOR][COLOR=#000000]19[/COLOR][COLOR=#000000]20[/COLOR][COLOR=#000000]21[/COLOR][COLOR=#000000]22[/COLOR][COLOR=#000000]23[/COLOR][COLOR=#000000]24[/COLOR][COLOR=#000000]25[/COLOR][COLOR=#000000]26[/COLOR][COLOR=#000000]27[/COLOR][COLOR=#000000]28[/COLOR][COLOR=#000000]29[/COLOR][COLOR=#000000]30[/COLOR][COLOR=#000000]31[/COLOR][COLOR=#000000] …

Member Avatar for p.bondam
0
103
Member Avatar for krauz2

Hello everyone. I have been working on this program for over a week. I really need some help getting this done. I was able to get the math.random to work but when I run my program as an applet I have a text box that I dont know how to …

Member Avatar for p.bondam
0
159
Member Avatar for foxy xx

me agian lol I posted on here over a week ago about a java assignment.. thanks to those who offered help i really appreciate it even tho it wasnt much help to me at the time ;) ... i am ashamed to say, that even with all the great advice, …

Member Avatar for p.bondam
0
100
Member Avatar for gmpjames

Hi everyone I'm new here and was wondering if anyone could help me please. I am trying to implement dasher in java. Here is the link to dasher [URL]<snipped> I have already set-up the main GUI components and have left the BorderLayout.CENTER for the main program. I have also written …

Member Avatar for Ancient Dragon
0
39
Member Avatar for yanz

Hi everyone. Hope you guys can help me. Attached below are VB6 codes for a hand phone to call to a modem. When the action is executed, a message box will pop out ‘Ring Ring’. I just want to know is there anyone out there have the codes for SMS …

Member Avatar for dtbradio
0
220
Member Avatar for Nurilhansiz

hi! im somekind in a lost mode.how can i call a txtfile out so that it can run a machine? eg if i press this cmdA, it will call out txtfile1 and txtfile1(the command to run the machine is stored in here) will run the machine. and also how is …

Member Avatar for dtbradio
0
134
Member Avatar for boujibabe

I working on a program that summerizes text documents and I need a way to find the length of the longest and shortest lines in the file and display it in a log file. I've already done a character count and line count. Also say I wanted to created different …

Member Avatar for boujibabe
0
333
Member Avatar for anandarose

The following code is supposed to use the data in the attatched file to generate a list of relavent houses available based on the specifacations that you enter. After I enter my prefered search method I can't get it to stop asking me how many bed/bathrooms or what price i …

Member Avatar for dtbradio
0
106
Member Avatar for rbinc

[B]Background:[/B] I need the user to type in an int "k" key for an encryption program. For the program to work right, the user entered int needs to be between 1-25. It can't be higher. The problem is if the user enters something other than an int, the program either …

Member Avatar for Lerner
0
221
Member Avatar for Gunner54

When i compile this code i get a few errors (i guess are simple for you guys) [CODE]void WriteMem(DWORD MemOffset, DWORD DataPtr, DWORD dataLen) { { DWORD OldProt; VirtualProtect((void*) MemOffset, dataLen, PAGE_EXECUTE_READWRITE, &OldProt); RtlMoveMemory((void*) MemOffset, (const void*) DataPtr, dataLen); VirtualProtect((void*) MemOffset, dataLen, OldProt, &OldProt); } void EnableHack(BYTE* AddrToChange, BYTE* To, …

Member Avatar for WaltP
0
169
Member Avatar for MarkWalker84

Hi, So it seems my self-teaching experience isnt going as well as i hoped. Every time i think im starting to understand something new pops up that halts me in my tracks :-) lol Was wondering if someone could just give me a quick pointer in the right direction of …

Member Avatar for vegaseat
0
96
Member Avatar for johnpeter1989

I get this error that "LINKER ERROR : SEGEMENT _TEXT EXEEDS 64K". this error does not come on compiling(ALT+F9) but it shows 25 such errors on running(CTRL+F9). I am using a turbo c++ 3 IDE. I am doing a school activity. The program user graphics mode. this error doesnt show …

Member Avatar for johnpeter1989
0
109
Member Avatar for Ice4fire

Hi people, I'd really like to have a crack at learning java. Ive never touched it before in my life, so can anyone point me to a site where i can take my first steps at learning.. Thanks guys Sorry if this seems a bit of a wasted post Tony

Member Avatar for Ice4fire
0
107
Member Avatar for joelw

im getting an error cannot convert 'int' to 'double' for argument '1' to 'double sort Array(double'.int)' while trying to debug code what does that mean here is another copy of my code now. [code] #include <iostream> #include <iomanip> using namespace std; // Function prototypes double sumArray(double[], int); double getHighest(double[], int); …

Member Avatar for joelw
0
120
Member Avatar for pugg09

[B]RegQueryValueEx and ÌÌÌÌÌÌÌÌÌÌÌÌÌ !!!![/B] Does anyone know why my code gives me "ÌÌÌÌÌÌÌÌÌÌÌÌÌ" Here's the code. HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = "Volatile Environment"; LPCTSTR regReq = "USERDNSDOMAIN"; DWORD size1; DWORD Type; if( RegOpenKeyEx(HKEY_CURRENT_USER, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, (LPBYTE)rgValue,&size1); } RegCloseKey(keyHandle);

Member Avatar for pugg09
0
119
Member Avatar for Tiggey

Hello! I need some help with my code. Here's the background information: Six students take three tests. I need to find the grade average of each student (test 1, 2, and 3), then I need to find the average grade of test 1, test 2, and test 3. Next, I …

Member Avatar for QVeen72
0
103
Member Avatar for centos123

Hi I have a text file which has 4 heading which will constitute the number of columns and based on values an array has to be populated. To give a clear picture it is as: input text file looks like: heading1 value1 10 value2 10 11 heading2 value3 10 11 …

Member Avatar for centos123
0
197
Member Avatar for _Soul_

Hi everybody I already see in this forum how to make the program Hailstone Numbers in c++ But i need to make it in c#:confused: Could any charity soul help me plese...:)

Member Avatar for Godfear1
0
139
Member Avatar for Gowsi

Hi friends.... how to connect MS.Acess database into vb.net...... is any ODBC setting needed?

Member Avatar for Gowsi
0
204
Member Avatar for octopus1991

hey guys i need your help please really urgent can u give me visual basic codes for 1- a program that calculates the greatest common divisible(divisor) by only (while) statement ...plz guys ! only while or if statements ! 2- a program that prints the following nubers also by only …

Member Avatar for Dukane
0
84
Member Avatar for noman78

Hi there i need sample code to change ODBC of reports at runtime. scenario: i have few clients using differnt DSN but sae set of ASP code, my all reorts have been designed in crystal8 and asp. now ther are two ways, ither create differnt sets of reports for differnt …

Member Avatar for noman78
0
107
Member Avatar for Naters_uk

Hi people, I am very amateur with ASP.NET. I am working on a movie booking system and i am currently having some problems linking my normal html homepage to my membership registration page which is done with asp.net. I tried using Frontpage hyperlink propeties to link my homepage with my …

Member Avatar for campkev
0
734
Member Avatar for aznballerlee

[code] #define _CRT_SECURE_NO_DEPRECATE #include <iostream> #include <fstream> #include <cstring> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; const int MAXWORDS = 8000; const int MAXWORDLENGTH = 6; const int MINWORDLENGTH = 4; int nWords; void fillWords(char words[][MAXWORDLENGTH + 1], int maxwords, int& num); int playOneRound (int wordnum); void correct …

Member Avatar for ~s.o.s~
0
119
Member Avatar for Yustme

Hi, I'm trying to make a project which "converts" for example from meters to centimeters. I fill 20 labels with a random generated question containing a "fromUnit" and "toUnit" object. Here is my code: [code] public partial class Metrics : Form { private double[] _answer; private TextBox[] _textBox; private Label[] …

Member Avatar for iamthwee
0
161
Member Avatar for Eddy Dean

Hello, I want to be able to read the memory of a process in Linux. After some googling I've read that ptrace can be used to this. The syntax of ptrace is as follows: [code]int ptrace(int request, pid_t pid, int addr, int data);[/code] The first value (int request) is what …

Member Avatar for ~s.o.s~
0
250
Member Avatar for hoosier23

This program is supposed to show the adjacency lists that are built given the input pairs:: 0-2, 1-4, 2-5, 3-6, 0-4, 6-0, and 1-3 I am having trouble with the syntax of my code. Could someone please help? [code] #include <iostream> using namespace::std; int V; struct node { int v; …

Member Avatar for hoosier23
0
353
Member Avatar for vdhara

Hi, I am trying to insert a record in a mySQL 5.0 database through a JSP. I am getting an error that the format is invalid. I don't know how to manipulate the code using Java itself. Can anybody guide me? Thanks VDhara

Member Avatar for jwenting
0
132
Member Avatar for rich84

Could anyone help me with completing this project? 1. In order to demonstrate your understanding of Object Oriented Programming within a visual environment you are required to create an object oriented graphical program to simulate a simple telephone network. Guidance: Use a suitable container to store the active phones within …

Member Avatar for waynespangler
0
93
Member Avatar for blancanyc69

Hello all I am taking an intro to programming class and need any help I can get this is one of the exercises that I have to to and my answer is at the bottom if anyone can tell me if at least if I'm going in the right direction …

Member Avatar for Nick Evan
0
103
Member Avatar for batista06

I stumbled on this function that calculates #'s that are perfect, how ever I do not understand why it works. any one care to explain? [code] int perfect(int num,int den) { int rem = num - ((num/den)*den); if (rem==0) return(den); else return(0); } [/code]

Member Avatar for DavidRyan
0
116
Member Avatar for matrimforever

I need help figuring this out. What I need is this:[LIST=1] [*]The section number, as a string [*]The instructor's name, also as a string [*]The number of students in this section, as an integer. [*]The student's scores for the test, as an array of integers. Declare this array to be …

Member Avatar for Ancient Dragon
0
109
Member Avatar for Harshita_garg

Hi Frenz! Please go through the following program made for matrices:- [code=cpp] template <class T> class Matrix { private: int dim1;int dim2; T **mtx; public: Matrix(int a) { dim1=dim2=a; mtx=new T*[dim1]; for(int i=0;i<dim1;i++) mtx[i]=new T[dim2]; } ~Matrix() { delete []mtx; } Matrix<T> operator +(Matrix<T> M) { Matrix C(dim1,dim2); for(int i=0;i<dim1;i++) …

Member Avatar for Harshita_garg
0
144
Member Avatar for andy_mcdougall

Hi, I have an MS SQL 2000 database with a table that is used to store the header information on product returns. One of the fields in the table is a true/false field that indicates if the return has been processed (become a credit note). Can anyone tell me how …

Member Avatar for MCP
0
140
Member Avatar for new_girl

Hello, Anyone know how I correct the following error message: My php website has category links, and I had to add a category which I did from my admin panel's "Category" than "Sub Category" than "Add". After I added the category, it shows up on my site but where the …

Member Avatar for new_girl
0
89
Member Avatar for Mushy-pea

Hello everyone. I've run into a problem with regular expressions; the extraction "variables" ($1, $2, $3 etc.) are read only and scoped to the current block. If you need to do two regex extraction operations in the same block, is there a way to reset the ($1, $2, $3 etc.) …

Member Avatar for Mushy-pea
0
141
Member Avatar for angel_e1205

Hello, I've been creating a page in php that needs to invoke heavy calculation functions for which I've created dinamic extensions for linux (.so) in c++, but there's one problem I have in one of those functions, I need to modify an array passed to that function by reference and …

Member Avatar for iamthwee
0
120
Member Avatar for mcosciel

i'm using the included cd that came with my Deitel Deitel Third Edition C++ book. Help / about tells me i'm using visual C++ 6.0 I'm trying to compile a piece of code i wrote in FORTRAN. The code runs and accepts changes to my namelist but does not compile …

Member Avatar for Ancient Dragon
0
92
Member Avatar for nasduck

Hello, there: I am trying to calculate to the inverse of matrix A. How to call function to main part? How to write the code for a matrix? Can someone help me modify the errors? Thank you very much! -------- [code=c] #include "matrix.h" Matrix solve(const Matrix& A, const Matrix& B){ …

Member Avatar for iamthwee
0
97
Member Avatar for Phaelax

Is there a limit to how deep you can go with inner classes? Like having a class within a class, within a class, within a class, etc.... I'm just curious.

Member Avatar for jwenting
0
295
Member Avatar for gemacjr

Unable to correct this [code] void main() { char string[20]; char *aString=string; function (aString); } void function(char *name) { cout<< "enter name"; cin >> *name; cout << name; } [/code]

Member Avatar for may4life
0
78
Member Avatar for kie

Hey all Basically, I am trying to get my head around data validation. I am very new to C, in fact I have only been doing it a few days. I am trying to make a simple currency converter that validates that the data is numerical. Alos, I would like …

Member Avatar for WaltP
0
258
Member Avatar for sliver_752

Hi i am making a simle gui using wxpython and here is the script [code] import wx class bide(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, "just a test", pos=(0, 0), size=wx.DisplaySize()) panel = wx.Panel(self, -1) statusBar = self.CreateStatusBar() toolbar = self.CreateToolBar() #toolbar.AddSimpleTool(wx.NewId(), images.getNewBitmap(),"New", "Long help for 'New'") toolbar.Realize() menuBar = wx.MenuBar() …

Member Avatar for sliver_752
0
106
Member Avatar for ramsaryanmca

Dear all, im new to this forum.can u pls help me to do this one. i am reading a particular pdf file and searching for a particular word and how time it occured means number of occurences in that file.. pls assist me to do this one Thanx in advance.. …

Member Avatar for lok_tan
0
128
Member Avatar for saurabh_kanwar

Hi Guys, Just Wondering if it's possible to choose whether to run a macro or not depending on which user logs in. I've got a macro which updates the database everytime it starts. I want to restrict it to only limited number of users. Thanks for your time

Member Avatar for saurabh_kanwar
0
88
Member Avatar for nutwood33

I'm creating a simple little macro that draws a chart from some data in Excel. The frustration comes because every time my macro draws a chart, it sequences the number. The first chart is "chart 1" the second is "chart 2" even if "chart 1" no longer exists. I know …

Member Avatar for Tonye53
0
496
Member Avatar for gemacjr

[COLOR=#0000ff][code]#include<[/code][/COLOR][code=c][color=#800000]iostream>[/color] [color=#0000ff]using [/color][color=#0000ff]namespace[/color][color=#000000] std;[/color] [color=#0000ff]consta[/color]code][color=#0000ff]nt[/color][color=#000000] namesize=21;[/color] [color=#0000ff]void[/color][color=#000000] getName([/color][color=#0000ff]char[/color][color=#000000],[/color][color=#0000ff]int[/color][color=#000000]);[/color] [color=#0000ff]int[/color][color=#000000]main()[/color] { [color=#0000ff]int[/color] index=5; [color=#0000ff]int[/color] count; [color=#0000ff]char[/color] names[21]; [color=#0000ff]char[/color] *aString=names; [color=#0000ff]for[/color](count=0;count<index;count++) { [color=#0000ff]char[/color] names; getName(*aString,index); cout << [color=#800000]"You entered: "[/color]; cout << &names; } } [color=#0000ff]void[/color][color=#000000] getName ([/color][color=#0000ff]char[/color][color=#000000] names[][21], [/color][color=#0000ff]int[/color][color=#000000] index)[/color] { cout << [color=#800000]"enter a name: "[/color]; cin >> names[index]; } …

Member Avatar for John A
0
114
Member Avatar for TylerSBreton

This block of code will compile, but gives me a runtime error: before the first comment is a header that is included in the file that you may need to analyze my code. [code= c] typedef char *string; typedef struct { string fieldName; string value; }oneField; /* this starts the …

Member Avatar for TylerSBreton
0
5K
Member Avatar for MDGM

Hi all, I have a menu on my website and i got the code from a website called dynamicdrive.com, and the menu is based on css and a bit of javascript, with the menu content consisting of list values. The initial border for the menu is black, so that little …

Member Avatar for tgreer
0
157
Member Avatar for sneekula

I know that Pyhon compiles source code to a Byte Code before the interpreter works on it. What does this Byte Code look/behave like?

Member Avatar for vegaseat
0
148

The End.