132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sealunar

No matter what I do, I always get the numeric value from the ASCII chart. In this case I get 104, even though I denote Name[2] as a character. [CODE] string Name= "John"; cout << tolower ( char ( Name[2]) ) << endl; [/CODE]

Software Development c++
Member Avatar for mrnutty
0
77
Member Avatar for scooby36

Hi guys, I will start by saying what I need my project to do! I have two Datagrids, One grid has all the customers garments on it with style number and contact length. The other grid has the users who have garment issued to them. the style number is in …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
479
Member Avatar for eva yang

Hi, I don't know the difference between class variables and instance variables. Can anybody give me an example? Thank you so much:)

Software Development python
Member Avatar for eva yang
0
146
Member Avatar for qk00002

I am new in VB.NET. Can any tell me how a[U] richtextbox [/U]query MySQL table. i.e select * from table test where name= 'Bowser' then the richtextbox will display the results. Thank you!

Software Development mysql vb.net
Member Avatar for kvprajapati
0
145
Member Avatar for timrhon

Last minute attempts to find what I am doing wrong here. I am a beginning Java Programmer, as you will see, and need help understanding why my paint method will not draw onto the panel. So far all I have tried to accomplish is to get the circle object to …

Software Development java java-swing
Member Avatar for timrhon
0
196
Member Avatar for noey699

if I wanted to do for example this [CODE]class MyClass{ float x,y; void SomeFunction() }; void MyClass::SomeFunction(){ MyClass A = this;//???? } [/CODE] How would I do that? I have virtually no experience with pointers so please help me out. I basically want to make the new class I am …

Software Development c++
Member Avatar for noey699
0
98
Member Avatar for firebugg

Hi, I am having trouble getting back into a loop after an exception has been caught. This is what the program should do... Write a program that asks the user to input a set of floating-point values. When the user enters a value that is not a number, give the …

Software Development java
Member Avatar for firebugg
0
1K
Member Avatar for noey699

I have been trying to make a vector class to handle particles in a particle system I am making. The problem I have is when I try to change the dir it does not do what it is supposed to. If I keep pressing up it will just bounce back …

Software Development c++
Member Avatar for noey699
0
129
Member Avatar for timmmy

ey, im looking some code that will open up the browse window so i can open a file for my database i have created thanks :)

Software Development visual-basic
Member Avatar for SCBWV
0
93
Member Avatar for rocco_h

Hi guys: Let's say somebody may change the extension of a .doc or .mp3 file to .wav, in my application, I want to check to make sure if a file is actually a .wav file. How do I do this in C# ? Please let me know, Thanks, Rocco

Software Development c# file-system
Member Avatar for Diamonddrake
0
1K
Member Avatar for [O3]

I have the Python interpreter installed. How do I run the .py file? Please help.

Software Development python
Member Avatar for vegaseat
0
138
Member Avatar for D4n1sD

Hello, I got a problem. Whenever I use rand() and I rerun the source I get the same results each time do u know whats wrong?

Software Development c++
Member Avatar for clutchkiller
0
123
Member Avatar for snfitz

Hi, I'm trying to make a program that prompts for input a certain number of times, like say the user inputs 5, it will prompt for other input five times. I get the number from the user, but how do I make a for loop that uses that variable instead …

Software Development python
Member Avatar for snippsat
0
243
Member Avatar for Teach25

Given n points, how can I find how many different lines can be drawn through these points? Thanks

Software Development c++
Member Avatar for mrnutty
0
136
Member Avatar for Naresh Bonagiri

Hi, I am very very new to python and in my application I have to create an XML file. Please any one help on this issue Regards, Naresh

Software Development python xml
Member Avatar for Stefano Mtangoo
0
261
Member Avatar for nucleareactr

Hey all, In computer class as homework we're to create a code to find prime numbers between two values m and n without using an array (since we havn't learned about how to use them yet). so far the code I have is: [code] public static void prime (int m, …

Software Development java
Member Avatar for Ezzaral
0
987
Member Avatar for tango2009

I have this sprite that I am printing out sf::Image aNimat; if(!aNimat.LoadFromFile("images/fish.png")) std::cout<<"File not found fish.png"<<std::endl; however I want to print it out at random places and in random numbers. Can anyone suggest how I would go about it?

Software Development c c# c++
Member Avatar for mrnutty
0
58
Member Avatar for dumbncool

Hi, I recently came across a code which had the below lines. [code] unsigned int n = 10; n ^= (unsigned int) - 1 ; [/code] It is not clear to me what the second line does. Anyone can help please :)

Software Development c c# c++
Member Avatar for jephthah
0
124
Member Avatar for Salem

[I]<<thread split>>[/I] Who exactly? The OP left the forum 4 YEARS ago. And there the thread lay, nice and quiet until a day ago.

Software Development c++
Member Avatar for Ancient Dragon
0
110
Member Avatar for Carrots

Hi there, I'm trying to return base class pointers from the two classes 'base' and 'child', but I keep on getting a build error of "1 unresolved externals". I think it may be because I am linking all the files together incorrectly. When I comment out the problem line in …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
240
Member Avatar for merse

[CODE] #include <limits> using namespace std; const double double_nan = numeric_limits<double>::quiet_NaN(); double x = double_nan; if (x == double_nan) cout << "OK" << endl; [/CODE] I dont get OK! Why?

Software Development c++
Member Avatar for dusktreader
0
106
Member Avatar for Gagless

I'm working on a bunch of stuff with arrays. At the moment I'm trying to come up with with an insert function that allows me to put as many elements as I want into an array, only keeping the five recent most elements. So I guess what I want to …

Software Development c++
Member Avatar for WaltP
0
159
Member Avatar for lomyuk

can someone help me with the uses of programmer define functions?

Software Development visual-basic
Member Avatar for purplegerbil
0
105
Member Avatar for turbomen

Dear All, Could you tell me what is / are wrong of the coding? Cheers,

Software Development pascal
Member Avatar for finalist
0
156
Member Avatar for PDB1982

Here is my assignment: "Define a class for rational numbers. A rational number is a number that can be expressed as the quotient of two integers. For example, ½, ¾, 64/2, and so forth are all rational numbers. (By ½ and so on we mean the every day fraction, not …

Software Development c++
Member Avatar for tetron
0
2K
Member Avatar for lordvoldemort

How do I write a program that takes in some data files that have a bunch of numbers in them and then spits out certain numbers. Which then would be decoded using ascii values. You dont have to write the program, but it would really help full if you could …

Software Development c++
Member Avatar for tetron
0
91
Member Avatar for beckyzammi

Hey guys, i wrote a program in assembly for the 80C51 and it worked but now i have to write the same one for the PIC16F84A in assembly language, and it just wont work. Can someone figure out what mistakes i did? This program controls one 7-segment display to count …

Software Development assembly display
Member Avatar for DENE@DANI
0
221
Member Avatar for anders10

Hi! I want to put up a network with a server and a client. The game shall be implemented in the server. The tictactoe game itself works fine.And I've just started to implement it as you can see from the code. There is supposed to be two players i e …

Software Development client-server java
Member Avatar for BestJewSinceJC
0
145
Member Avatar for JuneM

I am trying to compile this java file and it is giving me an error say : java.lang.nosuchmethodeorror.main what could be the problem? [code=c] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JApplet implements ActionListener { JLabel banner = new JLabel("Your Name"); int fontSize = 18; Font theFont …

Software Development java java-swing
Member Avatar for sincerelibran
0
216
Member Avatar for lecotti

Hello all, long time since i've posted anything here. Working on a small project and nearing the end; however i am having some trouble regarding pointers to 'multidimensional' arrays, hopefully somebody can help me out. :) I have what i think is an array of 2D arrays of which I …

Software Development c
Member Avatar for lecotti
0
134
Member Avatar for babylonlion

Hi there, All i want to do is read the jokes from a text file (using Scanner) and then write them out to three different files with three different extensions (fileName1.obj, fileName2.dat, fileName3.txt), that's part A. Part B, Create a class called FileWatcher. • This class can be given several …

Software Development java multithreading
Member Avatar for BestJewSinceJC
0
147
Member Avatar for laelzio.mosca

I`m trying to write a sample program in java, but the book doesn`t explain how I should write my html code to execute it, I don`t even know what I should use to write a HTML code, I looked online, but didn`t find much. this is the java code: [CODE]import …

Software Development html-css java java-swing
Member Avatar for sincerelibran
0
86
Member Avatar for chern4ever

issit possible to let java obtain the path that store the specific .java file?

Software Development java
Member Avatar for chern4ever
0
73
Member Avatar for JuneM

I am trying to compile my java file here but I am getting 8 erros with the same sybmol : illegal start of an expression here is my coding: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JApplet implements ActionListener { JLabel banner = new JLabel("Your Name"); int …

Software Development java java-swing
Member Avatar for sincerelibran
0
406
Member Avatar for kedarm

Hi! My problems are more of porting a code to Windows, than the code itself. I need to download a file from a URL ( http://127.0.0.1/img.jpg ) and store it in a local file. I think I've screwed up the setting up of the libcurl libraries. I am using Visual …

Software Development c c++ file-system
Member Avatar for Salem
0
1K
Member Avatar for london-G

Hello everyone! I would like to create a quiz and wonder what is the best way. 1. Using a textfile to read in the questions/answer 2. Using radio buttons 3. Or something else you suggest? Ps: I have lot of questions in the quiz Thank you

Software Development vb.net
Member Avatar for london-G
0
154
Member Avatar for sexyzebra19

I've followed an example from a website on how to use diff time, however its telling me that it took 0 seconds which obviously isn't right...can anyone please explain what I'm doing wrong? Thanks in advance! [code=php]int main() { time_t t1, t2; double dif; Matrix A(2); Matrix B(2); A.SetElement(1,1,1); A.SetElement(1,2,2); …

Software Development c++
Member Avatar for Salem
0
421
Member Avatar for hgill006

Im brand new to C++ & Im having trouble with this program im writing i got all the way to the end of it working im just having problems using the setw function in reading and outputting from a file. I have my code attatched for what mine looks like, …

Software Development c++
Member Avatar for lotrsimp12345
0
180
Member Avatar for katwalatapan

Hello, I have observed a data access misaligned error in my code. I am trying to isolate the issue and find reason for its occurrence. [code=c] float *mul; int main(void) { int i; mul=(float *)malloc(36000); *mul=0; for(i=1; i<9000; i++) { *(mul+i)=*(mul+(i-1))+(1/(float)(72000/2)); printf("%f\t", *(mul+i)); } free(mul); return 0; } [/code] Please …

Software Development c
Member Avatar for katwalatapan
0
339
Member Avatar for idreu2go4it

Boy, am I really confused about this!!! I have an assignment that is wanting me to create a python statement that will produce f(x) for: f(x) = 2xcubed - 8xsquared + x +16. Then, using the same function, write a python program that will find the extrema (both high and …

Software Development python
Member Avatar for vegaseat
0
409
Member Avatar for iNach

Hey, I have a problem. I have a URL which is something like: [url]www.WEBSITE.com/player.asp?File_Name=[/url][B]URL_of_The_Video.wmv[/B]&Path_Name=URL_Which_[B][U]Changes[/U][/B] I need to get only the URL of the video. I know I can get off the: "www.WEBSITE.com/player.asp?File_Name=" out using a string.Replace \ string.Remove but the address AFTER the video URL is changing. [b]So what I …

Software Development
Member Avatar for Geekitygeek
0
137
Member Avatar for JamesGeddes

Hi Everyone, I'm making a windows mobile app in C# that aims to help those affected by Alzheimer's Disease Part of it needs to send text messages at 5 minute intervals, however, the rest of the C# program needs to continue at the same time. I know that when you …

Software Development c c# c++ multithreading visual-basic
Member Avatar for Cory_Brown
0
133
Member Avatar for ryang96

hi, so im a newbie at coding, im trying to learn some c# (i think i have it down somewhat) but i cant figure out why it's giving me this error..if someone could give me a hand that would be great :) The name 'Send' does not exist in the …

Software Development
Member Avatar for Geekitygeek
0
972
Member Avatar for eliza420

My problem is how to seek or search a word from my text file. here how it done. I want to search a word "Computer" found in my text file, and will output or will be print of screen as "Computer been found!" if the keyword are found and will …

Software Development c c# c++
Member Avatar for Fbody
0
170
Member Avatar for Aurorian

Hello Daniweb, I'm new to C and I need help with this basic calculator. It's supposed to calculate investment, only it never gives me the correct result Here is the source, [code] #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <math.h> int main() { double result; int a; int b; int …

Software Development c c# c++
Member Avatar for Aurorian
0
200
Member Avatar for mugun

i am writing a code where the user will update the staff,but my update command has some problems. i think its the comma's in my command,can somebody help me....... this is my code [code=vbnet] Imports System.Data.OleDb Public Class EditDeleteStaff Dim PwdCon As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "/Blindz.mdb; …

Software Development dataset open-source vb.net
Member Avatar for JdTSC
0
151
Member Avatar for drewpee

Ok so i have a couple of [B]Strings[/B] and [B]Dates[/B] I'd like to use in making my reports. I can't seem to make it work. any help? This was my latest failure. [CODE]SELECTCCIF_No, Date_Recieved, FROM serviceRS WHERE Date_Recieved >= '" & DateFrom & "' AND Date_Recieved <= '" & DateTo …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
114
Member Avatar for ndshah

This windows application finds the amount of your pay if your pay is doubled each day, starting with a penny a day or a nickel a day. Instead of one month's salary, a boss offers her new employees a penny the first day and experienced employees a nickel the first …

Software Development pay-per-click vb.net
Member Avatar for TomW
0
551
Member Avatar for alcapone11

hi, i'm beginner in assembler, i'm just start study this language... please can someone explain me, what do this two functions? cbr flags, (1<<pressed) ;Clear status flag sbr flags,(1<<pressed) ;Set status flag please if you insert example, it will be only better...:)

Software Development assembly
Member Avatar for alcapone11
0
94
Member Avatar for wilsonz91

Hello, I know i'm suppose to ask programming questions but i'm stuck on how to do it in the first place, the question is: You are given 4 information-gross pay, number of extra hours worked, the hourly pay rate, and the income tax rate. Calculate the overtime payment: Overtime payment …

Software Development c++
Member Avatar for thomas_naveen
0
131

The End.