199,114 Archived Topics
Remove Filter ![]() | |
I am not sure if this is the right place to post. But I am creating a website that is similar to sourceforge with project hosting and such, I need the requirements for the site. I know how to program JS and html and such as well as software languages, … | |
Hi guys, I have a problem with this question, where the amount is constantly $0 and at the end if the user enters Y/N it just closes without saying "Transaction Completed/Cancelled". Any tips on how to fix it? Thanks [CODE]#include<stdio.h> #include <iostream> #include<math.h> int main() { int numofbees; float price … | |
hy.... how to get year now and 10 year before with query result is 2009,2008,2007,2006,...... thanx.. | |
There is DateDiff() function in VB.NET but which function is equivalent to it in c#? I m facing problem in converting this vb.net code to c# [CODE] Private LastPointWhenClicked As Point Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick If LastPoint = Cursor.Position AndAlso LastPointWhenClicked <> … | |
What would happen if I (somehow) made an enum bigger than unsigned int? Each item in one is assigned a numerical value, I'm guessing that is unsigned int. Would it be boring like an error message or fun? Knowing what's allowed with naming the values there is more than enough … | |
Hi, I'm making a login application but i have the following problem. When an user clicks the button "Login" it is allways correct. I would like to check in my sql database if the user and password match. Does anyone have an idea? [B]Database.cs[/B] [CODE]using System; using System.Collections.Generic; using System.Linq; … | |
Hello ppl, Please i have been dying to get this to work but no help what so ever, i tried so many ways and so many searches but i always reached a dead end.. I have a ReportWizard that i created, an .rdlc file, and i have a report Viewer … | |
Dear friends: I am using " Seldon c++ libary for linear algebra, http://seldon.sourceforge.net/" in my heat transfer code. the paltform is vs2010. I use the Seldon::Vector<double> in my class mesh to store the x y coordinates. I include the "Mesh.h" in my main.cpp.but it gave me some error about seldon … | |
Well I just want to know, how to give variable size for an array(Particularly, second subscript). For example, like this [CODE]#include<iostream> using namespace std; int main() { int a,b; cout<<"Enter the size for the 2D array"<<endl; cin>>a>>b; int*A=new int[a][b];[/CODE] for a its ok, But how to make it work for … | |
Hi all, I came across a new issue in curl request with php. I need to fetch a document from other host [url]http://xyz.com/content.html[/url]. I cannot view that page without login credentials. So I have given [url]http://user:pwd@xyz.com/content.html?get1=x&get2=y[/url]. I can send a successfull curl request to that page in a command line … | |
![]() | got a problem with a login page, my code doesn't seem to seperate each users details from the database. Here is my code: any suggestions? [CODE]<%@page import="java.sql.*"%> <%@page contentType="text/html"%> <% String loginMessage = ""; String un = ""; String pw = ""; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection cn = DriverManager.getConnection("jdbc:odbc:RentalDB", "", ""); Statement … |
Design and analyze an algorithm that searchs for an element x in a sorted table A(with n elements), so that its complexity is O(logD). D stands for distance, counting the amount of elements between the first element and the element x in table A. Simpler, D is the position of … | |
Hi there, quick question. I am reading a book about javascript and the author doesn't seem to like quotes ("") at all, but he loves angled brackets (<<>>). what really strikes me is that it looks like he uses them instead of quotes. FOr example I would say: [ICODE]alert("Hello WOrld!");[/ICODE] … | |
Let's say I've the following drawing: Is it more likely to use an Array or a List? (The max of Px (p1,p2...) is 10) If it's possible to do in an Array can you please give me a quick explanation how? | |
hi here new to asp.net.cn any body help me realted to asp how can i learn asp.net.some toturails etc. | |
[CODE]int main(void) { int operations, i, operands; char *string_dig1, *string_dig2; // OPEN THE FILE FILE *ifp; ifp = fopen("bigint.txt", "r"); fscanf (ifp, "%d", &operations); printf("%d\n", operations); // MAKE MEMORY TO READ THE STRING DIGITS INTO THE ARRAY string_dig1 = (char *)malloc(sizeof(char)); string_dig2 = (char *)malloc(sizeof(char)); for(i = 0; i <= … | |
Hello, I am putting together a shoddy game for a 48 hour game contest and I have a problem. When I run the program from within VS2008 (by clicking the start debugging button) the program runs fine. I'm doing this in release mode btw. However, If I try and run … | |
I am trying to make a program that randomly selects a name. i have a prompt that allows me to enter the number of names and the names themselves. but i dont know how to save or open the information into an array... can anyone help me with this? | |
Hello All, I have been using c++ console applications for a while. I need to develop some graphical user interfaces. Even though there are many ways of developing a gui, I am not sure what is the most easy to learn and use. There is a library called Q4 library, … | |
i am doing a project for a mobile apps class and i am about 80% done. all the UI is complete, but i need to have a filled out form stored into a db. i used the core data model to set up all the entities/attributes, i just cannot figure … | |
hi,, i m now working on some basics of phonegap for iphone . can somebody let to know how to create database for iphone apps development? and how to connect this database with the iphone? any suggestion are highly appreciated..thank you | |
1. Now with ARC, how would a simple little program like this look like with ARC?: [CODE] #import <Foundation/Foundation.h> #import "FakeClass.h" int main(int argc, const char* argv[]) { NSAutoreleasePool *pool = [ [NSAutoreleasePool alloc] init]; FakeClass *object = [ [FakeClass alloc] init]; //do some stuff [object release]; [pool drain]; return … | |
I want to make a rating system that uses ajax for the rating. i use php and call all of the images, then i want to use ajax to post all the votes to a php script. However, i dont know how to get the elements. I want to be … | |
![]() | I am working on a project of converting VB code to C# code and I am lost as to how to read data from a prompt in C#. Here is the snippet I am concerned with fixing, but below I will post the entire code. [CODE] private void Button1_Click(System.Object sender, … ![]() |
Greetings, I have just went from Access 2003 to 2007.... I have a project requiremtn to output some reports to PDF file format... Don't know how to do it.... I tried doing a little research but.... :-( I am open to ideas... I would like to automate the process so … | |
Hello! Now I am trying to make selection of Customers easier for my user. My user's business involves making deliveries on [B][I]routes[/I][/B]. Every customer is assigned a route number, which references the route in the route table. In my form I want to have [B][I]two list boxes[/I][/B], side by side. … | |
Hi, DaniWeb I'm doing a website for a music school and i have a table with all the instruments: [img]http://img195.imageshack.us/img195/427/50490685.jpg[/img] And i want to click in one image and it goes to other page where's the instrument program. I mean, each image has 1 page with its own program. ![]() | |
I'm using turbo C++. For my SIC assembler I need to read user the input assembly language program from a text file.Each line of the program contains a maximum of 3 words , LABEL OPCODE and OPERAND. LABEL or OPERAND or both can be absent by OPCODE is a must. … | |
Hello, I've been having a lot of trouble with a variable type called "float64". I'm trying to create a do{}while loop to make the number count up each time. data is also defined as an array. [CODE]float64 data[1]; int i; do{ for(i=0;i<1;i++) { data[i]=data[i]+.01; if(data[i]>9.99) data[i]=-9.99; } }while('0'=='0');[/CODE] Any guidance … | |
[B]Hello DaniWeb[/B], [I]C#/ASP.Net[/I] I have a user and a server. The server has an intranet page/site I need the user(off-site) to be able to see if they are a part of a user group(domain\CN) on the server. Using ASP.Net, and Active Directory search classes(Directory Services, etc) is there a way … | |
I am new to Vb.net so I will need some handholding. I have been searching everywhere but can't find what I need. I'm creating an app that has two forms. Each form has two comboboxes. The comboboxes are populated via a list and the list is populated by reading a … ![]() | |
Hello Everyone, I am writing chess code in C++ using a main cpp file and functions only.. SO basically am done with everything except the checkmate condition... the only conditions for checkmate i have checked are the movements that king can make.. but there might be other possibilities of saving … | |
Hello there,ihave given the assigment to make the c program to print the asterisks to represent the grades.. My question is , why the asteriks does not appear ? I think i got problem at the looping for asterisk.. actually my output should be like this : the graph such … | |
Hello everyone, I'm trying to get some text via a C# console app from a web page. The text I'm trying to get is the current players from our Battlefield 3 server we are renting. The url is: [url]http://battlelog.battlefield.com/bf3/servers/show/bcc85e8a-c2fd-41a4-98f4-21548297a9b1/[/url] Obvious, the text I need is this: [url]http://prntscr.com/4qbiz[/url] I have some … | |
Hey guys, im working on a website and i need to design the database so that a user can follow another user and it will be easy to figure out the number of people i follow and the number of followers i have. I'm using mongoDb btw. [URL="http://www.mongodb.org/"]http://www.mongodb.org/[/URL] can someone … ![]() | |
Any help will appreciated. I'm trying to analyze the number of a, b, c, d and e after applying the curve percentage selected by the user. Here is what I have so far. I'm using for loop and its adding the curves to the grade distribution. [CODE]Public Class frmHW13 'Variables … | |
For now the code isn't to complex. Built in Netbeans 7 java 6.... just the basis for now but its very safe connection so thought i'd post it for anyone who needs it. A quit command may be sent to any client by specifying its ID and then press enter … | |
plz help me How to link Access data base with java code. [CODE] public class DataBaseCon { public static void main(String a[]) throws Exception{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:DataBase"); System.out.println("Sucessfully Connected "); Statement st= con.createStatement(); ResultSet rs= st.executeQuery("Select empid,ename from emp"); while(rs.next()){ System.out.print(rs.getString(1)); System.out.println(rs.getString(2)); } st.close(); con.close(); } } [/CODE] Exception in … | |
Hello Every One ! i was using my code [CODE]textbox1.bgcolor = ___colorname___[/CODE] on the gotfoucs event of my textbox , but if i have 34 textboxes then i have to write this line 34 times , which cost lots of time , can any one help me to make any … | |
[QUOTE]Write a program which finds the factorial of a number entered by the user. (check for all conditions) (Beginner).[/QUOTE] Hi, My knowledge about C++ and programming so far is 27 youtube videos. It took me 1,5 hours to figure out and write this :) [code]int main() { int x = … | |
Hello. The title pretty much says it all. I would like to know if and how you can print a number (type is double) with the same amount of decimal spaces as the one you entered. If I enter 12.34 I would like the output to be 12.34 and not … | |
Hi, My name is stefan and I've been trying to develop a php/mysql based CRM for private use. I've stumbled upon a problem a few days ago and I just can't figure it out, so if you could help me, I'd really appreciate it. The problem is the following: I … | |
I need to create a form where you have two possible finishing pages dependent on the answers you give in the form. For instance if you have the question: Do you like sweets? And have the two possible outcomes Yes or No The answer yes takes you to a yesilikesweets.php … | |
I have a larger program that I want to write, but I can't complete it unless I get this down. I have an array, need to put in a string value to be read out. the program generates characters of data at a time, not as a whole string so … | |
Hello, I've come across [URL="http://www.daniweb.com/software-development/csharp/code/258293"]this thread[/URL] while trying to embed a mp3 file in my .NET project, but am having some problem, despite how simple this tutorial is, and just about every other thread on the internet say the same thing. After adding my file to the solution explorer, I … | |
i have set background image on the body of my master page. i have link css file. in my css, i set the image like this and the result was repeated images on the master page body: [ICODE]body { background-image:url('/Styles/bg.jpg'); font-size: .80em; font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, … | |
Hi, i am doing a multiple-file project and i come across a difficult obstacles. I want your help, DaniWeb readers on this problem, which i find very strange: [CODE] #include "stdafx.h"//i have included vector header here #include "globals.h" #include "functions.h" using namespace std; #ifndef CPIECE #define CPIECE class CPiece { … | |
I am new to using swing. I am trying to get a picture to be displayed in a Jframe when a button is pressed. I cannot figure out how to make this work. This is what I have so far: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; import … | |
Hey ppl im a student and i just started studying robot framework using python.Can anyone pls help me out with the submissions. It is really important for me. I just cant get the whole thing how much ever i try.I have come up with the following code for fibonacci series(given … | |
I'm learning JavaScript, and want to know how I can run / test code on windows? I also want to download the library. Can anyone assist me? Thanks |
The End.