199,114 Archived Topics
Remove Filter ![]() | |
Assignment - read an input file that has month, highest temp for month and lowest temp for month. I have to use a function called GetData to fill the array. I define the array as 12 rows and 3 columns. Please could someone look at the code I have and … | |
Hi Would anybody be able to tell me if there is a book or any material ot there explaining what kind of widgets you can get for C++. I'm not sure what kind of widgets are available in terms of functionality. When I say types I mean say textbox or … | |
Ok so if I wanted to do a simple while loop with a user inputting a number and a function doing some calculations, would it be possible to have it so that the user can type in 'quit' instead of a float if they want to quit? Thanks in advance. | |
I have a sliding navbar that works fine until the mouse is moved too quickly over the links. Each link expands onmouseover and contracts onmouseout. The problem is, the onmouseout event is missed sometimes and then the link doesn't contract. Does anyone have a way to ensure that links are … | |
hey guys, this is what i have so far... this part is from the main.cpp [CODE]double x; cout<<"Enter a number to search for: \n"; cin>>x; list.search(x); if (list.search(x)) cout << "\n" << x << " IS on the list! AT POSITION :" <<endl; else cout << "\n" << x << … | |
i have this code and for an class work task and you have to do a walkthrough table and work out the output. But i dont know how you do a walkthrough table. Can someone help? [CODE] int c = 0, sum = 0; while (sum < 8) { c++; … | |
I logged into a computer which is not mine. I know there is apache installed because when I type whereis apache it shows /etc/apache it has only a few files. I need to know where the htdocs directory is and also where http.conf file is. How do I accomplish this? … | |
What are the pros and cons of class and object methods? Which is more concise (usually)? What kind of computations can be expressed most naturally using each style)? Explain PLZ!!! | |
Im trying to call the reset method within this Connect4Model class is that possible. As you can see I have made and attempt and I'm getting 33 errors. I can't exactly see where I'm going wrong. If someone can guide me and let me know where I've gone wrong that … | |
Hi, I have some code for a program that I'm doing. Basically I'm trying to write method whereby the reset() method takes two parameters which are number of columns and number of rows. I'm doing this method whereby I have to to move all the contents of the Connect4Model constructor … | |
I'm new to doing Java and i was wondering if anyone would happen to know why this return type error is occurring. this is the following error C:\Users\..\Desktop\Connect4Model.invalid method declaration; return type required public reset(int numCols, int numRows) [CODE]public class Connect4Model { Connect4Column [] columns; // an array of columns … | |
OK I am writing a custom application which needs to do a limited amount of web browsing... i.e. browsing is not its main intention but yes it is ABSOLUTELY necessary for it to be able to browse the web.... I am using a JEditorPane with the HTMLEditorKit for the display … | |
Hi there, I have written a simple program which I know a solution to, I simply don't understand why the version below doesn't work. I have investigated the answer to roughly how it goes wrong, I just don't know why! Where the problems begin is commented in the last six … | |
well ive been trying to make an app in VB 2008 Express Edition so that every time my timer ticks it randomly adds a number like it either adds 1 or nothing but having trouble with it since it just does it one time this is my coding for the … | |
I have a site which maintains a local message database and addressbook. What I would like to do is the following: When a user contacts another user a record of that message is stored in the message database and an email is also sent to that user. Any response to … | |
Here is way to put easily editable layout for input fields with standard look and collect the text variables to list for use. | |
I've designed database structure for a system I'm building. Currently I chose to use a forum style (forum, thread, post) for a section which gives user content. I'm stuck on name / naming conventions since it is not a forum. I want to use basic name principals. I thought at … | |
Suppose if I have a dynArr pointer and a file pointer as parameters, and in the DynArr I am storing a TYPE with an integer value and a string description. How would I put the TYPEs in the DynArr into a txt file while tabbing between the string and the … | |
Hello, I have written a small java program that simulates a Lottery draw. I would like to generate multiple "lotto tickets" e.g 20 tickets containing 7 numbers at one time when i run the program rather than just a single ticket every time i run the program. Below is the … | |
I'm a newbie, and...cannot find the answer on the Web. If you want to use the OR operator in Java, "||", how can you type it so the compiler will accept it? The character "|" on the same key with the backslash ("\") looks like it should be the right … | |
Hi I've been taking a python course and now that were done the professor wants us to write a program to list all the prime numbers from 2 - 10000. Oh yea and it has to be in C. So I am very stuck and really need help. Heres the … | |
Please help me how i can contact the daniweb admin. | |
I've written this code to obtain an alternate display of '|' and '\*' starting with '|'. To ensure the altering of o/p I've used the yield(). But this doesn't seem to serve the purpose. Can someone point out where have I gone wrong ? import java.util.*; class Pat extends Thread … | |
Hey... I've got some problems with jQuery. Code: jQuery: [code] <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".bspicdiv").animate({height:0},"fast"); $(".bspicdiv").animate({width:0},"fast"); $(".bspic").click(function(){ $("#box").animate({height:500},"fast"); $("#box").animate({width:500},"fast"); $(".bspicclose").click(function(){ $(".bspicdiv").animate({height:0},"fast"); $(".bspicdiv").animate({width:0},"fast"); }); }); }); </script> [/code] PHP/HTML: [code] echo "<a class=\"bspic\" href=\"#\"><img border=\"0\" src=\"./bsbilleder/".$file."\" height=\"80\" width=\"80\" /></a>"; echo "<div class=\"bspicdiv\"><a href=\"#\" class=\"bspicclose\"><img border=\"0\" src=\"./bsbilleder/".$file."\" height=\"450px\" width=\"450px\" /></a></div>"; … | |
Hello I'm stuck on a CS1501 compile error for this line value = PortAccess.Out(PortNum + 1); its supposed to change the Port from 888 to 889 Am I over complicating it? It's late, I can no longer see the forest for all these trees.. =P [CODE] public bool inportbit() // … | |
Hello everybody, is there somebody that can help?? I'm having string (my example in string 55+22)that must be inputed by keyboard .. the first part I've done to put 55 to another array 2(with strtok function) Now that I was tries for many hours to put 22 to an other … | |
Hi everybody have not posted in a while. In all truth i am stuck but very close to finding the collision answer. Note 1 (Most of this skelton was premade for the assignment). Some variables i don;t even know what they do like Vy1. Incx, Incy. Stuff like the file … | |
Hello guys, I'm trying to get this employee class to work correctly and everything seems to be fine, up until the part comes where it should output all of the information (such as hours worked, hourly pay rate, gross pay, tax amount, and net pay). My program allows me to … | |
I am trying to make a list of array pointers, Is there a way that after declaring an array i can adjust the size? For example at start i create a array called : "list[2]" Is there a way that later on i can change "list[2]" and make it "list[3]" … | |
I have problem in reqruired output [B]the input is[/B] 333-0092-8868389 [B]required output is[/B] Country code is = 0092 City code is = 333 7-digit number is = 8868389 Phone number in correct sequence is = 0092-333-8868389 The full code is [CODE] #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> void main() { [COLOR="Red"]char ch,*str,*country,*city,*digit;[/COLOR] … | |
i'm a C# developer and new to C++. I have to learn about C++ due to my new Project. but no clear idea about Pointers.. therefore if someone who know about Pointers,please teach me them.. | |
Say I have an xml document contained in the variable xmlDoc Now if I send that to the server using [ICODE]xmlHttp.open("POST", url, true); xmlHttp.onreadystatechange = handleStateChange; xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;"); xmlHttp.send(xmlDoc);[/ICODE] How is the serverside php code going to handle this? As form data are retrieved as fn = _POST["firstName"] if the … | |
Hello there members of DaniWeb :) Im making a website for my father but suddenly an error came up :( Error: Parse error: syntax error, unexpected '(' on line 44 Code: $first = true; $include_file = "./inc/acp.php"; foreach($_GET as $key => $value) { $include_file .= (($first)?("?")("&")) . $key . "=" … | |
Hello Could someone tell me if this code is even close to code for a login using a DAO and an embeded db? if not there is a proceedure losted below that I really don't understand the '?' and how to use the uid to query the db [b]specific question[/b] … | |
Hi, all i have to make an application in which there is requirement to hide a cursor when a event is generated and cursor enters a panel, and if the mouse is clicked in the panel, the cursor has to be show again. But i am unable to do this. … | |
Apologies if this is simple to some, but it's been doing my head in. I've got my client application receiving the XML from the server but I'm having a hell of a time parsing it. The XML is : [CODE] <?xml version="1.0" encoding="UTF-8"?> <page> <id>1</id> <code>HOME</code> <template>1</template> <menulevel>0</menulevel> <menuname></menuname> <menutooltip></menutooltip> … | |
So heres a portion of my program... the program has several functions (each doing diff. things) Im having a problem I can not find the way to write the sum of the third row in costOfSports array. the book says something like this: for(col=0;col<5;col++) { for(row=0;row<3;row++) { row_sum[row]=array[row][col]; } } … | |
Dear All, I have a dedicated server with Godaddy and I am running XMLDigitalSignatureAPI on it. It works fine on my local server but when I uploaded the war file to the production server I got the error below and if I try to refresh the page again I get … | |
it prints the integer string b.var CORRECTLY.BUT not it's individual integer constants.....WHY? (ABCD.TXT is a bin text file containing data 10110000)[code]#include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> struct st { int var[8]; }; struct str2 { char a1; float a2; int a3; int a4; char a5; char a6; int a7; char a8; }; … | |
Hi ! Let's get directly to the problem : I'm actually doing a firefox extension in which i would like to implement the [URL="http://jwebsocket.org/"]jWebsocket API[/URL] in order to build a small chat. I got my main script file, named [I]test.js[/I], and the jWebsocket lib into a js folder. Just for … | |
Hey! I want it so that the user presses an A tag, a link, to submit a form. Here is some of my code: [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>jeje</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> function popup(url, height, width,form){ newwindow = window.open(url,'333','height='+height+',width='+width); if (window.focus) … | |
Hi, I'd like to copy one directory to another, including subdirectories. Each file that is copied over needs to have its own thread and each following thread must wait for the previous one to finish and exit before being created. The directory names are passed in *arg separated by a … | |
I am currently in a basic AA program for information technology and my original focus was going to be a bachelors in web security. I have recently been employed with a school district helping the network administrator for the district and have sense wanted to become a tech. I mean … | |
![]() | Ok so i have been looking this up on the internet but all the stuff i've been finding has been for other stuff or worked in a different way than i wanted it to. So what i need is a Filetype filter for a FileDialog (not a JFileDialog or anything). … |
I'm writing a replacement to the windows event viewer, and as such, I require my program to start with admin privileges by default. Yes, I could run it without admin privileges and then have it elevate as required, but that could get very annoying very fast as the security log … | |
I'm using verion 3.5 of the .NET framework I have a form with a number of controls including text boxes. All my text boxes are named in the style txb_name, can I search for controls with txb in their name? The following code doesn't work: [code] For Each tb As … | |
Help, I dunno what is d 1st step of creating a shopping cart in asp.net. | |
I want to test if a value is a key from a dictionary, i do this like so: [ICODE] if value in dict: print "value found" else: print "value not found" [/ICODE] Now this doesn't work if value = "abcd" and the key in the dictionary is "Abcd"... How do … | |
hi everyone, i have a constructor like this, [CODE] CStack(int n) { bottom_ = new char[n]; top_ = bottom_; size_ = n; } [/CODE] In my main class i call the constructor by creating a[CODE] CStack(5); // bottom_ = new char [5]; [/CODE] my question is can increment the size … | |
Hi, Could someone please share your idea on how to write a simple Hello World Boot Loader. I have been using OpenSuse Linux and and x86. I was able to write a single letter using the corresponding Ascii key. What about a string? Thanks, Citizen. |
The End.