199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vincenzorm117

Before you read, I am using Mac's Xcode. In this program I am attempting to print the maximum and minimum values of standard C variables with every variation of modifiers. The unsigned int uses 4 bytes therefore it must have a maximum value of 4294967296 but it only display 2147483647 …

Member Avatar for vincenzorm117
0
621
Member Avatar for mrnutty

Time to time I see some common mistakes or even make some my self. I figure I would post some of these, with hopes that people will learn from my and others mistakes. [B]1) Why you no work?[/B] [code] int sum = 0; for(int i = 1; i < MAX; …

Member Avatar for Moschops
0
144
Member Avatar for jmark13

Hello again, So, I'm trying to work out a problem where there are 6 symbols in a string (A, B, 0, 1, [, ]). The brackets always have to face each other in the string but they can be nested. There are some rules, most of which I have down, …

Member Avatar for TrustyTony
0
139
Member Avatar for asrockw7

I wanted to know what integer/ASCII code the arrow keys were so I can get some programming exercise going. My test somehow evolved into this: [code] int x = getch(); printf("%c\n", x); x = getch(); printf("%c\n", x); x = getch(); printf("%c\n", x); x = getch(); printf("%c\n", x); x = getch(); …

Member Avatar for vegaseat
0
7K
Member Avatar for Petan Kl

Hello, I am wondering if there is an efficient way (other than for cycle) of solving following task: I need to multiply e.g. two matrices and at every point in the matrix there is an array. The two matrices shall be multiplied using matrix multiplication and when the elements of …

Member Avatar for Gribouillis
0
214
Member Avatar for senergy

Hi, I wanna ask you if there is SIMPLE way to check if file called XXX is in path YYY? I have this Code: [CODE]int GetLocation() { GetName(); string location; location += "C:\\Users\\" + name + "\\Documents\\test.txt"; if(location) return 1; else return 0; } int main() { if(GetLocation() == 1) …

Member Avatar for senergy
0
1K
Member Avatar for airerdem

Hi everyone, I have a directory that have 100s of txt files. (Folder is Data_Sets_30) I want to open txt files one by one and get values and close the file and open next txt file get values and close the file and continue like that. I started to code …

Member Avatar for raptr_dflo
0
257
Member Avatar for otherdummy

Hello, everybody I am working on a simple client-server program. The server side is a console program which will send (1)the list of files in home directory and (2)the contents of the selected file to the client side. And the client side is a GUI program which sends requests to …

Member Avatar for BestJewSinceJC
0
957
Member Avatar for ceyesuma

I was reading some code that encouraged the use of vectors but my IDE is saying that it is an obsolete Collection. I need to use Vector because it can does not need to be a set size. and I would like to have a Vector of Vectors. Is there …

Member Avatar for ceyesuma
0
922
Member Avatar for hinaraees

I have a project in java named java.war. where war means web archive files. i dont know where to place this project in tomcat directory or netbean IDE. can any one tell me?

Member Avatar for BestJewSinceJC
0
143
Member Avatar for bob on whidbey

The web site is on online library where the user finds a book and sends an email to the owner of the book. My PHP creates a table of results based upon a query. One of the cells in the table includes an email link to the owner of the …

Member Avatar for diafol
0
684
Member Avatar for ryamjones

trying to figure out how to work out cin.ignore(100,'\n'); [code] cin>>idnum; while(!cin.eof()) { cin>>code; if(code == 'm' || code == 'M') { } if(code == 'h' || code == 'H') { cin>>hours; if(hours<=forty) { } if (hours > forty) { } } if (code == 'C' || code=='c') { } …

Member Avatar for raptr_dflo
0
156
Member Avatar for FALL3N

ok, I'm sure the answer to this is very simple.. there may even be some component in the os package to do this... I want to do what the code underneath seems like it would do.. I understand it does not, and when I try to run the code, I …

Member Avatar for FALL3N
0
279
Member Avatar for Soulstorm

So we were offered a job yesterday, which involved developing a mobile app targeting multiple platforms. They need the code to be as cross-platform as possible, so I think that C++ is the way to go as far as the infrastructure is concerned, and then we write wrappers in other …

Member Avatar for mike_2000_17
0
154
Member Avatar for newbie14

Dear All, I would like to send email using java application. So I found this article [url]http://www.javabeat.net/tips/33-sending-mail-from-java.html[/url]. The problem now my environment is linux with jdk1.6 I do know how to setup the Java Mail Api. Any guide please? Thank you.

Member Avatar for newbie14
0
557
Member Avatar for iau

i got the problem of accessing variable outside iframe. [CODE] //a.php <?php $a="text"; ?> <iframe src="b.php"></iframe> //b.php <input type="text" value="<?php //i want $a to be put here ?>" /> [/CODE] Is it possible to access $a from b.php?

Member Avatar for ko ko
0
168
Member Avatar for peterpa

well this one is the my first post in the daniweb , and i belive that i will get solved my problem . well i trying to create a MLM project in which i m trying to creating binary tree by using this code which i have attached in this …

Member Avatar for peterpa
0
247
Member Avatar for MDanz

I get random Parse error: syntax error, unexpected $end in my code. All i have to do is refresh the page and the error goes away, all is working. When it appears the line is always different and when i examine the line nothing is wrong with the code. This …

Member Avatar for almostbob
0
204
Member Avatar for TrustyTony

The code demonstrates running program limitted time by following going over endtime expressed in seconds since midnight, so might fail for playing just midnight (add check that endtime is less than 24*60*60 if you want to be sure). Exciting action :) of the program is that it shows remaining time …

0
447
Member Avatar for Mr.UNOwen

Hello, I'm working on a project using the arduino board that connects to my computer via USB. Anyway, I opened the "file" (FYI using linux) for the board using the fopen call and I'm wonder if there's a way to check if there's data ready to read in. Also I …

Member Avatar for rubberman
0
134
Member Avatar for MasterBerd

Hey guys I'm looking for java contests for high school students that I could be involved in during this summer. Do you happen to know some? If so, please post a link. Thank you.

Member Avatar for harinath_2007
0
155
Member Avatar for ssdeep

if i have information like this a->b->c->d->MESSAGE,how do i tokenize it such that i get a,b->c->d->MESSAGE from the original string???????????

Member Avatar for stultuske
0
151
Member Avatar for gunnerone

Hello, I am trying to write a C# program that will calculate the minimum number of coins need from X amount of pence entered by the user in the form of £2, £1 etc. I have come up with this so far (Think its right), but how would i print …

Member Avatar for psychomiko
0
165
Member Avatar for phoenx

[CODE] <html> <HEAD> <style type="text/css"> body { background-color: black; color: black } a { font-weight: bold } a:link { background-color: black; color: blue } a:visited { background-color: black; color: blue } a:active { background-color: black; color: blue } a:hover { background-color: white; color: maroon} input { font-family: monospace; font-size: 24px; …

0
69
Member Avatar for phoenx

[CODE] <HTML> <HEAD> <TITLE>Number Blocks</TITLE> <!-------------------- Design --------------------> <STYLE> .bigcell { BORDER-RIGHT: #6699ff 5px solid; BORDER-TOP: #6699ff 5px solid; BORDER-LEFT: #6699ff 5px solid; BORDER-BOTTOM: #6699ff 5px solid; BACKGROUND-COLOR: #6699ff; TEXT-ALIGN: center } .cell { BORDER-RIGHT: #6699ff 2px solid; BORDER-TOP: #6699ff 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BORDER-LEFT: #6699ff 2px solid; …

0
79
Member Avatar for Eekhoorn

I'have this litle piece of code which worked nice under windows XP and Windows Vista but won't do a thing under Windows7. I use it to store link adresses to apllications I wish to hoock up to. Basicly I first select a apllication with a "Open File Dialog" and then …

Member Avatar for adam_k
0
252
Member Avatar for FALL3N

hello all, I have a program, and in it, it eventually specifies 'aFolder' to be os.walk(path/to/folder) how do I obtain inifo such as the name or the path of the folder, is it then the temporary current working directory?

Member Avatar for snippsat
0
114
Member Avatar for sharma89bunty

sir i have a problem in the c program. [CODE]switch(ch) { case 1: t=a+b;break; case 2: t=a-b;break; case 3: t=a*b;break; case 4: t=a/b;break; default:printf("invalid no:"); }[/CODE] when i execute the program and the any choice the comipler skip to the default statement. is it any problem in the syntax. sir …

Member Avatar for venkata suresh
0
204
Member Avatar for ronnieaka

i'm gonna be building a website,for my summer training,but then later commercialize to earn a few bucks Main thing is, i want to make it as attractive GUI wise as possible with probably PHP only, and ajax and flash are allowed to get as many marks as possible and it …

Member Avatar for dhruv_arora
0
115
Member Avatar for dhruv_arora

Hey, I started learning PHP programming. I wrote this script to update a user's password from the mySQL database, but it's isn't doing so The script is :- [CODE]<?php include("header.html"); include("nav.html"); include("sidebars.html"); ?> <div id="content"> <?php $errors=array(); if(empty($_POST['uname'])) { $errors[]="You forgot to enter your username"; } else { $uname=$_POST['uname']; } …

Member Avatar for dhruv_arora
0
138
Member Avatar for nered

Well the title really says it all. I am using Netbeans IDE for most of my work when working whit JComponents archive but i know how to make a java frame and add things to it without using Netbeans. Anyways. I decided to write a small program for a community …

Member Avatar for JamesCherrill
0
107
Member Avatar for winkler

Hi Some background: I'm trying to create a Server/Client Sync scenario for my application using Sync Services for ADO.NET specifically the LocalCache custom tool which sets the whole thing up for me. My server DB has 5 Tables, all of which are being synchronized to the client application, which now …

Member Avatar for winkler
0
158
Member Avatar for lsvife

I am new to J2ME Programming so i am stuck with the keylisteners.. I am writing a simple J2ME app in which there are 2 textfields. As soon as the user types a char in first textfield the result must be displayed in second. I want to handle the events …

Member Avatar for Hakoo
0
141
Member Avatar for desert564

the following code is to print the nearest twin primes to a number.for eg if the input is 20...the output should be 17 and 19 logic to my code is that it checks for twin primes within the range of a given number and then adds the twin primes.....the twin …

Member Avatar for harinath_2007
0
1K
Member Avatar for cwarn23

Hi, I'm trying to add a condition to my htaccess file but it seems to only match if I use [ICODE]%{REQUEST_URI} !^/?.+$[/ICODE]. If however I add [ICODE]%{REQUEST_URI} !^/?B.+$[/ICODE] it will never match. Also the full code showing what I am trying to achieve is as follows: [CODE][B]RewriteEngine On[/B] [B]RewriteRule[/B] ^$ …

Member Avatar for kingkong111411
0
217
Member Avatar for M.Jama

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using Business; Guys, I want to populate the DataGridview with a dataset I have created but I am having problem and I would be thankful if …

Member Avatar for M.Jama
0
214
Member Avatar for dnanetwork

Hi there all. i have made an application which sends an email to client. our mail server is in india. so while sending an email it shows indian date in email. is there any way i can do some code that will convert the indian date to US datetime automatically.

Member Avatar for dnanetwork
0
152
Member Avatar for manavsm

i want to change the default value of dropdown list to 0 i.e selected index value shud become 0 when press the cancel button so that watever i selected previously is removed i want it in javascipt only...i have done it in c#...since there s no forum for javascript i …

Member Avatar for dnanetwork
0
194
Member Avatar for bunbo900

Hello, I need to maintain this asp.net web application. I have 1 month of experience in asp.net C#. This portion of the web application using technology LINQ to SQL and Ajax. This seems to be a simple change, but could not get it to work so far. I need to …

Member Avatar for dnanetwork
0
171
Member Avatar for vishalrane

I have one web page on masterPage i have 2 links which redirects user to another page... For example: Link 1:Customer Detail-this page contain some textbox to save data into the database such as customer id, customer name, customer address,customer contact.. Link 2:Employee Details-this page contain some textbox to save …

Member Avatar for dnanetwork
0
191
Member Avatar for shailaja mohite

Hi, I am create one web application in which i have to create dyanamically panel and table,tr,td,labels and textboxes. but when i split the string and create tr but more tr created i want 4 tds in 1 tr but they create 4 tr dynamically.. how to solve this problem..[CODE] …

Member Avatar for dnanetwork
0
360
Member Avatar for fusioninfosys

hi all, I am new in asp.net and my company had a project and all of this project devolopers leave from here , no one know about the project. I need to update it. Actually all are configured locally in my windowsXP system. database ,iis,project file all are here. while …

Member Avatar for dnanetwork
0
914
Member Avatar for vishalrane

I am having one gridview on my web application.... It all working fine but not getting the result i want... I have also used Edit and Delete Link as shoun in image 1.... When i click Edit button, then it can be edited... but when i click update the data …

Member Avatar for dnanetwork
0
114
Member Avatar for foxwizzy

I want to update my users last log in in the database : [CODE]<input name="login" type="submit" id="login" onclick="<?php mysql_select_db($database_web, $web) or die("Error : " . mysql_error()); mysql_query("UPDATE users SET timp='NOW()' WHERE username='$user'")or die("Error : " . mysql_error());?>" value="LogIn" />[/CODE] this is my code but it doesent update the table :| …

Member Avatar for cereal
0
290
Member Avatar for Tellalca

Hey; I am learning some javascript. I tried to write a trivial code to validate email but my code does not seem to work it should. It should turn the background color of text box green when mail contains both '@' and '.' characters and red otherwise. However what the …

Member Avatar for Airshow
0
107
Member Avatar for haimz

Hello evryone i need aregex code that replacing url: [url]http://domain.com[/url] [B]at [/B] link: <a href="http://domain.com" rel="nofollow">http://domain.com</a> replace the url until space

Member Avatar for diafol
0
359
Member Avatar for scrivomcdivo

Hey folks. Just a quick message to see if fellow coders have any recommendations for software you may use when planning programs / projects? I currently use MS OneNote but I'm just wondering what others use? Thanks

Member Avatar for CsharpChico
0
115
Member Avatar for CsharpChico
Member Avatar for Vinod Supnekar

Hey hi , i want to read input frm user fm command prompt(Cmd)!!And aslo print it on Cmd. Now if i use [CODE] #include <stdio.h> main() { int c; while ((c=getchar()!=EOF)//get the sinle char putchar(c);//prnt it on cmd } [/CODE] But i dnt knw how to enter EOF as i …

Member Avatar for Ancient Dragon
0
446
Member Avatar for ElliottDuke

Hello all, I am building an online Logbook service and have come to a dead end with my script. I am trying to make it so that when members are logged in, they can add records to a database (which I have done), then it automatically assigns that members id …

Member Avatar for ElliottDuke
0
114

The End.