64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for echoestroy

I need a do while loop in this but when i try to put one in it errors alot could someone show me the proper placement please. i use dev C++ compiler [code] //Login #include <iostream> #include <string> #include <conio.h> using namespace std; int main() { cout << "\tWelcome to …

Member Avatar for echoestroy
0
104
Member Avatar for rysin

Hey guys. Ive got a problem with a simple hello world script. Im a perl beginner so bear with me. Im running mandriva linux if it matters. Also this file is saved under /home/rysin/documents. Code [CODE]#!/usr/bin/perl print "Hello World\n";[/CODE] When I go into the command line and use the perl …

Member Avatar for Uninverted
0
101
Member Avatar for Run.[it]

..for manipulation in the main part of the program. Basically Im trying to create a Class function that asks the user to enter in 3 different teams and their nationalities and then redisplay them when the main calls that function. [code=c++] struct squadre { string teamn; string nat; } clube …

Member Avatar for Run.[it]
0
130
Member Avatar for NinjaLink

Hey guys, I'm here once again! I need help for something that is simple, but I'm not getting the results I should be getting! I want my output to look like this: [B]Enter hours worked: 44 Enter pay rates: 10 Hours worked: 44 Pay Rate: 10 This week's salary: 460 …

Member Avatar for CoolGamer48
0
133
Member Avatar for camdes

I am trying to create a photo gallery and there are various reasons why I need to create it from scratch. Below is the code for my upload file and I have been building it gradually. I have now added the resize function. I had placed this function in a …

Member Avatar for bad_dreams99
0
109
Member Avatar for swapna7999
Member Avatar for LightSystem

Hi there, Im new to this site, and I just have a question of something that I have been trying lately in the C language. I need to put a whole array in a shared memory file (using POSIX). I have no problems putting simple int* in shared memory. I …

Member Avatar for LightSystem
0
134
Member Avatar for wrichardson530

I need some type of code that does a check, to make sure the the inofmration eneted is text and no numberic data is ented. This is for a name field. I know of the isnumeric check, but is there other ways doing checks similar to that. I'm doing error …

Member Avatar for Jx_Man
0
102
Member Avatar for rrocket

I have a count set up in a SQL view set to '*' with the alias set to 'Cn'. I can get the column name with: [code=vb] grd.columns("columnName") [/code] But it does not work when I use the alias... How can I pull use alias instead of the actual column …

Member Avatar for rrocket
0
84
Member Avatar for swapna7999
Member Avatar for queenc

hi i have a application where i have a text box when the user enters data in the text box i want the data to be inserted in the db and the value displayed in the same page.something like daniweb post quick reply.i know i have to use ajax but …

Member Avatar for queenc
0
261
Member Avatar for swapna7999
Member Avatar for swapna7999
0
53
Member Avatar for alihassan

hello can any one tell me how print a specific in windows notepad using userdefined keyboard. like windows xp keyboard it operate like a original keyboard

0
56
Member Avatar for NancyNancyNancy

I'm looking for a piece of code I used years ago to reveal a link at a later date. All I had to do was wrap the link in this piece of code and - presto - it revealed on the date and time that I wanted it to reveal. …

Member Avatar for NancyNancyNancy
0
305
Member Avatar for K504K

[B]Background:[/B] Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered …

Member Avatar for K504K
0
194
Member Avatar for aminit
Member Avatar for Jx_Man
0
110
Member Avatar for mrgreen108

After looking at the same few lines for an hour now, I cannot figure out why the user named input file isn't opening and the user named output file isn't even being created. I used the debugger in visual studio 05 to figure out the input file isn't being opened …

Member Avatar for mrgreen108
0
294
Member Avatar for marti3a3

I'm trying to write a program that prompts a user for a radius value, then uses class data to return info of a sphere based on that radius. I believe my problem lies in declaring what information goes into what class member, but I'm not entirely sure. How do I …

Member Avatar for Ancient Dragon
0
95
Member Avatar for billabong2388

Hi guys, Quick question. Im having some problems with advanced sorting. Say i have the following list: [number] + [text] 3 text_red 7 text_yellow 9 text_blue 1 text_pink 3 text_black 6 text_orange 7 text_white Firstly the list needs to be ordered via the number at the front of the list …

Member Avatar for vegaseat
0
155
Member Avatar for Scottmandoo

Ok below is my display script, though I have no idea how to make an edit script so could someone either make one for me or if thats too much to ask atleast help me make one. [CODE=php]<? $username=""; $password=""; $database=""; $con = mysql_connect('localhost',$username,$password) or die('Error: ' . mysql_error()); mysql_select_db($database) …

Member Avatar for Scottmandoo
0
125
Member Avatar for Seamus McCarthy

[code= c++] #include <iostream> using namespace std; int main() { char A,B,C,D; const char capacity = 120; char letter[capacity]; int pax = 0; int y =6; for (int i = 0; i < capacity; i++) { if ( y == 6) { char letter[] = {A}; pax++; break; } else …

Member Avatar for Seamus McCarthy
0
106
Member Avatar for clueless101

The following code coincides with an onClick event on my form to move to the next record in a file, but I keep getting the Error Code: 424, object required. I have (3) other buttons on my form: MoveFirst, MoveLast and MovePrevious, but they all work fine. What is different …

Member Avatar for clueless101
0
289
Member Avatar for CoolGamer48

Hey, I keep getting this error: error LNK2019: unresolved external symbol "public: struct IDirect3DDevice9 * __thiscall Engine::GetDevice(void)" when I try to compile my project. MSDN says that IDirect3DDevice9 uses d3d9.lib, but it still won't work even with that lib in additional dependencies. (using VC++ 2008) I tried linking to a …

Member Avatar for CoolGamer48
0
126
Member Avatar for TuX4020

Hi all, this is my first post here and it comes out of frustration more than anything. I've been searching high and low for any insight into my problem and still can't seem to get it right. In the interest of full disclosure, this is a part of a homework …

Member Avatar for TuX4020
0
3K
Member Avatar for paolomontero

Hi Im having a problem with the following piece of code: #include <iostream> using namespace std; #define something 33; void main() { if (33 == something) { cout << "equals" << endl; } } Im using Visual C++ 2008 (not Express) and I get 2 errors and 1 warning when …

Member Avatar for Salem
0
86
Member Avatar for komany

Hello. I need help with a thing. I have a file (sound file) I will send via controller area network and therefore can only send data about 8 byte or 8 vector as data [8]. This is sent away with the command sendfile () And I need help how I …

Member Avatar for komany
0
334
Member Avatar for Traicey

Assembly is one of the least langauges that I havent done, Have heard about it and its complications, but I neva get to know what do u use it for or in which areas does the language alone excel for example C++ is more suitable for games.... know what I …

Member Avatar for Traicey
0
78
Member Avatar for queenc

hi i have two tables,i want to display the details in startpost and based on the userid i want to display the username ie i want to print posttitle,date,name using single query please help [CODE] CREATE TABLE `creuser` ( `uid` int(11) NOT NULL auto_increment, `username` varchar(100) NOT NULL, UNIQUE KEY …

Member Avatar for queenc
0
113
Member Avatar for swapna7999
Member Avatar for swapna7999

i need to generate an id card for that i need to display the details such as name etc which must be accessed from a mysql database and now i know how to connect to mysql database and use select statement but dont know how to display the data accessed …

Member Avatar for swapna7999
0
467
Member Avatar for yassar

Hi, I am working on a database related project for a course. I have decided to use mysql as a database but I cannot decide which web programming language to use. I am trying to decide between asp.net and php, because these are the only two web programming languages i …

Member Avatar for Fungus1487
0
145
Member Avatar for swapna7999
Member Avatar for Raptoricus

hi all, this is the same game (if you can call it that yet) that I asked for help with last time (but I sorted it out myself) this time the problem is getting hp off of a monster/character in the combat header Ive already got a damage function that …

Member Avatar for Raptoricus
0
136
Member Avatar for Reiko

Hi, i am currently writing a code for a login screen. However I am getting a "run time error 424" object required. I have had very little experince using databases for programming. Any help on how to correct the issue would be greatly appreciated. I am using visual basic 6 …

Member Avatar for VidVB6
-1
230
Member Avatar for jimesten

I've been away from sql for quite a well and need a little push to get restarted. Need to report out of a single table, with values coming out of only two columns. Need to group items from column 1 as the left column in the ouput table with totals …

Member Avatar for jimesten
0
101
Member Avatar for Phan

Hey, everyone, I am another student seeking help for a programming class. What I am having trouble with specifically is reading from a file. The program itself involves entering in some store products with information such as: product name, product ID, etc. After everything is entered, the program is supposed …

Member Avatar for vmanes
0
109
Member Avatar for lostandfound

Having braved the task that is getting mySQL6.0 installed onto my machine, after listening to the preferences voiced by database users everywhere I was delighted when I finally got down to a bit of a play!!! The problem I found almost immediately, was that a lot of the returned results …

Member Avatar for peter_budo
0
85
Member Avatar for swapna7999

im getting an error while using Text1.SetFocus the error is invalid procedure call or argument i used this in the form load and i suppose it is used to bring the cursor in the textbox during form load

Member Avatar for boomba23
0
813
Member Avatar for assgar

Hi I have 7 arrays for all containing the same data:time_id, start_time, end_time and colour. Each array represent a day of the week. There are a total of seven columns to display. I have combined them into a three multi dimentional to display data form the 7 layers which are …

Member Avatar for assgar
0
115
Member Avatar for emilio

can i generate an exe file from my c# project so it can run on a pc without .net framework ? i tryed to use the exe file in the bin folder, it's not working even on my pc

Member Avatar for emilio
0
90
Member Avatar for anerchy

i just wanted to make a program which reads 5 numbers then writes this 5 number. that's it but i couldn't. something's wrong and i couldnt find what is it. #include <stdio.h> void fun1(void) { int a=0,b=5,c=0; int d[5]; for(a=0;a<b;a++) { printf("%d\n",d[a]); } } int main() { printf("enter 5 numbers"); …

Member Avatar for anerchy
0
105
Member Avatar for lordx78

[code=javascript] var cBrand = document.getElementById('cBrand'); var cType = document.getElementById('cType'); var cStyle = document.getElementById('cStyle'); var cFrame = document.getElementById('cFrame'); var cGroupSet = document.getElementById('cGroupSet'); if (empty(cBrand) && empty(cType) && empty(cStyle) && empty(cFrame) && empty(cGroupSet)) { alert("Please Choose atleast 2 Criteria"); return false; }else{ return true; } [/code] The above code is not working …

Member Avatar for lordx78
0
109
Member Avatar for Beagle

Hi folks, I'm just learning C++ (using Borland C++ Builder) and I am having difficulty reading data from a text file created in Excel. I am trying to read the data into vectors which I can then use in a model that I am building. The problem is that I …

Member Avatar for Beagle
0
118
Member Avatar for kartouss

Hello, I have a function which calculates time for a specific operation and prints the time... However i want to call the time in another function and display its value... The code is as follows:- [code=c++]int encrypt() { double encryptTime,Add,sub,sft,mix; // add + sub + sft + mix calculations encryptTime …

Member Avatar for kartouss
0
238
Member Avatar for shadiadiph

hi i have a table i can write to it ok but i need to know the correct syntax to retrieve the last updated record i have been using something like this but it doesn't work.?? $sql = "select * from tblexdetails where intexchangeID='$tid'"; can anyone ive me any pointers …

Member Avatar for ultra vires
0
3K
Member Avatar for osirus0830

Hello all, I am currently attempting to learn how to program and I am unable to take a class because of my work schedule. I was just wondering if anyone could recommend any books that will help just with learning the basics of programming and not necessarily any one particular …

Member Avatar for tranni
0
91
Member Avatar for Roebuc

Just a quick question, I am working with classes and I was trying to rename one as an array, ie: [code] addressType addresses[n];[/code] But I have decided not to make it an array. So is this a legal statement? [code] addressType addresses;[/code] Or does that only work for arrays? Thanks

Member Avatar for Roebuc
0
99
Member Avatar for NinjaLink

My goal is to write a problem that will read in a length in feet and inches and output the equivalent length in meters and centimeters. As noted, There are 0.3048 meters in a foot, 100 centimeters in a meter, and 12 inches in a foot. I am only having …

Member Avatar for NinjaLink
0
137
Member Avatar for VernonDozier

Hi all, I am trying to install MySQL++ on Windows XP and use it. I was able to install it in Linux because the website: [url]http://tangentsoft.net/mysql++/[/url] provided an RPM that built the libraries for you. As far as I can tell, no such thing is supplied for Windows. Supposedly, MySQL++ …

Member Avatar for VernonDozier
0
301
Member Avatar for VernonDozier

Hi, I am working on a project wherein one program writes to a file, but allows a different program to read from that file BEFORE the first program is finished writing to it. In this project, the first program is a game. When someone scores in the game, that activity …

Member Avatar for VernonDozier
0
214

The End.