64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Skorpion

HI can some one figure out my mistakes in this program? [CODE=C]#include<stdio.h> #include<conio.h> void main () { int num,i; clrscr(); printf("\nprint any number:"); scanf("%d",&num); for (i=2; i==num; i++) { if (num%i==0) printf("\nprime number"); else printf("\nnot a prime number"); } getch(); }[/CODE] i want that it tell the user whether the …

Member Avatar for Skorpion
0
80
Member Avatar for k2k

hi, the book always have code like this for the beginner .. [code] String status="yes" do{ ...... }while(status.equalsIgnoreCase("yes")); [/code] what if the user enter y? or mistype "yes" to "yse"? the program crash... we can of course use if and else if and else or the switch statement's "default" to …

Member Avatar for ddanbe
0
721
Member Avatar for Laidler

im trying to program a JAVA GUI but after i compile the code and try to run it i get an error message. i then downloaded a program i made at college and i get the same problem even though it ran at the university. [B]Heres the Code[/B] [CODE]import java.awt.*; …

Member Avatar for Laidler
0
116
Member Avatar for Grub

Hi, I am sending a oval shaped ball across a screen and use the repaint() method controlled by a timer to move it. [ICODE]public class Court extends JFrame implements Runnable { private int x = 10; private int y = 200; private int r = 3; /** Creates new form …

Member Avatar for Grub
0
152
Member Avatar for drew7py

I have this code that manipulates many list (which are a mix of numbers and words) and I need it to print to a text file in rows without brackets. here is the code: ingroup = open("C:\Python25\Drew\subgroup.txt", 'r') outgroup = file ("dID.txt", 'w') ct = 1 rcw = ingroup.readlines() cID=0 …

Member Avatar for drew7py
0
17K
Member Avatar for NiravVyas

HI I had been in trouble from last three days.Here is my problem:I allow user to upload a image of his/her choice, then I resize it to a 45 X 45,Then make a copy of that in transparent.Till here all things were going fine. Now I want it to cut …

0
70
Member Avatar for Bob Arctor

Hello all, If I use a "typical" href - No problems I see the session value being passed to the page (populating a form field). Using the pop up link not surprisingly nothing gets passed. My lack of experience is letting me down here. Any solutions or an alternative ? …

Member Avatar for Bob Arctor
0
459
Member Avatar for glycerine

Firstly what a great forum and site alot of the threads on here have helped me over the past couple of months create and update alot of sites. So here is my problem, I have a importer which imports a feed (csv file) from a supplier (no problem importing it) …

Member Avatar for glycerine
0
123
Member Avatar for toko

I am trying to make a program that scans the pixels in the screen for certain colors and if it finds it sets the mouse location to that spot. Now i need your help to see if something like this is possible with vb and if it is possible point …

Member Avatar for toko
0
133
Member Avatar for scru

This function is supposed to take an integer that contains an rgb value, extract the value of each channel, and then return that calculated luminance of the pixel. As it stands, the performance of this function is not fast enough. Looking at it, I can't think of anything else that …

Member Avatar for vegaseat
0
153
Member Avatar for sillyboy

Hey all, I haven't had a lot of experience with VBA (Excel), but I think I have done enough research, so now I'm coming here for assistance. I need my VBA macro to use a keystore, so I was going to use System.Security.Cryptography.X509Certificates.Import. My issue is however, I cannot add …

Member Avatar for sillyboy
0
138
Member Avatar for gshock2006

Right now, I want to handle data file in the following format: apple 1234 coke 2344 some grape 2345 null .... as some lines consist of 3 element while some other have 2,I want to use the expression as follows to get the first two elements in every line and …

Member Avatar for gshock2006
0
112
Member Avatar for danielernesto

Sorry, I'm a newbe here so ... I got to ask, what's the diference between those 2 things?? Can anybody help me!!.

Member Avatar for danielernesto
0
141
Member Avatar for rapture

Hello, I need help on this project for school. My instructions are "Write a program called OfficeAreaCalculator.java that displays the following prompts using two label components: Enter the length of the office: Enter the width of the office: Have your program accept the user input in two text fields. When …

Member Avatar for rapture
0
119
Member Avatar for kiddo39

I have a randomly generated list of which contains letters, symbols, and numbers and need to separate it into 2 lists -one of numbers and one of the remaining chars. Then I need to separate the numbers into 2 lists-one of composite numbers (4,6,8,9) and one a list of prime …

Member Avatar for kiddo39
0
127
Member Avatar for tmoney7566

I posted with a program problem yesterday and couldn't get anywhere with all my errors. So I started over with a new program this morning and now have an infinate loop and a couple of questions about what is going on. My program is suppose to ask for total sales …

Member Avatar for Ezzaral
0
176
Member Avatar for mruane

I am hoping to create a pixel based rpg game with the story depth of the elder scrolls series, with graphics similar to PixelMan 3 by pymike, (pygame.org/project/712/). If anyone is interested in helping, let me know! I am a basic level python programmer, so am using this project as …

Member Avatar for mruane
0
89
Member Avatar for theimben

I need to use ajax to make this whole process smoother. Here is a demo: http://www.theflickzone.com/dev/ If anyone can do this for me I will pay a few $ via paypal to say thanks :) Contents of index.html <form action="return.php" method="POST"> <p>IMDB URL: <input type="text" name="imdb" autocomplete="off"></p> <p>Links(line by line): …

Member Avatar for theimben
0
120
Member Avatar for asafoatse

I need help to solve this problem . Am new and a starter , but well am tring my hand at it by practising. Am working on making a 3 dimensional array using C#. I have 3 salers in a country (saler 1, 2, and 3.) Operating in 3 regional …

Member Avatar for serkan sendur
0
144
Member Avatar for jake88

Hello, I've parsed, read and edited an xml file. But when I write the output file I get a mashed up xml output. I would like to know if there is anyway to pretty print and output .xml file, like the DOMPrint example does on the cmd prmpt. Thanks

Member Avatar for jake88
0
217
Member Avatar for CPPRULZ

Hi lately i have been studying the malloc and calloc functions for dynamically allocating memory. I thought the form was: [code=C] (data_type*) malloc(data_size); [/code] But then I stumbled onto this code snippet on a tutorial site: [code=c] #include <cstdlib> void *malloc( size_t size ); [/code] Why is the data type …

Member Avatar for Narue
0
381
Member Avatar for kiddo39

Hi.....I have a long string of letters and symbols and I need to increment their ascii value by 1. How can I do that? Here's an example of the string: s="p@ugdyhtapbcedoamguh?a#vdaxdv$zdoxw?pu$exrbzt evk#n$xjlgpmece??$$@@yyiw##rmn$nmrblruv ?azxdsoh#$@nndkkt?k@ihatywtbazgbq#ykshx" so like # becomes $, etc

Member Avatar for kiddo39
0
73
Member Avatar for Laidler

Im trying to set my new laptop up to do java programming work on. when i try to compile a file i get the javac not recognised as internal external command error. ive tried different help topics including the [url]http://java.sun.com/docs/books/tutorial/getStarted/problems/[/url] link but their solutions dont solve the problem. anyone have …

Member Avatar for Laidler
0
90
Member Avatar for sayeo87

Hi, I'm quite new to setting up webservers so I hope I can find some help here. Currently on a server that I have root access to, under /root/apache-tomcat-6.0.18/webapps/ROOT, I have a couple of .html and .jsp files which show up perfectly when I enter locally "http://localhost:8080/***.html", but when I …

Member Avatar for sayeo87
0
149
Member Avatar for samir_ibrahim

Hi Every one As I am still in the learning curve of vb.net I have 2 Question 1- Before I as start learning vb.net I know vb6 (good) and visual foxpro (Professional). In these 2 languages every thing that cannot be handled with there native command, I use win32 API …

Member Avatar for samir_ibrahim
0
152
Member Avatar for tones1986

Hey all. I am using visual studio 2008 for the first time because i have heard very good things about it (plus i had numerous problems with devc++). Here is a debug.html file that shows an error i am getting while trying to compile my project in visual studio. i …

Member Avatar for tones1986
0
203
Member Avatar for gshock2006

Hi,guys, I am new to C++,and recently I practice to read a file with visual studio 9.0,but it turns out that it cannot find the very file! [code] #include<iostream> #include<fstream> #include<string> #include<iomanip> #include<cstdlib> #include<vector> using namespace std; //using namespace stdext; int main() { ifstream inClientFile("Dic.dat",ios::in); if(!inClientFile) { cerr<<"File could not …

Member Avatar for gshock2006
0
245
Member Avatar for massivefermion

Hey men When i wanna run the code below,i get the famouse [I]don't send[/I] message and i use code::blocks 8.02 [CODE]#include <conio.h> #include <iostream> using namespace std; int main(){ int start,end; double a[start-end][2],p[start-end]; cout<<"Enter a number to begin with : "; cin>>start; cout<<"Enter a number to finish with : "; …

Member Avatar for massivefermion
0
388
Member Avatar for jakx12

Im a newbie at this stuff, so could someone please post how to alter a table so that i can make a field called numbers to be auto incremented. I dont know how to do this please. The table is called blog. Or can you post how to setup a …

Member Avatar for nav33n
0
78
Member Avatar for tmoney7566

I have been working on this array problem since last Friday. We are to accept an employee's gross sales, multiply that by 9%(to find commission) add $200 for weekly salary. Then the program takes that dollar amount and tallies payroll with ( *'s) beside salary groupings.... ex $200-299 **** $300-399 …

Member Avatar for stultuske
0
133
Member Avatar for etc123

[CODE]//function void function(int a[5][])[/CODE] in passing or even declaring a multidimensional array why is it necessary to specify the row while it's ok not to specify the column?

Member Avatar for stultuske
0
101
Member Avatar for vjp08

Hi, i want to run a python script from another python sript as a new process. i have tried with spawn functions of os module but it didnt work. i guess these functions work on only Linux. how to create a new process on windows platform..

Member Avatar for vjp08
0
177
Member Avatar for firoz.raj

can anybody tell me why Bold statement is not working. [code] Private Sub Command2_Click() Dim a As String a = MsgBox("You want to Modify....?", vbQuestion + vbOKCancel, " MODIFY") If a = vbOK Then Set rs = New ADODB.Recordset rs.CursorLocation = adUseClient [B]rs.Open "select mr.srno,mr.productname,mr.qty, mr.unit from mrtemp as mr …

Member Avatar for Ole Raptor
0
126
Member Avatar for k2k

hi, I used to program in C++ and constructed a linkedlist class (not a very fancy one but just enough to use the head and reference to simply add, and remove data in the list. now i am learning java and realize that java.util.*; has a class called the linkedList …

Member Avatar for javaAddict
0
115
Member Avatar for xtremerocker

I'm currently working on ProjectEuler.net's problem no. 39 and it states "If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120. {20,48,52}, {24,45,51}, {30,40,50} For which value of p <= 1000, is the number of solutions …

Member Avatar for xtremerocker
1
127
Member Avatar for emilio

hi i have an existing table . i'm working with sql management studio. how can i change columns properties ? set column as idenity true. set column as indexable.

Member Avatar for emilio
0
99
Member Avatar for shinnxennosagga

I got a problem in designing (may be not design, more like code one) UI for my chat application. here's the problem : I want to make a chat box on mobile device using C#, and I want to be able insert smiley. The problem is, by using textbox or …

0
76
Member Avatar for chunalt787

I am just starting off in a haskell course and I am trying to write a program that takes a list representing an int such as [1,4,3] would mean 143, and convert it to binary and return it as a list in the same fashion. I have written the following …

Member Avatar for chunalt787
0
153
Member Avatar for christiangirl

Hey, I am having trouble with the file I/O part of this program. It seems to start at the end of the files contents and not go into the while loop. [code] #include "queue.cpp" #include <iostream> #include <fstream> #include <iomanip> /******************************************* * class Priority * * Takes input from file …

Member Avatar for cikara21
0
156
Member Avatar for shanir13

I Have been working on this for a few days now, and I seem to be missing something. What I have to do is: > Design a C# solution with a Main ( ) method that holds an integer variable named seconds to which you will assign a value. Create …

Member Avatar for slap1914
0
330
Member Avatar for Scottmandoo

in the following piece of code the else part of my if/else statements doent seem to work it just adds nothing, thanks. btw genre is a dropbox (and yes i have added the values) and genre2 is a text box, same with the filehost and filehost2. [CODE=php]$name = $_POST['song']; $artist …

Member Avatar for Scottmandoo
0
107
Member Avatar for RexxX

This is a little program I'm writing to refresh my knowledge of C and I know it's wrong, but everything I've tried in order to fix it isn't working. [code] #include <stdio.h> #include <string.h> int main() { int const STR_LENGTH = 255; char str[STR_LENGTH]; int n=0,i=0; printf("Please enter a word: …

Member Avatar for death_oclock
0
115
Member Avatar for Joonas

001 BITS 16 002 segment myStack stack 003 resb 0100h 004 005 segment myData data 006 somedata db 10101100b 007 008 segment myCode code 009 00A dothingstobx: 00B push ax 00C mov ax, 56h 00D add word ax, bx 00E or bx, ax 00F ret 010 011 ..start: 012 mov …

Member Avatar for Joonas
0
121
Member Avatar for Clockowl

Hey guys, I was wondering if the stringstream class copied the string to itself or just keeps a pointer. Because if it copies I can free or clear the string without fearing for the data in stringstream. EDIT: Like this: [code=cpp] string stringz0r("Chickenz"); stringstream streamz0r(stringz0r); //will this not affect the …

Member Avatar for Clockowl
0
123
Member Avatar for rickster11

Ok, new to C++, I bet this is a real easy question. Every time I input a char, it enters the same char twice to variable. So when I enter "r", and then output it..it outputs "rr" [code=c++] #include <iostream> #include <fstream> using namespace std; #define errorMsg1 "You must enter …

Member Avatar for ShawnCplus
0
185
Member Avatar for skitzo315

I'm new to C++ and I can't seem to find the problem with my code. I have a function that opens an input file. It asks you to input a file and if it can’t open the file it asks you if you want to try again. If you answer …

Member Avatar for VernonDozier
0
149
Member Avatar for david.1982

Hi all, I'm a PHP programmer and I'm just now getting into C#. Here's the problem I'm having: I have a table, 'categories', with 'catID', 'parentID' and 'name' fields. CatID is the primary key, and parentID is either 0 (no parent, top level) or an existing CatID. With this setup, …

Member Avatar for david.1982
0
140
Member Avatar for bajanpoet

Now that I can see the data in the datagrid, I realize that the size of the fields is too small - the customerid and customer name fields both could use expanding so that I can see all of the text. Is there a way to programmatically extend the length …

Member Avatar for bajanpoet
0
166
Member Avatar for crow_w

I am trying to insert data from my VB 2008 program into an MS Access Database. My code is as follows: insertSQL = "INSERT INTO ExamInstance (SiteLocation, SiteTime, Student_SEmail, Proctor_PEmail, Exam_CourseNumber, Username, Password) VALUES ('" & SiteLocation & "','" & SiteTime & "','" & SEmail & "','" & PEmail & …

Member Avatar for crow_w
0
135
Member Avatar for regina99

hello all. :) my assignment is to write a program that accepts a charge account number and then determines whether the number is valid by comparing it to the numbers (listed in the array.) most of my program is correct, except for the last part where it displays whether the …

Member Avatar for regina99
0
115

The End.