199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JoBe

Hi guys, This exercise goes as follows: - Write a function that counts the number of occurences of a pair of letters in a string and another that does the same in a zero-terminated array of char(a C-style string). For example, the pair "ab" appears twice in "xabaacbaxabb". Now, I …

Member Avatar for Dave Sinkula
0
374
Member Avatar for pagantom

I'm lost. why won't my objects instantate? Here's the code, compiler errors are below. thanks [code=cplusplus] class date { private: char *mo; int day, yr; public: date() {*mo = 0; day = 0; yr = 0;} date (char *m, int d, int y) {mo = new char[strlen(m)+1]; strcpy(mo, m); day …

Member Avatar for ~s.o.s~
0
129
Member Avatar for tech291083

hi, i m running fedora core 5 32 bit as the os and want to learn a bit of c++ programming. did the search on the net and came across a post telling the fact that something called eclipse can be used to write c++ code and compile it perfectly. …

Member Avatar for ~s.o.s~
0
127
Member Avatar for nephros

Hello Everyone, I need to complete a task, although I am not quite sure how? The task is to create a very unusual search system for a car rental site. There is a database of cars that the rental company possesses, and when the user specifies the rental period - …

Member Avatar for nephros
0
151
Member Avatar for ilgar

Hi I am new in VB. I have writen simple code Private sub cmdBotton_Click() txtbox.font.size = 12 End Sub then i got error message that "property 'Size' is 'ReadOnly'" I would appreciate if you could help me with this ilgar

Member Avatar for ilgar
0
97
Member Avatar for Madame Cholet

Hi I am trying to identify whether a variable I have passed to a listarray exists. If it does I can return the position of the variable using the following function, but how can I return something if it is not found in the list (e.g. variable not found in …

Member Avatar for iamthwee
0
101
Member Avatar for Colin Mac

Here's an example of two programs that do the same thing, I have been taught how to do them like the first way. Now, I'm reading an ebook and it explains to do them like the second way. Which way do you think is more proper? thanks [code]#include <stdio.h> int …

Member Avatar for Colin Mac
0
102
Member Avatar for newbie2c++

Hi Everyone! I am supposed to be writting a program that will run from the web. I created a short program to see if I could use linux by uploading the file to my public_html and then using putty to change it to a .cgi file but nothing is working. …

Member Avatar for Ancient Dragon
0
83
Member Avatar for stormz

Hi everyone, im doing this question: (1) Find the errors in the applet given below and re-write it after correcting the errors. [CODE] import java.awt.*; import java.applet.*; public class appError extends Applet{ String name; public void paint() { Font font=new Font(“Monospaced”, Font.ITALIC, 36); setFont(font); setBackground(yellow); setColor(red); drawstring(name); }//end of paint() …

Member Avatar for iamthwee
0
67
Member Avatar for babutche

Hi, I need help please. At first I was understanding the Python language but I got lost somewhere along the line. Can someone please guide me through implementing an addLetterGrade method? I am not very good with computers and I am having a very hard time. This is my first …

Member Avatar for babutche
0
202
Member Avatar for vicky_dev

Can you write a program that prints its own source code ( in C/C++ )? Of course it would be easy to do that referring to the source file, but how can this program be written assuming that the souce file is not available at run time? :?: :?:

Member Avatar for SpS
0
307
Member Avatar for ambitious

Hi all, I am trying to build extension modules in Visual Studio.NET 2003. I get the following link errors in debug mode, but there are no errors in release mode. _viscoelastic error LNK2019: unresolved external symbol __imp__Py_FindMethod@12 referenced in function _veModelGlobalRayleigh_getattr@8 _viscoelastic error LNK2019: unresolved external symbol __imp__Py_InitModule4@20 referenced in …

Member Avatar for Mohfeza
0
363
Member Avatar for jethroalias97

hi, i'm trying to execute some c++ code from the php script in my webpage, but its not working. the best i could find was the php code below. [code=php] $output = shell_exec('ls -lart program.exe'); echo "<pre>$output</pre>"; [/code] here is the code of program.exe (codewarrior created program.exe from this code) …

Member Avatar for Puckdropper
0
102
Member Avatar for Matt Tacular

[php] import random availableCountries = [0, 1, 2, 3, 4, 5, 6, 7] firstTurnsCountries = [] secondTurnsCountries = [] def countryDivider(countryNum): counter = 0 while True: if counter == 8: break num = 7 if num > 0: countryToAdd = random.randint(0,num) if num == 0: countryToAdd = 0 if counter …

Member Avatar for Matt Tacular
0
113
Member Avatar for assgar

Hello First sorry if there is to much code in this example. I am new to working with multi page forms. I have a search form that gets preloaded info from the database. There are 3 scripts (a html page, a preload script and a process script). There is a …

0
85
Member Avatar for jamaicandods

I am trying to print out fibonacci numbers in assembler, anyone has the code or link to code that can perform this? thanks.

Member Avatar for TylerSBreton
0
235
Member Avatar for cyberjoe

I'm looking for a lazy loading solution in c#. The idea is, to have a kind of object factory, which will be responsible for creating my entity objects. When a property of such an object is accesed and it is not yet loaded, the factory (or a magic watcher) will …

Member Avatar for TylerSBreton
0
94
Member Avatar for apriestofgix

I have recently become addicted by the many text based games build with PHP and am looking to make one myself. I know HTML, JavaScript, CSS, and basic PHP, but need help in how i would go about making a server from my computer, and then creating a game that …

Member Avatar for John A
0
105
Member Avatar for DynamitMsk

Hello, I'm working o a function that takes a file with binary numbers and returns the sum of those numbers. Here's where I'm now [code] int Sum (char *fileName) { char * numEnd; long temp(0); int result(0); string line; ifstream file (fileName); if (file.is_open()) { while (! file.eof() ) { …

Member Avatar for John A
0
110
Member Avatar for backstabber

this program compiles and gives the following return state/code Exit code: -1073741819 this is very irritating i would also ask please do not post the output file here this is a challenge from arcanum i just want a working program. please help me with this program. this is what i …

Member Avatar for backstabber
0
130
Member Avatar for GuruGhulab

Hello there, my question is , i read upto 20 numbers from a file, then i have to sort them into, negatives, odd's and even's, then i have to display total negatives, odd's, and even's, i also have to display all the acutal values of the negatives, odd's, and even's. …

Member Avatar for GuruGhulab
0
137
Member Avatar for aqeelmoosa

[COLOR=#000000]Hi everyone,,,:cheesy: [/COLOR] [COLOR=#000000]This is my first post in this forum,,,,,,,[/COLOR] [COLOR=#000000]In fact I've one question,,,,,,,[/COLOR] [COLOR=#000000]I’m using “[B]Microsoft Visual Web Developer 2005 Express Edition[/B]”, and created a class named Class1 which contains one function named dismsg. This function is only displaying a message. [/COLOR] [COLOR=#000000]Question: How can I call …

Member Avatar for waynespangler
0
120
Member Avatar for sneekula

I like to create a database of common chemicals with Python. How would I go about that? Any help welcome!

Member Avatar for Ene Uran
0
119
Member Avatar for drewrockshard

I have a little problem. I have a drop down menu that contains various different entries. I am allowing the user to also have a text box right next to the drop down menu where they can specify a category (and it will insert it into the drop down menu …

Member Avatar for Dukane
0
404
Member Avatar for rLh

Hi im new in Java. i have this case study and i don't know how im gonna do it. my professor wants me to create a menu or message box that has 3 options ex. [ 1 ] Addition [ 2 ] Subtraction [ 3 ] Exit ____________ *________ this …

Member Avatar for masijade
0
277
Member Avatar for the_master

Hi guys how are you , hope you are ok. I have a small problem with my code. briefly my program is about chained sequence numbers which requires a user to enter sequences separated by (-1) in an input file as follow: 123 122 121 -1 45 67 89 -1 …

Member Avatar for SpS
0
101
Member Avatar for Talon

Alright, some of you have seen me ask this before but here it is again. I am a first year java student and I need an idea for a simple but well-looking semester project. If you could give me some ideas I would be thankful. I'm not asking for you …

Member Avatar for jwenting
0
351
Member Avatar for Ryan Steyn

Hi there everyone, im new to programming and havent the faintest clue where to start (just so you know:rolleyes: ) . I want to learn C++ but havent the apps to test or write it. I downloaded the microsoft visual studio and it confused the hell outa me. Can anyone …

Member Avatar for jbennet
0
109
Member Avatar for Marks256

Ok, i am just starting out in C. This isn't my first programming language, though(i don't mean to brag, but i am a BASIC master), so i know quite a bit about computer architecture, and all that good stuff. The project i am designing is a robot with stereo vision. …

Member Avatar for Salem
0
164
Member Avatar for Phoenix777

[B]Hi guys[/B] Need some help with an problem thats bugging me.. I have to open a .pdf file at the client side when the user clicks a button.. Opening is not a problem.. I am able to do it using the following code which is executed when the user clicks …

Member Avatar for web_developer
0
507
Member Avatar for rgambhir

Hi All, First time I am posting, so please forgive me if I miss out any information while asking you my question. I have a .net web app that I am building in 2.0 framework. I have a code-behind file that calls a method in a business logic class. The …

Member Avatar for web_developer
0
1K
Member Avatar for hugoboss2

[COLOR=#000000]in language C [/COLOR] [COLOR=#000000]Code that examine if the tree is full[/COLOR] [COLOR=#000000]Tree is full if each node have 2 child[/COLOR] [COLOR=#000000]i dont know how to write the code ?[/COLOR] [COLOR=#000000]somebody can help me ?[/COLOR]

Member Avatar for WaltP
0
82
Member Avatar for jcf

[COLOR=#0000ff]Hi. Im doing a program that connects a form to access database. Problem: I have a button that saves all the new information entered in the text boxes I have. When I click SAVE it shows a message that "A new record has been added to the database" but when …

Member Avatar for user23490234
0
106
Member Avatar for Kishor Soni

I need your help regarding serial communication in VB. I can't able to sand OR receive the data in BYTE form. (ie. 00 to FF) There is no proper example in MSDN. Can you tell me something in this matter? Thanks Kishor Soni:!:

Member Avatar for Kishor Soni
0
109
Member Avatar for arh

Hi guys. I'm a highschool student taking computer science classes at dartmouth college. I was wondering if anyone had an research topics for me to look into. I know the general answer to this kind of thing is "whatever you like", but I really have no idea. Just some general …

Member Avatar for Rashakil Fol
0
147
Member Avatar for sdillinger

In the following snippet of code the compiler (g++ on RH 4) does not see my overloaded operator. I cannot figure out why. Error: parse_opra.cpp: In function `void parseFile(std::istream&)': parse_opra.cpp:19: error: no match for 'operator>>' in 'in >> rec' note: candidates are: std::basic_istream<_CharT,...... ..... opra_record.h:35: note: std::istream& operator>>(std::istream&, Opra_record&) I …

Member Avatar for sdillinger
0
151
Member Avatar for rixius

:( I've been looking at the [url="http://theory.lcs.mit.edu/~rivest/rfc1321.txt"]text[/url] written by professor Rivest, and I REALLY do not understand the MD5 algorithm. It produces a 32 bit encryption.. so its 32 characters, no matter what. But you can hash a string with an unlimited amount of characters... But if you do the …

Member Avatar for WaltP
0
270
Member Avatar for sneekula

This came up on Chris99's bus ticket program thread. Would like to see any simple examples on how to pass variables between classes without using global variables.

Member Avatar for vegaseat
0
19K
Member Avatar for mjmythili

for(i=1;i<10;i++) { cout<<"i= "<<i; } I want to print The label i as well as its value by using Outtextxy. Is it possible. I knew that Outtextxy is used to display strings. but i dont want to use cout.

Member Avatar for vicky_dev
0
582
Member Avatar for newbie2c++

Having trouble getting this to compile. My error message says in line 42 expected ';" before "text" any suggestions? [CODE]#include <iomanip> #include <iostream> #include <cstring> #include <cstdlib> #include <string> #include <ctype.h> using namespace std; struct FORM { string name; string data; }; void getFormData(string, FORM []); //FORM *create_array(int); //string param(string, …

Member Avatar for Anonymusius
0
90
Member Avatar for izharg

hi dudes, i need an urgent response for a project at the uni. i'm looking for code which can recognize operating system tasks\actions and output it in text format. i.e when i'm clicking on "Start" button, the code will generate a text string: "Click on Start" cheers mates Izi :rolleyes:

Member Avatar for Phaelax
0
106
Member Avatar for sgriffiths

hello All I am pretty stuck and would like any help or assiatance I am creating a web page with 2 fields First field would be a username Second field would be a user_id I want the user to be able to enter their username So for example "stephen" I …

Member Avatar for Rhyan
0
369
Member Avatar for javanewbie

All, I am having a bit of trouble displaying someting using the JOption.Pane format. I know we are not supposed to pose questions here But I am at a loss and simply do not know where to turn. I am writing this code for class. It is a mortgage claculator …

Member Avatar for bjj
0
182
Member Avatar for cty

PHP Parse error: parse error, unexpected $end in C:\test\kelly.php on line 118 <?php function AddItem($itemId, $qty){ $db=new mysqli('localhost','root','','test'); $db->select_db('test'); $query="select count(*) from cart where cookieId = '" . GetCartId() . "' and itemId = $itemId"; $result=$db->query($query); $row =$result->fetch_assoc(); $numRows = $row[0]; if($numRows == 0) { // This item doesn't exist …

Member Avatar for DennisP
0
127
Member Avatar for sam1

Hi, i am trying to write an application that uses validation check for social security number. it should allow 9 charachters. the first two and the last character should be leters and the rest should be digits. i have used for loop but it doesnt work properly. [QUOTE]int noChar = …

Member Avatar for DavidRyan
0
159
Member Avatar for Covinus

[code=java] import java.io.*; class Tokenizer { public static void main( String args[] ) throws Exception { String sample = "myfile.txt"; InputStreamReader in; FileInputStream file = new FileInputStream(sample); in = new InputStreamReader( file); StreamTokenizer parser = new StreamTokenizer( in ); while ( parser.nextToken() != StreamTokenizer.TT_EOF ) { if ( parser.ttype == …

Member Avatar for jwenting
0
163
Member Avatar for jobra

Hi I am new to c++. I tried to get current date but when I compile the program, it gives me an error. This is my program [code=cplusplus] #include <iostream> #include <ctime> #include <stdio.h> int main () { char sdate [10]; _strdate(sdate); std::cout<<"Current Date:"<<sdate; return 0; } [/code] when I …

Member Avatar for jobra
0
189
Member Avatar for mmarif4u

Hi every body.. i have some problem,, problem is that i want to make a prepaid customer pages.. like that a customer enter an activation code & access code, mysql verify it(if data exists in database).That the code are matched and then go to next page named as registration page …

Member Avatar for mmarif4u
0
89
Member Avatar for vipindas

hai, i am new to php.i want to use the mailing date of sender as the reference. for example if any one send amail on 24/12/2006 then in the reply mail to him ishoul add a reference line as follows. ref:this is in response to your mail dated 24/12/2006....... how …

Member Avatar for Puckdropper
0
90
Member Avatar for spike29

Q: write a XHTML document that shows the reasult of the color survey. The document should contain a form with radio buttons that allows users to vote for their favorite color. one of the colors should be selected as a default. Then document should also contain a table showing various …

Member Avatar for MattEvans
0
163

The End.