64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JRabbit2307

I need help writing a program that prompts the user for five grades and then provides the user with an average for all grades entered. [code=vb.net]Module Module1 Sub Main() 'Declare Array called AverageGrades with 5 Elements Dim Grades(5) As String 'Write array elements to screen using For loop Dim index …

Member Avatar for TomW
0
112
Member Avatar for akie2741

how can i extact the photo from this website>>[url]http://www.it.usyd.edu.au/about/people/staff/tomc.shtml[/url] ?

Member Avatar for vegaseat
0
178
Member Avatar for puk

Hi, I ve got php set up on my localhost using IIS 7 which all works fine. iv also got Argosoft mail server.net free setup as well. The problem i have is that when i try to send an e-mail using a php e-mail script i get the following error: …

Member Avatar for puk
0
77
Member Avatar for tonief

I have this code i java I have class [CODE] class Author { String name,surname; public Author(String name,String surname) { this.name=name; this.surname=surname; } public String getAName() { return name; } public String getASurname() { return surname; } } [/CODE] And This code is OK; I have a button in jFrame …

Member Avatar for tonief
0
86
Member Avatar for mayanktalwar

[CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); long j,x; long k=1; long y=0; cin>>x; for(;k!=x+1;) { for(;k%5==0;) y++; k++; } cout<<y; getch(); } [/CODE] in above code i am trying to find the total no of zeroes at the and of factorial of no..........in doing this i am finding out total …

Member Avatar for mayanktalwar
0
112
Member Avatar for vandna

hey i tried to make a program to find an item in an integer array using binary search technique n by iteration with the help of functions...but i am getting errors....so plz help me out..

Member Avatar for Grn Xtrm
-2
132
Member Avatar for Israelsimba

Hello there!! i am glad for the help i have recieved before which helped solve my problems. my challenge now is that the following code fails to save to my Access 2007 database. it doesnt give me any errors but it does nothing. i want details i enter into the …

Member Avatar for Israelsimba
0
83
Member Avatar for xfrolox

How do i do to Make a Select Beep sound and when is selected and i press button1 it will make the sound i choose.

Member Avatar for xfrolox
0
4K
Member Avatar for web3

I have a little twitter clone but how to display messages from mysql from newest to oldest. [CODE]<?php session_start(); $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; $date = date("d-m-Y"); if ($submit){ mysql_query(" …

Member Avatar for Will Gresham
0
111
Member Avatar for RunTimeError

Hello everyone, I'm trying to make a kind of log in system for an application. It's pretty simple. There are 6 picture boxes which display images. Of these 6 picture boxes one of the images is a recognizable to the user. When the user clicks on the 'correct' image the …

Member Avatar for sknake
0
111
Member Avatar for SecurExpert

I wish to write a program that works in the background, i.e. without showing any windows. Someone prescribed i try this: <code> #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { while(1) { Sleep(1000); } return 0; } <code> but its not working. it still shows …

Member Avatar for SecurExpert
0
128
Member Avatar for iamsmooth

[code] public int peek () { if (empty() == true) { throw new EmptyStackException(); } return StackContents[top]; } [/code] So I have this piece of code in a class that implements a stack. The program works perfectly. However, when I use Junit to test it, I have this: [code] @Test …

Member Avatar for iamsmooth
0
124
Member Avatar for PysKo

Hi i need some help with a project i'm working on. Little explanation on it first then ill tell you where i am what i need help with and post code and maybe a screenshot. Well its a usb launcher its supposed to launch your usb drive and also has …

Member Avatar for allenmico
0
152
Member Avatar for hello214

hi, I'm trying to do my decimal to the nearest hundreths, i've tried using number format and printf but i couldn't do it. Anybody can help me with this: here is my program float grossPay = (calcGross(nHrsWrkd, hrlyRate)); float netPay = (calcTaxes (calcGross (nHrsWrkd, hrlyRate))); System.out.print("\nTaxes Withheld - $" + …

Member Avatar for javaAddict
0
168
Member Avatar for FireSBurnsmuP

You see, I am writing a program that uses strings for input to determine things, and I don't want it to be case sensitive. So, I know you can go through a string and go char by char to store each char, [inlinecode]tolower()[/inlinecode]'d into another string while in a for …

Member Avatar for geinjo
0
2K
Member Avatar for seanooi

Is it possible to write a php function that wraps every newline inside a <pre></pre> block with a <code></code> block? An example would be something like: [code] <pre> <code>first line here</code> <code>second line here</code> <code>third line here</code> </pre> [/code]

Member Avatar for seanooi
0
153
Member Avatar for xfrolox

Hi all i hope this little code help some people. This code is to make your program can't open 2 times so when you open your app and try to open it again a msgbox will pop up and wont let you open it again. [CODE]Dim CurrentProcesses() As Process Protected …

Member Avatar for xfrolox
0
146
Member Avatar for lcyew

Hi. I'm using php and mysql for a system. I have some questions on INSERT query. When we are using INSERT, in our query.... i. Is it necessary to include each field included in the table we are going to insert value with (though some of the field maybe do …

Member Avatar for lcyew
0
99
Member Avatar for dre-logics

I use Visual basic 8.0, Cyrstal Reports v10 what is included in Visual basic 8.0 and MYSQL 5.0. I have installed :mysql-connector-odbc-5.1.5-win32.msi I have database Articles with two fields: article nr article discription To connect to my MYSQL database within My form i use this: Dim Myconn As New MySqlConnection …

Member Avatar for TomW
-1
180
Member Avatar for kadamora

hi..i just want to make a messagebox that has an image in but i couldn't find the way. it tried to make a bitmap of the image and put it on the messagebox like MessageBox.Show(image); but it was wrong...any ideas???

Member Avatar for RunTimeError
0
9K
Member Avatar for genieuk

Hi, My site uses sessions and for example on login a random token as a hidden field in the form is generated and added to the session. As i am on shared hosting i set my own session path outside root directory and if for example session is tampered in …

Member Avatar for genieuk
0
132
Member Avatar for newcpp

I have a question: [CODE]#include <stdio.h> char * chstrswithf(char * a) { while(*a!='\0') { if(*a=='s') *a='f'; a++; } return a; } int main(void) { char string[]="this is a string"; chstrswithf(string); printf("%s \n",string); return 0; }[/CODE] the code above is ok for running. but when I replace the [COLOR="Red"]char string[]="this is …

Member Avatar for gerard4143
0
86
Member Avatar for Jalwes

Hi all. I have an assignment for class (obviously I am new to this), that requires us to read from a file and then print out the first 22 characters from each line within that file. I have tried using getline and get, but can't seem to get it to …

Member Avatar for csurfer
0
265
Member Avatar for web3
Member Avatar for pwk064

Here is my Main method - calling Display. I am getting an error message, I don't know what I am missing. Any suggestions? public class Student { private int studentID; private double studentGPA; public Student() { studentID=100; studentGPA=3.0; } public Student(int id, double gpa) { studentID=id; studentGPA=gpa; } public void …

Member Avatar for masijade
-1
2K
Member Avatar for apgriffiths

I have a datalist that is populated using an ArrayList. When this is rendered i want to set the background image depending on a list item value, at the moment i have set the image in CSS but i dont know how i would change the image depending on the …

Member Avatar for apgriffiths
0
720
Member Avatar for pygirl

Hello, I would really appreciate some help with tkinter. Does anyone know how to change border colour of a widget and if it is possible to display border on just one side of the widget (so for example only the left or bottom border)? I tried to find the answer …

Member Avatar for pygirl
0
1K
Member Avatar for nerdagent

I'm trying to put in some code that will delete a list from a list. For example if the user decides to delete the first names he would type in 'first' (w/out quotes). however after they input the name nothing prints out. Any suggestions? [CODE] person = ' ' first …

Member Avatar for vegaseat
0
127
Member Avatar for valkerye

I'm having a bit of an issue with a while loop in a program I'm working on. I am attempting to use a while-eof loop to read float numbers from and input file and simply rewrite those files to a created output file. My issue is that the while loop …

Member Avatar for VernonDozier
0
734
Member Avatar for K0ns3rv

Hey guys, i am currently working on a project. It's a web application for registering the amount of time an employee has worked. I have written the web app for adding a new employee and for adding a timestamps( e.g work done). Now my problem is like this i need …

Member Avatar for K0ns3rv
0
135
Member Avatar for bentlogic

Hi Java Developers, wondering if someone can point out why references to 'Student' (successfully compiled java class) in my ValidRecords.java source file don't seem to resolve at compile time? It's important to say that ANY and ALL references to Student object from inside ValidRecords.java don't resolve... not just the one …

Member Avatar for peter_budo
0
347
Member Avatar for web3

I now how to make a profile but how to make for every user when he logs to view button my profile and takes them to their profile.

Member Avatar for CFROG
0
98
Member Avatar for Froger93

Hey guys, I have a problem. I have a connections_lib.php file this will handle all of my db connections, this works AMAZINGLY (power of OOP). Unfortunately some of my other classes require connection to the databse therfore they must use these methods (is that the right word for OOP I'm …

Member Avatar for Froger93
0
183
Member Avatar for xfrolox

Well hi all again, This one have to be Ez for most of u guys. Im posting some thread peace per peace to finish some features to my program. well whats the code that when i open my program i cant open it again. like Example: LOL.exe when i open …

Member Avatar for xfrolox
0
166
Member Avatar for web3

Why it won't send this to mysql.Connection is ok.Here is the code. [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; if ($submit){ $queryreg = mysql_query(" INSERT INTO messages VALUES ('','$micro','$username') "); …

Member Avatar for diafol
0
73
Member Avatar for Lukezzz

I am trying to Convert this Long String to an integer but when running the code, I get an error that tells that the inputstring is in an incorrect format. How can I convert this string so I will get the ouput integer: 41517 ? [code] String^ ba = "41516.7095211088"; …

Member Avatar for Lukezzz
0
96
Member Avatar for JRabbit2307

8. create a console application. Insert the below code, and run the program. Note that a conditional statement is used within the body of the loop. This is common. Write a similar program using this one as an example that asks the user to name his or her favorite make …

Member Avatar for sknake
0
99
Member Avatar for masterofpuppets

hi currently I am developing a game in python called TankWar, it is basically 1vs1 game style and each player has its own turn. Both players control their respective tanks using the control keys and WASD and they can specify the missile's angle, velocity, tank position. I am using an …

Member Avatar for masterofpuppets
0
195
Member Avatar for fareast87

Hello everyone. If we open the jpg file with notepad, we can see some text or gibberish that doesn't give us any meaning. How do I append some text (ie password hash) to it using Java? I'm attaching a password hash to the jpg file. Hope that anyone reading this …

Member Avatar for fareast87
0
93
Member Avatar for fareast87

Hi everyone. I'm going to read a content of a jpg file using java.io.FileReader. I'm successfully read the whole content of it. But the problem is, I want to only read the last 32 digit hexadecimal number which is MD5 hash I save earlier. How am i suppose to do?

Member Avatar for fareast87
0
105
Member Avatar for digtokiller

Hello all, i need a movie/mediaplayer and i could imagine that it would be in javascript. all it should be able to do is to play mp3(music) and wmv(movie) files. it need a start,stop,pause and fullscreen button. anyone can give me a code just to place in my page? thnx …

Member Avatar for digtokiller
0
200
Member Avatar for Tryin2learn

Hi all, I am trying to get a grasp of web form data getting passed to PHP, then dumped into a SQL Database (2005). I have created the form in html. but because the form is an employee application there are a lot of text boxes, radio button, etc etc. …

Member Avatar for Graphix
0
109
Member Avatar for Web_Sailor

Hi I was trying to do a type checking in my input file while reading it. I am getting some compile time errors. Compile time error report is :- [CODE]NEW.cpp:26: error: invalid conversion from ‘char*’ to ‘int’ NEW.cpp:26: error: initializing argument 1 of ‘int isdigit(int)’ [/CODE] [CODE] Line 26 is …

Member Avatar for Web_Sailor
0
238
Member Avatar for Web_Sailor

Hi, I was wondering if there is any way to get the largest size of a multimap key / value. I mean something like this:- if there are 4 values in a multimap:- [CODE] my name is web_sailor [/CODE] Suppose I want to get the maximum size key / value. …

Member Avatar for Web_Sailor
1
1K
Member Avatar for jonow

Hi, I was wondering how you keep a navigation menu up-to-date on a 200 page website. When I first started using HTML I used an iframe which it is a [I]terrible[/I] idea. Now i am using PHP (im using include). But i am guessing this is also very inefficient. SO …

Member Avatar for codejoust
0
139
Member Avatar for yorro

I know it is as simple as it is, I've search around the internet and I came up with nothing. Maybe I don't know what to search for. Basically my datetimepicker format is set to year only. My string is "2009" I want the datetimepicker-year to set as the year …

Member Avatar for yorro
-1
185
Member Avatar for Israelsimba

Anyone please help. Why is it that [B]Adodc.recordset.save[/B] cannot work. it says...object in the with variable not set.... can anyone tell me what the problem is and is it normal to use [code]Adodc.Recordset.fields "name" = txtname .text;[/code] what is wrong with my code. is anything missing there because i cannot …

Member Avatar for vb5prgrmr
0
105
Member Avatar for functionalCode

I wrote a query that will return a large amount of records. When I run the query it fill a datatable then show it in a datagridview, but I am only getting 80290 rows. There is more than that. Any idea of what is causing this? Thanks

Member Avatar for Mick Curley
0
107
Member Avatar for xfrolox

well hi this is my second thread the first one still unsolved lets see about this one. how can i do that when my program is open and its run in a Vista computer, it have to show a MsgBox and says Error please run as admin and when it …

Member Avatar for xfrolox
-1
102
Member Avatar for sparksterz

Ok this is driving me nuts. I'm working in C++ and trying to delete an element from a vector It's going something like this (dirPath is a stack of directories, and dirPtrs the list of what a directory points to) [CODE] for(int i = 0; i < dirPath.top().dirPtrs.capacity(); i++) { …

Member Avatar for sparksterz
0
367

The End.