199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Simes

[CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random def isint(x): try: int(x) return True except: return False print "Invalid guess. " def getGuessValidator(): while …

Member Avatar for Simes
0
410
Member Avatar for ROTC89

ok so i am making a program that has a master slave process. the master sends out the 2-d array which is 1000 by 1000 to the slaves. then the slaves calculate the sums of the rows sends back to the master who sums it all up. then the time …

Member Avatar for jonsca
0
1K
Member Avatar for niths

hi i am new to php. I am having some problem. i had created a dropdown list which contains project names. and below that a table with checkbox userid,username. till tat it is working properly. after selecting the project name and one cheque box and press submit button.It should display …

Member Avatar for JRM
0
77
Member Avatar for what_5626

hi, as the title has saiad, if the user click "ok" for exp it will link to [url]www.google.com[/url] and if the user click "cancel" it will link to [url]www.yahoo.com[/url]. below is my code [CODE] function calcFunc(){ var val1 = document.calcForm.selectQuantity1.selectedIndex; var val2 = document.calcForm.selectQuantity2.selectedIndex; var val3 = document.calcForm.selectQuantity3.selectedIndex; var val4 …

Member Avatar for Graphix
0
114
Member Avatar for restrictment

Well, I had my program running perfectly, and I was quite pleased with the results. However, after I made the text file a bit big, the program just stopped working all together. (255 lines of text) so I 'suppose' it is a bandwidth problem..however 255 lines of text is like …

Member Avatar for david.k
0
176
Member Avatar for PDB1982

I'm trying to create an overload of the "+" within my program to add a private constant value to an already establish polynomial, but the last portion of my code comes out with the following error: [code] Error 1 error C2677: binary '+=' : no global operator found which takes …

Member Avatar for david.k
0
178
Member Avatar for Colin Mac

I have this C program with multiple files and I want to introduce a new file called enemy.c. and I'm wondering if I'm going about this right. game.h [code] #ifndef GAME_ #define GAME_ extern void game (void); extern void enemyFunc (void); extern int enemyPosX; #endif [/code] main.c [code]int main (void) …

Member Avatar for virgoptrex
0
184
Member Avatar for rohitmanhas_12

cud any one tell me how to search particular data from database using data grid..... i had three text boxes for firstname,lastname and age.. and a search button... when i enter anything in any of the first two text boxes i.e either firstname or lastname or both, and enter search …

Member Avatar for rohitmanhas_12
0
350
Member Avatar for kayba

[code]import java.util.Calendar; import java.util.Scanner; public class Main { public static void main(String[] args) { int userBirthDay = 0; int userBirthMonth =0; int userBirthYear=0; Scanner input = new Scanner(System.in); System.out.println("Enter The day of your birth"); userBirthDay = input.nextInt(); System.out.println("Enter The month of your birth"); userBirthMonth = input.nextInt(); System.out.println("Enter The year of …

Member Avatar for kayba
0
125
Member Avatar for ccaatty

This is just out of curiosity! Does anyone know what is the maximum number of characters that a line of code can have? EDIT: Added more details. Is it possibly possible to make two lines become one? .... This seems pretty odd, I dont know how to explain it, but …

Member Avatar for cassandy
0
105
Member Avatar for valter

Hi, This has been driving me crazy so I hope someone can assist. I have a project with several custom dlls being referenced. I have found that although I add changes to my dll and rebuild etc, the program uses the old version. When I look at add reference there …

Member Avatar for jcao219
0
96
Member Avatar for bohongtw

hi there i have an assignment about writing Cshell with some features i m not gonna ask plz gimme the codes or smth. but i need some advice how to start writing it, what to do maybe smn can show me ways to do it , thanks for help here …

Member Avatar for Aia
0
174
Member Avatar for emilyhedgecock

Hi I am making an mp3 database at the moment and i have run into some difficulty when passing down the array to a function. I can do it when i create the array globally as obviously this means i dont have to pass it down, but i want to …

Member Avatar for Banfa
0
1K
Member Avatar for som3aman

Hey guys, Im trying to make a program that guesses the name of an animal in the users head by asking him or her a bunch of questions. The questions, answers, and line number for yes/no are inlcuded in the file animals.txt as follows: Q Does it have feathers? 2 …

Member Avatar for Lerner
0
2K
Member Avatar for Bobon

Hey lads, I have a small problem re inheritance. The 1st piece of code is the superclass which contains hour and minute. The 2nd piece of code which is the subclass, contains the int second. The 2nd piece inherits the code from the 1st piece. Now when seconds go over …

Member Avatar for Bobon
0
74
Member Avatar for akssps011

Hi How can I center my screen around a moving object (using C++)? Actually, the moving object say, vehicle is moving on a route in a map. How can I recenter the graph around it on the screen ? Even, if someone could suggest solution for below it would be …

Member Avatar for emilo35
0
101
Member Avatar for cpp.coder

[CODE]# include <stdio.h> int abc(int & x) { return x; } int main() { int y = 0; abc (y++); // error here return 0; }[/CODE] error is error C2664: 'abc' : cannot convert parameter 1 from 'int' to 'int &' But if i call the same function as abc …

Member Avatar for cpp.coder
0
200
Member Avatar for the_preface

I have two problems with my code. One being I can't get it to repeat the simple game until the user has no money in his or her bankroll, the game continues even when the bankroll equals 0. The other is I can't get my program to repeat asking the …

Member Avatar for emilo35
0
185
Member Avatar for musthafa.aj

hi! i developing chat application ... my client and server communicate at lan but over internet it is not... i came to know that port forwarding for client and server communicate behind router... but Skype is working without any port forwarding.. how can achieve my chat application working like skype …

Member Avatar for musthafa.aj
0
188
Member Avatar for phpdev

Hi all! this is my first post in this site.. the following code works fine with ff but not with **ie 8** - i had given [B]'windowname' [/B]in the place of **'_blank'** for ff, but that did not allow ie to open the window, so replaced it with blank, now …

Member Avatar for Suresh Vanam
0
144
Member Avatar for JellyTurf

i need a simple way to slow down a for loop using a simple timer-like method. i know for a fact that there is one, because i used it in high school, i just can't remember the code.

Member Avatar for JellyTurf
0
112
Member Avatar for mrk_chiz

I have a table in a database named "tblstudentnumber" it has the following columns: stud_id stud_fname stud_lname stud_address stud_age stud_course i need to have a data report using data environment that can sort all students with the age(a user input) of let say "16". i have a form, it has …

Member Avatar for abu taher
0
203
Member Avatar for Taimoor Rana

hello guys, i have this code written down to print a magic square and i get an error. public void doMagic() { int k = 1; int row = 0; int col = order/2; msArray[row][col] = k; for ( int r = 0; r < msArray.length; r++) { for ( …

Member Avatar for litchi
0
163
Member Avatar for musikluver4

[code] import java.io.*; public class SortDoubleArray { public static void main(String[] args) throws IOException { double[] doubleValue = new double[10]; Input(doubleValue); ascendingSort(doubleValue, doubleValue.length); descendingSort(doubleValue, doubleValue.length); } public static void Input(double[] array) throws IOException { BufferedReader dataIn = new BufferedReader (new InputStreamReader(System.in)); String[] numbers = {"first", "second", "third", "fourth", "fifth", "sixth", …

Member Avatar for litchi
0
224
Member Avatar for danish_k12

Hi, I m making a software which calculates the hours worked by each employee per day. This is calculated by the in time and out time of the employee. I have the database which contains the in time n outtime of the employee in sql. Now, My problem is i …

Member Avatar for kinwang2009
0
201
Member Avatar for Jackgrt

Will vb run an old gwbasic .bas program? My problem is to lprint to a usb printer, and if I have to learn vb, so be it. thanx Jack

Member Avatar for kinwang2009
0
235
Member Avatar for claudiu_is

Hi, I need to develop a functionality similar with the iTunes one, when you right-click a song -> Get Artwork, the jpg/png is "embeded" into the mp3 file. I have no ideea how this could be done, do you have any hints ? Thanks.

Member Avatar for jwenting
0
181
Member Avatar for asmhelp

Hello, I'm having a problem trying to trying to store a local variable in my asm program. I push 3 parameters: nbrElts (number of elements in the array), nbrArray (the address of the array), and result1 (the average). I'm trying to divide by the number of elements that I push …

Member Avatar for asmhelp
0
169
Member Avatar for Galf

Hi guys, Design question: I have a class that contains 2 vectors, and I'd like for that class to provide a public interface to access the next element in either list. The easy way to do it is to obviously return the list itself, either const or not, but this …

Member Avatar for Galf
0
106
Member Avatar for catcit

Hello! I am in the 11th grade and I have started with one of my colleagues to work on a file compression program based on Huffman coding. I have previously worked with python (a program that handles some .xls files) but this project is more complicated so I shall need …

Member Avatar for jcao219
0
150
Member Avatar for jallan2010

Sir, My problem with my project so please help me about I am enclosing my project with problem very simple but I can't found. I am using text box and listbox last two textbox i.e. txtlani and maskedtextbox. Now the problem is when the user put the data into above …

Member Avatar for jallan2010
0
122
Member Avatar for charlieruns

Alright. So this is just one part of my multiple part project. I need to try and get the frequency of how many times each word of 'X' amount of letters shows up. I am pretty bad at using arrays, but I realize this is the best way to do …

Member Avatar for rue64ja
0
125
Member Avatar for skorm909

ok so if i have somthing like [CODE]#include <iostream> using namespace std; int main(){ int action; cout << "have this show up first" << endl; cout << "then have an if statement here" << endl; cin >> action; if (action == 1){ cout << "then have this show up but …

Member Avatar for WaltP
0
173
Member Avatar for swish123

Hello, I have new to programming in python(have a little experience in C++) and to this forum. I am trying to write a program that finds Nth prime number; for example the 1000th prime number. Whenever, I try to run the program I just a see a blinking cursor and …

Member Avatar for woooee
0
150
Member Avatar for the_preface

I'm relatively new to Java and I'm writing a code that implements a simple "Hi-Lo" game using a standard deck of 52 playing cards. I could give you the entire description of the program's requirements, but I won't let you all suffer the same headache I do. :P Anyhow, here's …

Member Avatar for kvass
0
167
Member Avatar for en12ic0

Hi, I'm trying to create a simple distributed system model in C where a central controller regulates the communication between several machines. The controller's job is firstly spawning client process in several hosts. In my understanding to do this you needs to have a connection with the target host but …

Member Avatar for jephthah
0
87
Member Avatar for kendaop

Can someone please help me? I'm getting an exception: Given final block not properly padded. I can't figure out what I'm doing wrong. Shouldn't Java automatically pad the data for me? [CODE] import java.security.*; import java.io.*; import javax.crypto.*; public class AES { static String fileName = "javaEncrypted.dat"; static File inputFile …

Member Avatar for kendaop
0
359
Member Avatar for ChrisXxX

Can anyone shoe me an example code to encode an entered password in C. for example: password=vista when displayed to the user on screen when entering the password it should look like this ***** Can someone show me how this can be done, thanks

Member Avatar for jephthah
0
69
Member Avatar for miss_kruse

I'm having some trouble finding a place to put this question, since I don't have any insight in coding. Please let me know if the thread is misplaced, and I'll move it. Question: I have an idea of an app for iPhone/any smart phone and before I move on with …

Member Avatar for Talguy
0
116
Member Avatar for cowboyz209

hey i need help with writing a program where it lets a maker of chips and salsa keep track of sales...i have this so far but dont know what else to do. [CODE]# include <iostream> # include <iomanip> using namespace std; int getTotal (int [], int); int posOfLargest (int [], …

Member Avatar for WaltP
0
154
Member Avatar for blind122

My code converts roman numerals to the number values but i dont know how to make it do deciamls too, like for example: XX-X. I need it to recognize the "-" and start the loop again. How do i do that? Here is the code: [CODE]#include <iostream> #include <string> using …

Member Avatar for WaltP
0
312
Member Avatar for Annettest

Hello everyone: I am a C++ newbie. I have used Matlab to fill the rows or columns of a matrix with values from a vector and I'm wondering how to do the same thing in C++... I have written code that puts new values in a vector. This happens in …

Member Avatar for Lerner
0
276
Member Avatar for koushikha

Hi, I am doing a project in vb.net. I have a text box which contains numbers separated with commas. Now I need to insert only those numbers in a database. How to do this?? Can anyone please help me out.? Please post your suggestions ASAP. Thanks in Advance

Member Avatar for koushikha
0
47
Member Avatar for rouse

I am writing a contact form using jQuery AJAX POST and PHP. The form works well and sends the email. What I want to know is how to get the return values for error and success on the same page where the contact form is rather than having the message …

Member Avatar for rouse
0
115
Member Avatar for MonteM

Hello Every one, I am having trouble finding my correct condition to not run off the end of my file. So i am reading from a file and then tokenizing my data accordingly. My file has 16 lines and using my size function i get 18 lines instead since i …

Member Avatar for Fbody
0
140
Member Avatar for MTW1989

[CODE]include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; void printintromessage (); void getUserInput (char& Y); int main(int argc, char *argv[]) { const int numofgamesinseries = 3; const int numofplayersonteam = 4; int i, score[numofgamesinseries]; int j, players[numofplayersonteam]; char Y = Y; printintromessage (); getUserInput (Y); do { …

Member Avatar for MyrtleTurtle
0
262
Member Avatar for dawsonz

Hi, I've currently got a gridView which selects data from my table, it also has the URL of an image in one of the columns. I want an imageField which can then display the image from the URL thats provided in the image column. My datagrid: [img]http://i41.tinypic.com/25ivst2.jpg[/img] My code for …

Member Avatar for dawsonz
0
90
Member Avatar for Jean88

I have been having various issues trying to figure out a very trivial problem. I've re-written this code now several times and used many different condition statements etc... One issue that i'm having right now is the input for the variable "paragraph" not being available, the paragraph input is skipped …

Member Avatar for Jean88
0
583
Member Avatar for Krzysztow

Hello everyone, I have a problem and almost found a solution, for example this: [url]http://www.parashift.com/c++-faq-lite/multiple-inheritance.html[/url]. However in my case I cannot solve it in a proposed way and will explain it shortly why... So basically, I have a BaseView, that derives from QWidget like this: [code=c] class BaseView: public QWidget …

Member Avatar for Krzysztow
0
86
Member Avatar for samanamuo

hi everybody, i would like to know how to computes and returns d2 – d1 d2 is passed to the function by reference and d1 is the implied calling object; date d1 is earlier than date d2 the function returns the difference between two date objects in terms of number …

Member Avatar for Banfa
0
392

The End.