64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for johnt68

Hello:) This program is a maths calculator that should return to the menu so you can go round again when you have done one calculation. After great despair I think I have somehow got most of it to work? However if I input something Invalid, say the number 8 it …

Member Avatar for johnt68
0
172
Member Avatar for martin_anastaso

Hello all, I have encountered a very bizzare (at least for me) problem when writing the output from my program to a file. I've written a program to solve numerically mean-reverting SDEs. The program takes some parameters and returns several dynamic arrays corresponding to the number of SDEs I have. …

Member Avatar for martin_anastaso
0
1K
Member Avatar for neely615

I am new to this forum (and python), but since I found excellent post here, I figured it would be the best place to post this question which is two part: I have many (+100) .txt files which are space delimited (not csv or tab, possibly referred to as ASCI?) …

Member Avatar for neely615
0
580
Member Avatar for ssubnel

This is my homework for a Java class. I get a perfect score followed by a query as to why I didn't use a void method. The answer is I don't understand the difference. Can someone illustrate for me how it would look. I need a better grasp of this. …

Member Avatar for ssubnel
0
167
Member Avatar for lgriess

I'm having a problem with the following code: I have the following jquery call: the problem is that I have several `<select name="^DDLColumns1..2..3..4`. etc.. controls on my page, however this is only populating the first one: `<select name="^DDLColumns1"` anybody know why the select would do this? <script type="text/javascript" language="javascript"> $().ready(function() …

Member Avatar for Airshow
0
179
Member Avatar for sanjuanair
Member Avatar for Narue
0
125
Member Avatar for killbill07

Hey it's me again, I need some help with WMP control, because i was trying to remove an item (I have a listbox wich has songlist for playing and a button). I wanna remove the selected song in the listbox from the playlist, but I don't know how to use …

Member Avatar for killbill07
0
563
Member Avatar for doctorjo5

I am trying to make a number guessing game in Python. The correct number is 42. Right now I have it so that it gives you a message when you are too high, too low or right on. I want to add two other messages. One message for no input …

Member Avatar for Schol-R-LEA
0
222
Member Avatar for Brutus2000

Hi, I have some problems just to write a simple string output to some txt.file. That is my test code: [CODE]test = open('Test.txt', 'w') test.write("Teststring") test.close()[/CODE] I use Python 2.6.5 and PyScripter If I direcly enter the code in the IDLE SHELL, sometimes it works, sometimes only the file is …

Member Avatar for d5e5
0
104
Member Avatar for BLUEC0RE

I'm making a program that accept 1 character long strings (and ignores spaces " ") until a user presses return/enter. So far I have, [CODE] int main(){ char expression[1]; while ((scanf("%s",expression)) != EOF){ //code } return 0; } [/CODE] it is assumed that the user is entering single digit strings …

Member Avatar for gerard4143
0
3K
Member Avatar for #include<>

Why doesn't [code] typedef [I]ClassName[/I] SomeName[[I]SomeSize[/I]][[I]SomeOtherSize[/I]];[/code] work?

Member Avatar for mrnutty
0
110
Member Avatar for sonsofliberty84

I found Ancient Dragon's code snippet for reading the files in a folder. I modified it a little because I want it to display what those files are. The problem is, it also displays the two parent directories, '.' and '..'. I was wondering if there was a way to …

Member Avatar for sonsofliberty84
0
97
Member Avatar for Ashena

I have a file that has a repeated number of blocks of different sizes as in below: ID: 2 Time: 76 Op: GET Domain: facebook.com LPath: /common/css/common.css Referer: [url]http://google.com[/url] User-Agent: Mozilla/4.0 ID: 3 Op: GET Domain: rfi.fr LPath: /common/css/common.css Referer: [url]http://yahoo.com[/url] For each block, I want to print only the …

Member Avatar for TrustyTony
0
14K
Member Avatar for moonL!ght

hi,im seeking for some help i want the member of my class to be of type string.. so, some of my member function to return a string but an error is keeping occuring .. iv tried to include the string heder file in the class heder file. it says missing …

Member Avatar for moonL!ght
0
126
Member Avatar for Renuka Devi G

Hello, I am learning perl programming but my problem is iam unable to find how the functions, commands,loops & conditions are working in a programme can anyone help me how to write a programme? what is the logic?

Member Avatar for d5e5
0
209
Member Avatar for miss_indie

Aww. I'm so sorry. I've been reading topics posted here about updating database using form. but i can't seem to find my error. I want to update my database using HTML forms. where in after i click a button "Edit Record" A page containing forms will appear where i can …

Member Avatar for hielo
0
154
Member Avatar for newprog50

I need help with an assignment. Don't need the answer, just what is wrong with my code. I need to create a init() function. Create a variable named allSelect that references elements in my document. For each item in the allSelect object collection, add an onchange event handler that runs …

Member Avatar for hielo
0
145
Member Avatar for Erslich

Hi All, I am working on a Mandelbrot. I can draw the Mandelbrot to a bitmap and then paste it on the form. What I WANT to be able to do is when the user drags their mouse over an area, it redraws the Mandelbrot with the x and y …

Member Avatar for Erslich
0
149
Member Avatar for user543820
Member Avatar for user543820
0
240
Member Avatar for rcanter

I am getting this error on RetrieveBookList, RetrieveBook and StoreBookList, although it works on StoreBook. I think there is an issue with my generic list because when i just called one book, I didn't recieve this error. Cannot figure out where I went wrong though. Any help would be appreciated..... …

Member Avatar for rcanter
0
123
Member Avatar for invisi

What does int* resizeArray do that int resizeArray doesn't, what' the deference? And why do I delete nArray, and not newArray? [CODE]#include <iostream> using namespace std; void printArray(int* nArray,int size) { // code printing array } int* resizeArray(int* nArray, int oldsize, int newsize ) { int* newArray = new int[newsize]; …

Member Avatar for Greywolf333
0
116
Member Avatar for facarroll

I'm trying to display an array of images by using the following code but no images are displayed. The images are in a folder named images. Is there some problem using a variable in a path name? Or am I doing something else that is wrong? The variable $thumbnail refers …

Member Avatar for facarroll
0
1K
Member Avatar for manalibhadula

We have two arrays .merging them is simple.i want to know how can i sort then after that without declaring a single memory after that....

Member Avatar for Unimportant
0
158
Member Avatar for bonafos
Member Avatar for javaAddict
0
322
Member Avatar for jogieglenmait

i know that its so easy. but i dont know how to do it. ive tried ifstream and ofstream to add a line in a text file. and im sure someone in the past may have already posted this kind of problem. can anyone give me a link to that …

Member Avatar for jogieglenmait
0
127
Member Avatar for swathys

hi, i have use below code to make sure the listview only contain 3 record n if more than 3 records to prompt error message and disable the NEXT TRANSACTION button. it works well. But the problem is when i delete 1 record out of 3 it suppose enable the …

Member Avatar for swathys
0
347
Member Avatar for tbaba83

hello am new here. i have a difficult problem i have been trying to solve for the past few months. i just installed lamp on ubuntu 10.08 and started building my first database application. i intend to build a form. the form is called sign.php and the script is defined …

Member Avatar for tbaba83
0
162
Member Avatar for ayesha789

Hi I have to develop a code for file configuration in PHP. My basic text file is stored in C:\abc my text file name format is Mobile#_Code.request Example: 923135470808_9033.request Now I want to read code 9033 from the name of text file which always be there after _ and before …

Member Avatar for ayesha789
0
267
Member Avatar for Morbane

I have a basic knowledge of C++ but mostly in a limited fashion. I am building an API and I need to send the resulting string to a text box in a Modal Dialog. I will not need to manipulate the string beyond sending it to the text box. The …

Member Avatar for Morbane
0
2K
Member Avatar for valonesal

Ok we are working with a script and we get the following error [CODE]Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxx/spider.php on line 149 [/CODE] Im not sure what the problem is and I havent had any luck fixing it, here is the line in question [CODE]foreach ($array as $value) …

Member Avatar for nonshatter
0
509
Member Avatar for nikita.chandra

Hi all i am creating an application in which i m using jsp,servlet and javascript. on jsp page there are text boxes named ID and Passwprd and a submit button. When we submit jsp page first javascript will be executed if we left any of the text boxes blank, that …

Member Avatar for nikita.chandra
0
215
Member Avatar for MikexDetroit

Hey all, I've spent the last couple hours looking at other posts with the same error and have still yet to figure out what is wrong. I'm just learning C++, I have a bit of experience with Python but, still just getting my feet wet. Here is the code. [CODE] …

Member Avatar for MikexDetroit
0
961
Member Avatar for Intrade

I followed this guide for VC++ 2010, [url]http://msdn.microsoft.com/en-us/library/ms235636.aspx[/url] and apparently I either have a missing module/component or I did something wrong. I followed everything smoothly up until step 6-- "6. To build the project into a DLL, from the Project menu, select MathFuncsDllProperties…. On the left pane, under Configuration Properties, …

Member Avatar for Intrade
0
272
Member Avatar for chris evans

Hi guys, Im learning VB.NET and as a first task im creating a login form. ive been trying to link it to another form once a correct username and password are entered. however, despite that i still cant be able to hide it or unload it once the next form …

Member Avatar for chris evans
0
138
Member Avatar for knan

I have 2 lists X=['a'] Y=['b','c','d','e','f'] I need to make a new list Z such that, Z = ['ab','ac','ad','ae','af'] I know this uses simple concatenation. I tried several times but without success. I am a beginner so please help me with the code. Thanks in advance.

Member Avatar for Gribouillis
0
115
Member Avatar for limergal

Hi, I have a code, but I don't get what I'm doing wrong, can you please help me with this Write a switch statement that tests the value of the char variable response and performs the following actions: if response is y , the message Your request is being processed …

Member Avatar for bhemz11
0
569
Member Avatar for Kapilxcb

hey dudes pls help me on this. My program is crashing on the following piece of code When i make 1 recurssive function to work, the program works without crashing. So I would really need help in spotting the mistake I have done. Incase if you want to know what …

Member Avatar for Kapilxcb
0
122
Member Avatar for deepak_1706

In my Forms application i tried to resize a pictureBox control during runtime and it seems to give some trouble. There is scale factor scalex , scaley which i applied to the width and height property of the control. [CODE] tempw = 980.0f; temph = 130.0f; tempw = float.Parse(pictureBox1.Width.ToString()); temph …

Member Avatar for deepak_1706
0
138
Member Avatar for burcin erek

this program is trying to add from 1.. to x with return function. but when I enter 10 sum is 54 which is wrong. 1,2,3,4,5,6,7,8,9,10 = 55 [CODE]#include <cstdlib> #include <iostream> int burcin(int); using namespace std; int main(int argc, char *argv[]) { int x; int ft=0; cout << "enter the …

Member Avatar for burcin erek
0
106
Member Avatar for jcfans

wen i press the enter key,i can login.But i face a problem which is there will repeat call the login function when i press enter key a fews times and there got error! how can i make the enter key is disable after i success login? thnaks [CODE] Private Sub …

Member Avatar for jcfans
0
161
Member Avatar for musikluver4

I would like to be able to divide this java code up into more than one file, so I can reuse the code for other programs, but I'm not sure what I can grab. Right now, I can't make another program using this code, as you see the WHOLE program …

Member Avatar for musikluver4
0
171
Member Avatar for YingKang

I keep getting compiler errors. Could anyone help please? Thanks This is the error message: F:\DPR226\Homework\Student\main.cpp In function `int main(int, char**)': 39 F:\DPR226\Homework\Student\main.cpp invalid conversion from `int' to `int*' 39 F:\DPR226\Homework\Student\main.cpp initializing argument 4 of `void Student::setStudent(std::string, std::string, std::string, int*)' F:\DPR226\Homework\Student\Makefile.win [Build Error] [main.o] Error 1 [code] // main.cpp #include …

Member Avatar for vidit_X
0
121
Member Avatar for power_computer

Hello all, I am given a project and would like some help/guidance from the community. I am not asking for any code just a direction and little advice on how to approach this project or how these things work per-say. I am behind in my classes due to me having …

Member Avatar for VernonDozier
0
1K
Member Avatar for jems5

Why does parsing a float into array cause precision loss error. I am trying to sort data from a text file that contains text, integers and float numbers. Using the for statement causes loss of precision errors. How do I correct this please. [CODE] float y; for (float k = …

Member Avatar for BestJewSinceJC
0
123
Member Avatar for whimsical1987

Hi, I am getting seg fault when trying to run the code. I don't understand where I made a silly mistake. Can someone help me out please [code] #include<stdio.h> #include<string.h> void xstrcpy(char *, char *); int main() { char *a = "Hello World"; char *p; xstrcpy(a, p); return 0; } …

Member Avatar for whimsical1987
0
2K
Member Avatar for Yutxz

I received the error "possible loss of precision" on the last line of my code. Is it not possible to return a double? My instructions were to create a program, called power, that took a double (x) and raised it to an integer (n) power. [CODE] package power; /** * …

Member Avatar for Yutxz
0
197
Member Avatar for grunge man

Im making a calculator Program to start off on visual basic. I got it to work with MsgBox, but now I'm trying to get it to work with the Print. MsgBox Example [CODE]Public Class Form1 Private Sub Button1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseClick Dim Pizza As …

Member Avatar for grunge man
0
137
Member Avatar for bigwhiteegg

for some reason the following function has return numbers of error such as 1. new types may not be defined in a return type 2. two or more data types in declaration of `initialize' 3. ambiguates old declaration `GrowableArray initialize(GrowableArray&)' [CODE]void initialize(GrowableArray &a) { unsigned zero=0; a.elements=zero; a.element=NULL; }[/CODE] and …

Member Avatar for bigwhiteegg
0
3K
Member Avatar for ceeandcee

I am trying to build a Standings page for a hockey pool site that shows Wins, Losses, Ties, etc. I am struggling with the Tie section. If two teams have the same number of points (PF=PA) the team gets one point. I can get this part to work. However, at …

Member Avatar for artech
0
78
Member Avatar for nwalser

Ok so I have to write a reverse method of a stack and I am not quite sure how to do it. I understand that i need to pop the strings from one stack into another but whenever I try to do this errors arise. Specifically it says it cannot …

Member Avatar for cale.macdonald
0
835

The End.