64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Akis2000

ok i have 2 series of p... the user give which one was want... and then give the iterations that he/she want this is the series 4. P= sqrt(8*(1+ (1/9)+(1/25)+(1/49)+... )) 5. P= sqrt(24*((1/4)+(1/16)+(1/36)+(1/64)+...)) code:: first for series 4..... [code] int i; double: serieValue=0,pi=0; cout<<"Iterations"; cin>>i; for (long int n …

Member Avatar for Akis2000
0
115
Member Avatar for ongpong

how can i compute a code if i enter numbers then if i press any key its stops and computes the inputs of all no.

Member Avatar for Ancient Dragon
0
119
Member Avatar for robertmacedonia

Hello, I am trying to run my tables in the Sql Workshop using the Sql Commands option in Oracle, and I get this error - "ORA-00922: missing or invalid option". I read that this is somehow related to the NOT NULL option, but I think this is how my table …

Member Avatar for robertmacedonia
0
201
Member Avatar for ithelp

Hello Java Experts, Suppose I visit 10 web sites , some of them open pop up window even when I have blocked them in IE , then I get say 5 additional pop up window , is there an easy way to write java program to close all such pop …

Member Avatar for JamesCherrill
0
223
Member Avatar for ShadowScripter

Hi, this time I've borrowed a book called "Windows Game Programming for Dummies", albeit old it is still useful! However, I came across a problem writing a simple code the author made, namely the TextOut() The error it gives me at build time is as follows: [CODE]1>c:\users\shadow\documents\visual studio 2008\projects\g_app\g_app\main.cpp(75) : …

Member Avatar for ShadowScripter
0
325
Member Avatar for grisha83

Hello, I am having a hard time with understanding arrays and most importantly implementing them in methods and etc. Does anyone know a good source to learn about arrays from a to z? I really need to nail down these guys. Any help will be appreciated Thank you

Member Avatar for John A
0
114
Member Avatar for Nastadon

Did a search but found nothing that answers my question. Was assigned the game Hangman as a test and I haven't been able to do anything myself and it's due tomorrow. I've looked on tons of sites for help, but so far haven't found any. The test says [quote]You need …

Member Avatar for Teme64
0
99
Member Avatar for AirmanTheGreat

Guten Tag, What we need to do is to call a variable (numbersToEnterInteger) from the main method to the total_average method. Also how do we pass the entire array to this method, rather than a single array element. Thanks in advance. Oh and also heres the code. [code] /** * …

Member Avatar for AirmanTheGreat
0
151
Member Avatar for nflem

Trying to make a program that displays "Harry Verderchi" 7 times using the for-loop. With the number preceding the name like: #2: Harry .... name = "Harry" name2 = "Verderchi" for i in range(8): print "#" + "i" + ": " + name + " " + name2

Member Avatar for vegaseat
0
91
Member Avatar for Adexter

Hi, I am having trouble with a C++ problem for school. Im writing a program that takes input for the highest and lowest temperatures of each month, and stores them in a 2 dimensional array. I then wrote 2 fuctions to find the average high and low temps. Part of …

Member Avatar for Adexter
0
103
Member Avatar for Joe Hart

Hi, Below is my code. Hopefully it is in the correct format. I would like to know how to ask the user the dir and file name of certain file formats (they are red in the code) and have the program take those answers and put them into the program, …

Member Avatar for shadwickman
0
167
Member Avatar for OmniX

I have been trying to research this in my spare time for the last few weeks now and everything turns a blank. Yes I can restrict input in IE but in FF I cant. I am looking to restrict input based on alpha, numeric and special characters only - in …

Member Avatar for LaLuz
0
794
Member Avatar for grisha83

Hello, I am having a hard time with understanding arrays and most importantly implementing them in methods and etc. Does anyone know a good source to learn about arrays from a to z? I m looking for things like book, website or some other media. I do know about Sun …

Member Avatar for llemes4011
0
274
Member Avatar for breatheasier

Hi, I've got some c++ code(which i don't have much experience in). I'm trying to write the same code again in python but i'm not having much luck. The c++ code creates an array of x,y co-ordinates: [code=c++] for (double ix = 0; ix < nlat; ix++) { for (double …

Member Avatar for vegaseat
0
269
Member Avatar for apollo1492

im doing this code and it needs the absolute value of something here is what i have so far. the formula it gives you is x = absolute value of the square root of radius squared minus the y-intercept squared. this is the bit of code i have so far …

Member Avatar for apollo1492
0
131
Member Avatar for ashkash

I have an array with 6 items and I need to generate all permutations of lengths 4, 5, and 6. For example, if my array has a, b, c, d,e, f then permutations of length 4 would be: abcd abce abcf ... pemutations of length 5 would be: abcde abcdf …

Member Avatar for ashkash
0
194
Member Avatar for Sky Diploma

Hey all, I have decided that in order to learn i will need to write code. So i am working on all the questions on my book. And as I am teaching myself i end up with no-one to scrutinize my code. [code=c++] #include <iostream> /************Declarations of Functions*********/ void func1(); …

Member Avatar for lqdo
0
358
Member Avatar for serkan sendur

yeah i am currently working with raima database and there is no forum i can ask about it.

Member Avatar for bhouglum
0
145
Member Avatar for JooClops

Hi all. I'm building a website about Fibonacci for school, So I want to put a calculator that will show all lucas numbers or fibonacci numbers as for the user's decision. I've made the design and everything and now i just need it to work, but I'm pretty lame in …

Member Avatar for JooClops
0
212
Member Avatar for Sky Diploma

Hi all, I have defined a function cat which takes in 2 cstring arguments and returns out a pointer to a new cstring which cocatenates the 2 strings I am having 2 problems with it. the cout statement doesnt work and secondly i get a runtime error while i delete. …

Member Avatar for Ancient Dragon
0
191
Member Avatar for eyewirejets

I have a subclass with 4 attributes and a subclass with 3 attributes. I want to store my subclass instances in a list. Can I have one list for both of them or do I have to create another list because the number of attributes is different? Thanks !

Member Avatar for targ
0
93
Member Avatar for rane_

Hi guys, I have read a lot of posts here for the same problem but I just can't seem to identify the problem in my code (im only a wannabe geek so please use laymans) Parse error: syntax error, unexpected T_STRING in /home/content/w/e/i/weightlosscand/html/sqz2.php on line 65 here's line 64-66 [code]<input …

Member Avatar for rane_
0
148
Member Avatar for devYW

Hi there, I need to normalize the following structure: Wall covering wood (category) (Product)-----(Models)-----(Prices)(Measurement) Log Cabin-----5/4 x 6------1.85$/square foot-----0.80$/linear foot Log Cabin-----2 x 8--------3.00$/square foot-----1.50$/linear foot Log Cabin-----2 1/2 x 8----6.50$/square foot-----3.50$/linear foot Doors (category) (Product)------(Models)-----(Prices) Panel Door------18"----------85$ Panel Door------24"----------90$ Panel Door------26"----------95$ Panel Door------28"----------100$ Panel Door------30"----------105$ Tables (category) (Product)-------(Models)--------Not peinted-----Waxed----Lacquered …

Member Avatar for devYW
0
519
Member Avatar for quetzal_7

Hi all, Ok, so I obviously have an issue with how I'm thinking about accessor methods. In the following code, why are the printed out values equal? MyClass.h: [code] #ifndef MYCLASS_H_ #define MYCLASS_H_ using namespace std; class MyClass { friend ostream &operator<< (ostream &stream,MyClass const &rhs); public: MyClass(); MyClass(int); MyClass(MyClass&); …

Member Avatar for quetzal_7
0
112
Member Avatar for transplantedNYr

I am new to java and many of the nuances to this language. For my class assignment we need to finish our methods which I have already done and do not want any help with. What I need help with is reading the data from the file with in "main". …

Member Avatar for transplantedNYr
0
160
Member Avatar for faniryharijaona

Hi All, I've got a problem with the python class. I want to create a list of object of type obj() and link them such that the next of one object is the next in its place order. I tried this construction [code] class obj: ------def __init__(self,cargo=None,next=None): ---------------self.next = next …

Member Avatar for faniryharijaona
0
111
Member Avatar for lolaabbydawn128

Somebody help me build this program, its sort of challenging...Instructions say to store player's name, number and points scored by each player...Program should keep an array of 12 of these structures, each element is for a different player ona team...program should ask user to enter the data above for each …

Member Avatar for siddhant3s
0
134
Member Avatar for eyewirejets

How do you call a method from the main() from a module to print base class attributes. Objects are contained in a list. Module [CODE] def show_employee(self): print 'Employee Name: ', self.__employee_name print 'Employee Number: ', self.__employee_number [/CODE]

Member Avatar for eyewirejets
0
86
Member Avatar for kelechi96

Ok so I want to create some code which can generate a random number from a 1. Music file 2. A microphone PLEASE is their anyway i can do this

Member Avatar for jephthah
0
456
Member Avatar for zyaday

I have many projects in a software. Although some files and classes are shared within these projects, there are classes used by most of these projects. How do i creat classes that can be shaed among different projects . Is there anything in java that can function the same as …

Member Avatar for kvprajapati
0
197
Member Avatar for TriceD

Hi all, I'm facing some difficulties with the [b]getchanges [/b]method of a datatable... In my program, I have a standalone datatable which I'm using as the datasource to a datagridview. When I make changes to the datagridview, and I use the [b]getchanges(DataRowState.Modified)[/b] method, I get [b]Nothing[/b] as the result, no …

Member Avatar for TriceD
0
2K
Member Avatar for edi843

My problem is a little strange. I have a clas let say classA. In the classA i have a method with tha name MethodA. I have anaother class called classB that derived from classA. I want to override methodA of classA, but not with the name methodA, but with a …

Member Avatar for edi843
0
90
Member Avatar for brunope

Hello everyone, I encountered a problem for using the preg_replace method in a text which content a price formatted as $123.45. [CODE]<?php $xRegex = '#{params:.+?}#s'; $sPrice = "$123.45"; $sContent = "Price is {params:xxx}."; echo preg_replace( $xRegex, $sPrice, $sContent, 1 ); ?> [/CODE] When i'm doing this, I got : [I][B]Price …

Member Avatar for almostbob
0
123
Member Avatar for Shanti C

Good Morning All.. How to do coding for code tags , when we post a thread..And the display the content between the code tags with different color using PHP.. Thanks in Advance. Shanti.

Member Avatar for Shanti C
-1
149
Member Avatar for marco01

Hi Everyone, Days that I'm on that problem. I have to calculate a substitution score. Below my code: [code] public void calcSubstitutionScore() { substitutionScore = (average + examMark) /2; } [/code] I previously created the method average, and I try to add to it examMark divide by two, which is …

Member Avatar for marco01
0
105
Member Avatar for Dia.A

I have completed an OOP course using C++ and each student has been asked to do an end term project, so that they make use of all things that was learned, like ( operator oveloading, inheritance , polymorphisms, files, templates) and every thing that can support the project. I want …

Member Avatar for tux4life
0
300
Member Avatar for pdunc88

Hi guys, first post so be nice :S I've been working on a software project (wordsearch generator) for one of my classes at university and I'm stumped on this section. I'm supplied with an array filled with x strings, the integer value of x (for the size of the array) …

Member Avatar for pdunc88
1
3K
Member Avatar for grisha83

Hello,I have a user input and trying to write a precondition that will give an error if the user inputs number or some other odd character (except ' and .) I am thinking of writing and if statement that if my search method finds anything like that it will prompt …

Member Avatar for grisha83
0
82
Member Avatar for upstream

:idea: hi all. Here's my set-up: Server 1: SQL Server 2005 Database Server 2: Public Web Application using ASP.NET VB and IIS6 my newly published website is succesfully running! ~ but after a few minutes (or in some instances)..my application is stopping from responding, it only shows the hourglass cursor, …

Member Avatar for mail2saion
0
189
Member Avatar for pt_solar

I have a very hard programming challenge and i need help... I have nothing so far, so im hoping somebody could help me build it... Im to write a program that uses a structure to store student name, student ID number, pointer to and array of test scores, average test …

Member Avatar for VernonDozier
0
233
Member Avatar for danishbacker

[code] <?php $fileName = basename( $_FILES['fileName']['name']); //count current total files $dir_path = "snaps/"; $count = count(glob($dir_path . "*")); $newFileName = $count . ".jpg"; $target_path = "snaps/" . $newFileName; [COLOR="Red"]if(move_uploaded_file($_FILES['fileName']['tmp_name'], $target_path))[/COLOR] { echo "<br/>Success"; else{ echo "<br />Failed"; } ?> [/code] The above works in my unix like server (Linux server.nixism.com …

Member Avatar for danishbacker
0
378
Member Avatar for Joe Hart

Hi This is my second post. I am new to python. I hope I have posted my code correctly. I am trying to have Python rewrite the compare.asc file. This file is used with another program called MUST. This is a transmission line program. This program is suppose to compare …

Member Avatar for jlm699
0
432
Member Avatar for u8sand

Hello all. Haven't asked a question here in a while. Anyway, i am working on a game. I made the graphics class and now am working on a camera. I thought of making it so the camera would have a reference of the main world variable. So i tried doing …

Member Avatar for Ancient Dragon
0
363
Member Avatar for diafol

Sorry about the possibly misleading title. Here's what I need to do: I'm producing a downloadable web app that users can load to their own php/MySQL enabled sites. It pretty much installs some tables into their DB and produces some pages to administer high school coursework marks (I won't go …

Member Avatar for diafol
0
129
Member Avatar for klactose

Hello, I am creating a little webpage that allows a person to chose between 3 different ways in which they can query for results (either id, date, or symbol). Everything works fine if choosing id and entering a value to search for, but if date or symbol is chosen then …

0
72
Member Avatar for marymi

I'm in the planning stages of an inventory db. The part I can't figure out is how to design the database as far as changing costs go. If I have a cost associated with an item, how do I handle when the cost changes? I know I need to have …

Member Avatar for marymi
0
116
Member Avatar for nflem

I need helping creating a random number of "hello worlds" import random count = 0 while count < 5: count += 1 print "Hello World" dont know where to put the module

Member Avatar for nflem
0
85
Member Avatar for tfurrows

I am modifying the WDK "genprint" Print Processor example. Everything is working great, and I can compile fine, but I am running into a snag with one thing. Part of my modification knowingly triggers a print error, and Windows re-submits the print job automatically in the spool. I need to …

Member Avatar for jephthah
0
120
Member Avatar for Lukezzz

I have programatically created a test.txt file in the LocalApplicationData folder on the computer. Now I test if I can find that file with the below code and it works. The file do exist. What I have found is that the file should be in this directory ? [B]LocalApplicationData C:\Documents …

Member Avatar for Lukezzz
0
303
Member Avatar for turbomen

Dear Sir, This is the 3rd part of the question, I want to find and list the finalists. Cheers,

Member Avatar for FlamingClaw
0
101

The End.