199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for joshilay

char s[]="the cocaine man"; int i=0; char ch; ch=s[++i]; printf("%c ",ch); ch=s[i++]; printf("%c ",ch); ch=i++[s]; printf("%c ",ch); ch=++i[s]; printf("%c ",ch); output = h h e ! i got the outputs like this ...can anyone please what are the reasons for these outputs !! is it compiler dependent ?? if yes …

Member Avatar for ~s.o.s~
0
143
Member Avatar for mikeandike22

ok so i built a simple playlist type thing where the user can click a link and then the player will play that song. Now i would like for the page to get info from an xml file and then display a short description. here is my php: [PHP]<?php //select …

Member Avatar for mikeandike22
0
159
Member Avatar for vicky_dev

Hi... I am trying to write a string class...this part is supposed to concatenate two strings, but I am having trouble with constructors/destructors.:rolleyes: Please explain the exact sequence of calls and the correct way to code.:?: [code] #include <iostream> #include <cstring> #include <conio.h> using namespace std; class STRING { char …

Member Avatar for WolfPack
0
405
Member Avatar for gani

hello frinnds, i am new to this forum.........afte seeing this i feel it is gonna helpme..... right now my problem is-> i am usin msql, here i am using a table in a database..inside this table i have field called [B]ID, i[/B] want autoincrement feature for this field......... i don …

Member Avatar for gani
0
142
Member Avatar for zippee

Many of you may aware that AOL using floating IP address to manage their internet connection. When I develop my shopping cart, I used IP address as one of the variables to identify user (other variables are datetime and url) and its shopping cart content. It was alright until someone …

Member Avatar for TopDogger
0
537
Member Avatar for nihao

Hello everyone: How to correct this javascript UNDER Mozilla Firefox?Or is there some fungible ways?I need your help,thx! => var divColl = document.all.tags("DIV");

Member Avatar for nihao
0
172
Member Avatar for vov4ik

I want to create a slideshow of images. Image files will be uploaded from harddisk to the browser and change each other at specified duration. How can i generate delay (after which the next image will be uploaded ) ? Thank you in advance

Member Avatar for Puckdropper
0
99
Member Avatar for tefflox

I don't know if I should post all the code to start, but if you need to see all the code just ask. Trying to post the relevant stuff: [code] void findHoliday (const DayData holidayList[],int listLength, int month,int day, char holidayCopy[]) .... holidayCopy = holidayList[i].holiday; [/code] now it's puzzling since …

Member Avatar for tefflox
0
319
Member Avatar for rapt0r

In a c++ tutorial this was one way to define a string [CODE] #include <string> using namespace std; string name; name="mark"; [/CODE] But it dosent work i get errors.Why is this?

Member Avatar for ~s.o.s~
0
196
Member Avatar for katharnakh

[code]mysql> insert into fund_history select * from temp_fund_history where data_date='2006-06-30' and index_num between 1 and 10; Query OK, 0 rows affected (0.03 sec) Records: 10 Duplicates: 10 Warnings: 0[/code] I am really wondering why this INSERT statement is not inserting 10 records. Its saying 10 Duplicates: 10, and there is …

Member Avatar for pty
0
126
Member Avatar for wingwarp
Member Avatar for SamY

How can one manipulate the vdu. Like to creae a class which can be used to create objects like windows depending on wdth like [COLOR=red]_o/s_window(120,20,0xddff,0);[/COLOR] [COLOR=#ff0000][/COLOR] 120-height 20-width hexadecimal-base color 0-border stylethe window will look like this with a color gradient and can run other programs.

Member Avatar for ~s.o.s~
0
134
Member Avatar for Simon268

Hi all. I can't get this to compile; [code] #include <iostream> #include <string> using namespace std; int main () { int number; string response; for (number=5; response!='Y';) { cout <<number <<endl; cout <<"Had Enough (Y/N)?"; cin>>response; } cin.get (); cin.get (); return 0; } [/code] when i try to compile …

Member Avatar for Simon268
0
185
Member Avatar for jimmypk

[code] # I have a problem in building class Tree (Binary Search) # function DelNode(self, Key) is not exactly # I Need Help, Please building class Tree (Binary Search) # Is there any different definition of class Tree from string import split class Node: def __init__(self): self.Key = None self.pLeft …

Member Avatar for G-Do
0
140
Member Avatar for cronos

Hello DaniWeb members, I've just joined up and I would like to have one of my problems solved. I'm still a begginer at JavaScript coding so my request may seem a be easy for you guys to answer so here it is: I have a JavaScript code and I want …

Member Avatar for jalarie
0
78
Member Avatar for Simon268

Hi all Any help would be much appreciated. Im following the about.com tutorial, and one of the exercises says i should make this program; [code] #include <iostream> #include <string> using namespace std; int main () { string name; int ID; cout<<"enter your name\n"; cin>> name; cout<<"enter your id\n"; cin>> ID; …

Member Avatar for Simon268
0
156
Member Avatar for wlinda

I've been having this php/mysql problem that I can't seem to be able to fix. I'm displaying information from a mysql database on my site, but for some of the variables only half of the cases can have information in tehre that needs to be displayed on the site (e.g. …

Member Avatar for wlinda
0
145
Member Avatar for balagod

Hai, I got xml parser to read xml file the output is like multi dimensional array ,i want to search particular id and get that matched id details from that array if the element have child to read child array also I give one example here <map> <page id="home" name="Home" …

0
101
Member Avatar for vov4ik

Hi, I have problem with uploading images by php script. I created a HTML form for user to input image file, and simple PHP script which accepts this file from form and prints it in the browser. My script uploads file, prints file's name, generates HTML code, but does not …

Member Avatar for vov4ik
0
147
Member Avatar for maheshsayani

Hi All I Want To Create Semi Transparent Forms I Had done work on Transparent forms but i need semi transparent form which we can see background text/image through this form in vb please send me the solution for this

Member Avatar for maheshsayani
0
123
Member Avatar for Mr.

Hello, while studying First Order Logic some of my results are a little different from the results in the book. Can you please tell me if they are equivalement or why mine does not work? Since we dont have the sybols, the following will be used: * Universal = A …

Member Avatar for gusano79
0
146
Member Avatar for wingwarp

I am a basic c++ programer :sad: that wants to understand graphics but all the online guides confuse me i understand BASIC c++ code like... :-| [code] #include <iostream> using namespace std; int main() { int forever; int HIGH = 15; int LOW = 1; int HIGH1 = 50; int …

Member Avatar for wingwarp
0
247
Member Avatar for dr_dumb99

Hi ! When I want to display following code by assigning it to $res["description"] , in the following mentioned way, it works fine and displays properly. The code is : /************START CODE*****************/ <script language=\"javascript\"> var uri = 'http://impgb.tradedoubler.com/imp/img/16173558/1014659?' + new String (Math.random()).substring (2, 11); document.write('<a href=\"http://clkuk.tradedoubler.com/click?p=37983&a=1014659&g=16173558&epi=$_SESSION[UID]\" target=\"_blank\"><img src=\"'+uri+'\" border=0></a>'); </script> …

Member Avatar for Mr Violent
0
155
Member Avatar for Iamnew2java

I am trying to calculate the miles per gallon per trip & also average miles per gallon overall. The per trip works fine but I can't get the average to work. It is just reading the per trip instead of averaging. Any suggestions? THANKS! import java.awt.*; import java.applet.*; import java.awt.event.*; …

Member Avatar for Iamnew2java
0
112
Member Avatar for INI

Good Morning All, I am having a major issue here; for some reason the line of code below works and sometimes does not work. When it desides not to work, it leaves a mess in my excel sheet. [code] Range("A1").Select ' This just goes to the upper left corner of …

Member Avatar for Comatose
0
190
Member Avatar for raywood5

I am building a site that has 3 main sections (Sec1, Sec2, Sec3) These 3 sections will be the main navigation going accross the top. On the home page will be a image approx 528 X 228. Each section will have a image relevant to the section. So when the …

Member Avatar for tgreer
0
153
Member Avatar for MattEvans

Hi there. I'm new to this forum, and new to Delphi, my programming experience goes from BASIC > Visual Basic, C++ (DirectX not MFC or GDI), and Java/Java3D. I did a little Pascal programming in college a few years ago, but what I remember isn't sufficient to help me much …

Member Avatar for MattEvans
0
116
Member Avatar for slacke

Hi I used an variable int i; in a faunction block as it is in a code below. [code] #includes.... int i; int function() { while(charbuff[i]!=' ') { ofstream stream("file.lng", ios::app) stream << charbuff[i]; i++; stream.close(); } return 0; } main() { ........... some code function(); /*call function */ cout …

Member Avatar for slacke
0
168
Member Avatar for jamshid

I start Python Programming Language in these days, when i was trying to understand them i come across to these problems so i will be so happy if you help me in : 1) [code] >>> # Integer division returns the floor: ... 7/3 2 >>> 7/-3 -3 [/code] I …

Member Avatar for jamshid
0
105
Member Avatar for abahmer

I'm not sure if this is a Server 2003 issue or an MSSQL issue, so pardon the cross-post. I have created a local user called "sql-daemon" to run MSSQL 2005. At the onset, everything works fine: I can reboot the server and all SQL processes start as expected. Then, one …

Member Avatar for abahmer
0
231
Member Avatar for mikefitz

Hi, Is there a way to set a mask on the standard ASP.NET TextBox Web control? For example, I need to mask the input and display of a telephone number "###-###-####". Thanks, Mike

Member Avatar for mikefitz
0
123
Member Avatar for ranaz

hi! i hav a code that was compiled using Microsoft VC++1.52. now i need to compile it on VC 6. but the compiler is generating the errors in statements containing use of FAR pointer. can any one guide me how to remove these errors or where can i find this …

Member Avatar for Ancient Dragon
0
164
Member Avatar for ChimpusDupus

Hi, I'm creating a page that has an ASP button that should delete a row of data from an SQL database. I want a javascript confirm window to appear to make sure the user [I]really [/I]wants to delete the information. I can set the button's OnClientClick property to "javascript:confirm('Are you …

Member Avatar for ChimpusDupus
0
180
Member Avatar for GavinC

Hi there. I have an Access database with 2 fields. Client Name and Date The Date is only entered with month and day and year i.e: Gavin | 2006/06/29 Mr X | 2007/07/15 Mr Y | 2006/06/30 and so on, some dates are the same for reasons of the following... …

Member Avatar for GavinC
0
128
Member Avatar for bogy

Hello guys, I'd like to ask about something: When I press ASP.Net Configuration (in the web site menu in VisualStudio 2005), this message appears: "Unable to connect to VisualStudio's localhost Server" and I've already installed IIS. So any one can answer me? Thanks... bogy.

Member Avatar for bogy
0
148
Member Avatar for Kian99

Hi, I’m a new comer at this forum. I got a printing problem with crystal report; I can’t directly print the document/ report from the crystal report printing function. I build this web base reporting program with asp.net 2.0 using CrystalReportViewer control. As the report designer I use Crystal Report …

Member Avatar for nileshagni
0
179
Member Avatar for jazzz

Can anyone tell wat does this do?? - [CODE]_FOpen(Time_File,"r",fp_time); _Fread(&st_Time,sizeof(TimeHead),1,fp_time,TimeFile);[/CODE] Thankx jazz

Member Avatar for WolfPack
0
235
Member Avatar for schmidty169

This is what I have to do [COLOR=black][COLOR=black][COLOR=black]We will initialize the tree by hard coding the values illustrated below. You will need to write, test and execute a driver program that will use the complete binary tree implementation. [/COLOR][/COLOR][/COLOR] [COLOR=black][COLOR=black][COLOR=black]// this will initialize the tree node values treenodes[0]=5; treenodes[1]=10; treenodes[2]=2; …

Member Avatar for schmidty169
0
553
Member Avatar for waiting

i'm new in C#. I wish to learn this programming language. May i know what software for writting C# language? Do C# same with VB.net? Thx.

Member Avatar for alc6379
0
100
Member Avatar for tefflox

I'm trying to return a struct array from two functions. I don't know what to say. Here is my code: [code] #include <iostream> #include <iomanip> using namespace std; struct worker { int idNumber; int hoursWorked; double hourlyRate; double earned; }; [B]???[/B] input(); [B]???[/B] calculateEarned(worker []); void outputWorkers(worker []); int overtimeWorkers(worker …

Member Avatar for tefflox
0
130
Member Avatar for nammi_aqua

Write a program that reads an unspecified number of integers. Keep track of how many positive and how many negative numbers are entered. The input terminates when the user enters 0. Display the count and the average of the positive numbers and the count and the average of the negative …

Member Avatar for jwenting
0
116
Member Avatar for tefflox

Please take a look at my function call. I don't know if I'm handling the return values right. It works for an employee with less than or equal to 40 hours worked, but the over time is paying 2.5 times instead of 1.5 times. Should I be using some kind …

Member Avatar for tefflox
0
178
Member Avatar for geek

Hello all, I've been programming in c++ for about 2 years now, but all my c++ applications are console driven. I would like to start using GUI's but in c++ it takes a lot of effort to build a GUI application (using API's), now my question; what programming language do …

Member Avatar for Eddy Dean
0
134
Member Avatar for jamshid

Hi Everyone here ; I am starting C and wanna you start C lessons here , so we (we new starters) can learn good and can discuss about some important points here.. It will so Nice and i hope our friends whom they know better this language start lessons here.

Member Avatar for ~s.o.s~
0
254
Member Avatar for ramiljoaquin

[B] Hi, i have a problem in configuring my IIS, i get this error message when i try to browse the virtual directory i configure, please help! :-| [/B][B][COLOR=#FF3300]Server Application Unavailable [/COLOR][/B] The web application you are attempting to access on this web server is currently unavailable. Please hit the …

Member Avatar for hollystyles
0
105
Member Avatar for ChimpusDupus

Hi, I have a GridView that displays data from a MS SQL database (duh!). I know the GridView allows you to have a command column with such functions as Edit, Update, Delete, etc., which I wish to use. The problem is that I only want these functions to be available …

Member Avatar for ChimpusDupus
0
91
Member Avatar for thare

I have to input data in a ASP form like microsoft excel with many rows and columns. How should I do to make this form ? :sad: Thanks !

Member Avatar for thare
0
140
Member Avatar for khwo

[COLOR=#000000]Hi all, I am using the following code for my searching function, but when I try to run it, it are allow me to search the item for column 1, but I want to search the item for column 2 as well columun 3, what mistake I have make, can …

Member Avatar for server_crash
0
136
Member Avatar for newMeg

Hi, I am not sure if my question sounds silly. I have a [B][I]table[/I][/B] that has a few columns like [B]date[/B],[B]source[/B],[B]race[/B] and [B]state[/B]. I need to generate a report. The table stores the details of callers including name,age,sex. But the report need to display in this format counting the number …

Member Avatar for hollystyles
0
198
Member Avatar for asmith3006

Hi, Is it possible for a text box to always get its contents (text) from a particular variable? In C terms I guess I'd say "can I have the contents of a text box point to a pointer?" or something like that. Basically, I want the text box to always …

Member Avatar for Lord Soth
0
97

The End.