199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jpalka2010

So I'm trying to enter all the information for this program and it's giving me a hard time. The ones with (need help) are the tough steps. The text file and functions are found in the attachments. U-WATCH-UR-WEIGHT "At the beginning and end of each month, members of the club …

Member Avatar for jonsca
0
166
Member Avatar for MxDev

hi guys, How to set html element value using php??? if it's not possible how to do this?? Thanks

Member Avatar for MxDev
0
153
Member Avatar for Violet_82

Hello there, can anybody help me with this? I have a simple program like the attached. What I would like to do is to come up with an executable file that I can email to myself and execute on another machine. What happens at the moment is this: I wrote …

Member Avatar for Violet_82
0
324
Member Avatar for markfisher

Hi I'm really sorry if my questions are stupid. Can someone please explain why we create wrapper function for standard library function? (Example: glib made wrapper function for malloc()) Why do we hook our program to standard library? (malloc, free, ...) Thanks Mark

Member Avatar for WaltP
0
77
Member Avatar for jmstickney

Hi Everyone, I am BRAND NEW to C and I am trying to make a program that takes 3 inputs. The first is a number, the second represents what base the first argument is, and the third argument represents what base this number should be outputted as. For example: convert …

Member Avatar for Dave Sinkula
0
86
Member Avatar for beforetheyknew

Hi guys just wanting some help with exceptions. I understand the try and catch concept but I struggle more with the throw and throws concept, it is my understanding (that may be incorrect), that you a method can be like [CODE]public class thisMethod throws whateverException[/CODE] Am I right in thinking …

Member Avatar for BestJewSinceJC
0
105
Member Avatar for bharatk

Hello I have a .py file. I am creating a .bat file which when clicked runs the python script & saves the output as a text file in the same directory. I gave this inside the batch file [CODE]%CD%\App1.py > %CD%\op.txt [/CODE] but I am not able to see the …

Member Avatar for bharatk
0
245
Member Avatar for cktbrd

I need help with this. It has been awhile since I coded in c. [CODE] unsigned char test=0x00; char tmp[20]; //reserve 20 bytes for string switch(test) { case 0x00: tmp="Hello String 0"; break; case 0x01: tmp="Hello String 0"; break; case 0x0F: tmp="Hello String 0"; } [/CODE] All I want to …

Member Avatar for cktbrd
0
95
Member Avatar for Aprentchacker

Basically I'm trying to adapt the quicksort algo for array based lists for linked list as shown on a text book. This is only for learning the principles than practically effective sorting. I have struggled to get this code to work, but stil seems to break on a few test …

Member Avatar for Aprentchacker
0
930
Member Avatar for Stefano Mtangoo

I already Know Ancient Dragon is fan of MSVS due to its debugging features and I use C::B because it is the only I have come to love after failing to love both VS Express and Codelite. So what do you love to use when it come to C/C++? Just …

Member Avatar for VilePlecenta
0
232
Member Avatar for Gaiety

[CODE]/* Function to find prime number if so return 1 else return 0 */ #include<stdio.h> #include<math.h> int isprime( int num ) { int i ; int sq = ( int ) sqrt ( num ); /* here check should be done for num = 0 and 1 other wise 0 …

Member Avatar for Gaiety
0
2K
Member Avatar for Bagleys

Hi I have made a program that i would like to be able to move from PC to PC; at the moment i would have to change the string directories within the program for each PC i would like top run it on. By having the user select their drive …

Member Avatar for Bagleys
0
137
Member Avatar for betty_vaness

Given a 2 dim array write a VB PROGRAM that will add all odd numbers greater than 3. This is my solution but am not that sure so assist me. if( number % 2 == 1) ____number is odd else ____number is even so checking if it's odd and greater …

Member Avatar for bojofien
0
85
Member Avatar for pablo989

Hi, I would like to use nested tokens, a similar question was asked in this thread [url]http://www.daniweb.com/forums/thread110255.html[/url] While this did address how to do it with a single instance, I was wondering how to do it with multiple instances in a string. ie. input to textbox1 "I {love|like} {blue|red|orange|pink} its …

Member Avatar for pablo989
0
86
Member Avatar for txwooley

I wrote a script (kind of a learning thing) to open .rar archived files using unrar (non-free) in Linux. Now I want to add a section where my script will check to see if unrar is installed. To complicate matters, Linux also has a package 'unrar-free', and both use the …

Member Avatar for txwooley
0
128
Member Avatar for Sri Vidhya

I tried executing this program, it says, C:\Program Files\Java\jdk1.6.0_18\bin>java ClassWithManyStaticMethods Exception in thread "main" java.lang.NoClassDefFoundError: ClassWithManyStaticMe thods Caused by: java.lang.ClassNotFoundException: ClassWithManyStaticMethods at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: ClassWithManyStaticMethods. Program will exit. What is the problem? I clearly …

Member Avatar for AndreiDMS
0
117
Member Avatar for vinoli

My java program is not executed.I saved it in mydocuments.It is in MS-Dos batch file.What should i do to execute it?

Member Avatar for javaAddict
0
89
Member Avatar for moe121

Change a Color Image into a Grayscale(Black & White) Image. I'm using borland c++ Thanks Just like this code, but in C++ instead of C#: [url]http://www.daniweb.com/code/snippet217154.html[/url]

Member Avatar for Salem
0
789
Member Avatar for moggy4

Hi All i am quite new to mssql db and would like to find someone to help me with some errors i keep getting i have uploaded my new db and when i try to open my website i get the following errors [code] <!-- Web.Config Configuration File --> <configuration> …

Member Avatar for kadempalli
0
166
Member Avatar for ShadowScripter

Hey, it seems when I try to draw textures using the Z value in the D3DXVECTOR, it doesn't affect the drawing outcome. For example, I draw a red ball, then a blue ball on top of the red ball, where the red ball has a depth value of 0.1f and …

Member Avatar for ShadowScripter
0
141
Member Avatar for anevins

My program will not output the right answer if minus/negative doubles are inputted however the program will output the correct positive double. I think this is because I haven't used the Math.abs correctly but I don't know how to fix this. My code is as follows: [code] public static void …

Member Avatar for Zaad
0
157
Member Avatar for veledrom

Hi, What is the best way of securing $_SESSIONs in PHP page that prevents $_SESSION spoofing? Any example! Thanks

Member Avatar for amd_k8
0
256
Member Avatar for gamestoenjoy

Hi, I am currently learning AJAX, and I want to write an simple example program (it is only for practice, it has no real meaning). The program sends request to to PHP and gets response from it, then it should write the response using message box, all should happen on …

Member Avatar for gamestoenjoy
0
368
Member Avatar for low1988

[CODE] import java.net.*; import java.io.*; import java.security.*; import javax.crypto.*; public class messagedigestsend { public static void main( String [ ] args) throws Exception{ byte ttl= (byte) 0; try { MulticastSocket mSocket = new MulticastSocket(); MulticastSocket mSocket2 = new MulticastSocket(); InetAddress mAddr = InetAddress.getByName("224.0.0.1"); String sendString = "M"; byte[] plainText = …

Member Avatar for thekashyap
0
116
Member Avatar for anevins

I need to use the valueOf method to return a string representation of a boolean arguement but I don't know how to use this method. Here is my code at the moment, if the inputted file name ends with .txt then 'true' is returned, if not then 'false' is returned. …

Member Avatar for thekashyap
0
160
Member Avatar for jemz

hello please help me how to print my data that sends to the printer hoping for your positive responds....

Member Avatar for QVeen72
0
223
Member Avatar for chrisname

Hi :) I'm writing a basic 2 stage bootloader (I actually do plan for it to work, it's not just a hello world loader) and I've migrated to nasm. I find it much easier to use, etc. etc. Anyway; I'm using the times directive to get the program to 512 …

Member Avatar for chrisname
0
2K
Member Avatar for pradeepbaji

<?php class UserSession { public $php_session_id; public $native_session_id; public $dbhandle; public $logged_in; public $user_id; public $session_timeout = 3600; # 1 hour inactivity period public function __construct() { # Connect to database // $conn = mysql_connect($_ENV["DATABASE_SERVER"], 'db54496', 'HQe9rpTS'); $conn = mysql_connect('localhost', 'root', ''); if (!$conn) { die('Could not connect: ' . …

Member Avatar for pradeepbaji
0
141
Member Avatar for cwarn23

Hi and I have been working on an image uploader but need to be able to convert tiff files using php. From my understanding there is the gd library which doesn't support tiff files and the [URL="http://au.php.net/manual/en/function.exif-thumbnail.php"]exif library[/URL]. Does anybody know how I can convert a tiff file to a …

Member Avatar for cwarn23
0
814
Member Avatar for ryanshady

Hi guys, i'm new here and this is my first post. This is my problem: i got an assignment like this: create a set contain of UNIQUE uppercase character, then do some operation on it, like, add element, check if element are in the set or not? how many elements …

Member Avatar for ryanshady
0
113
Member Avatar for JAM1011

Hi, I really need line with this I can't figure this out . I am looping through items in a list view box, I am then adding them to a string. I need each new line in the listview box to be a new line in the string. I will …

Member Avatar for JAM1011
0
109
Member Avatar for deorcar

ok i have to make a matrix class for a math library and im now Very lost with what im ment to do or how to do it the code i have so far is: [CODE] #include <iostream> #include <math.h> #include "Vector2.h" class Matrix { private: float data[3][3]; public: Matrix() …

Member Avatar for smarty_t2
0
98
Member Avatar for green_leav

Hello everyone....this time a have a competition program that I want ur help but this time i just want from u answers to some problems that i faced when i was working on it : this is the program: Mail merge is a software function describing the production of multiple …

Member Avatar for green_leav
0
154
Member Avatar for abhimanipal

Hello All, I am unable to understand this piece of code [code= c] main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } [/code] I got this question from a C problem set. I run this code and I have to give the i/p 3 …

Member Avatar for xavier666
0
142
Member Avatar for Kombat

The user types bits 110, or 6, and the program returns the 6th input. How do I get the program to scan in a binary and decimal value?

Member Avatar for Salem
0
117
Member Avatar for hwlibra083

This is probably a really easy question, and I know it's starring at me right in the face, but I can't put my finger on it. I'm doing this semi-simple program for school and I think my only problem here is passing my array of structs to a function that …

Member Avatar for hwlibra083
0
296
Member Avatar for pac-man

hi all, I'm a newbie to AJAX (spent most my time on the C++ forum) but I'm in need of some advice. I plan on building a web-application in PHP with AJAX functionality. Now, I've never touched AJAX before and wanted to know which route would be more convenient a) …

Member Avatar for kvprajapati
0
135
Member Avatar for abhimanipal

Hello, I have a conceptual code related to the C memory allocation model if I have some code of this form, I will get a seg fault [code=c] int main() { char* p; *(p+5)='A'; printf("%c\n",*(p+5)); } [/code] But when I have some code of this form I do not get …

Member Avatar for WaltP
0
282
Member Avatar for kazmi_salman

Hi there! Need help wid this. i need to change all the uppercase characters to lowecase and vice versa. when i compile it shows cannot find symbol on line 13 and 18. Kindly help. Also tell me how to make the first letter of each word in uppercase. thnx in …

Member Avatar for kazmi_salman
0
110
Member Avatar for Kombat

[code]Write a C function that implements a 3-bit mux, following the pattern I showed in class. Remember: &&, || and ! are used to represent the logic gates. For testing, your program should behave as follows: three control bits: 1 1 0 eight inputs: 0 0 0 0 0 0 …

Member Avatar for abhimanipal
0
268
Member Avatar for SeanBlack0000

I am trying to check the customers request against the volume remaining in the tank. If the request is greater, I need to instruct the customer to move to the next tank. But I am having problems. The tank is set to store 100 gallons. On the 1st request, I …

Member Avatar for SeanBlack0000
0
111
Member Avatar for VilePlecenta

Backstory: I took up learning C/C++ a couple months ago when I was in a game hacking forum. Since then I have changed my interests and no longer desire to make exploits for games for personal reasons. At the moment I am studying Programming Windows 5th Edition by: Charles Petzold …

Member Avatar for VilePlecenta
0
330
Member Avatar for rajeesh_rsn

Hai friends, I wanna pass php variable through url using the GET method. I know like this [ICODE]www.somesite.com?name=thename[/ICODE] And works well but in many web sites I found they passing their variables like this [ICODE]http://www.flickr.com/photos/chocks[/ICODE] Without the question mark ... I wonder how to do this... Please advice me how …

Member Avatar for rajeesh_rsn
0
109
Member Avatar for zangetsuu

my function was working all fine and dandy but boring until my friend separated the function for me which we are suppose(required by teacher) to do and now my program stops after i enter the first and last name ( i was the one that added multiple return 0;) i …

Member Avatar for zangetsuu
0
1K
Member Avatar for ronghel

hello .... i just want to ask.. what is the algorithm for searching a data in database.,. example : txtbox is equal to 060100 .. i want to search all the information about 060100.. thanks.. :D

Member Avatar for BestJewSinceJC
0
68
Member Avatar for linuxdude

Hello, I am beginning learning intel assembly. I am taking simple gcc programs and looking at the assembly. All gcc outputs have a line similar to: mov DWORD PTR [ebp-4] that I can't figure out. For example [code] int main(void) { int x = 5; return 0; }[/code] gives me …

Member Avatar for NotNull
0
4K
Member Avatar for operator494d

Hi,I'm new to assembly but i cannot figure this out NEG BYTE [BX] ; Negates byte quantity at DS:BX NEG WORD [DI] ; Negates word quantity at DS:[U]BX[/U] first line I understand but how did he get BX register in second line?! thanks in advance

Member Avatar for NotNull
0
84
Member Avatar for nunos

Hi. I am complete beginner in databases, so please bear with me stupid questions. I am just doing for fun a simple exercise. A faculty have students and each student have different subjects. My question is, how to store the different subjects in the db? I could make up some …

Member Avatar for apegram
0
158
Member Avatar for SeanBlack0000

In this snippet of code, I am trying to check the customers request against the volume remaining in the tank. If the request is greater, I need to instruct the customer to move to the next tank. But I am having problems. The tank is set to store 100 gallons. …

Member Avatar for WaltP
0
473
Member Avatar for terabithia

Hi, Could someone please let me know how to terminating char pointer array properly? The menu 0 can successfully generate a set with no garbage value But other function for ex: Union , Equality Got a weird character at the back of the array. ex = S = { A …

Member Avatar for dusktreader
0
152

The End.