199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
hi guys, How to set html element value using php??? if it's not possible how to do this?? Thanks | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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] | |
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> … | |
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 … | |
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 … | |
Hi, What is the best way of securing $_SESSIONs in PHP page that prevents $_SESSION spoofing? Any example! Thanks | |
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 … | |
[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 = … | |
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. … | |
hello please help me how to print my data that sends to the printer hoping for your positive responds.... | |
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 … | |
<?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: ' . … | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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? | |
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 … | |
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) … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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 … | |
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. … | |
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 … |
The End.