199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for megan-smith

what is a newline character and what does it do? for example, what does " variable != '\n' " mean? And is there any other way to write" if (variable != '0' && variable != '1' && variabel != '\n') "? I've tried " if (variable < '0' && variable …

Member Avatar for megan-smith
0
136
Member Avatar for manjusaharan

Hi, I need help in copying and pasting text in notepad application using c#. I tried so by using sendKeys.sendWait() function but not able to do it. i used setForeGround("notepad"); sendKeys.sendWait("^A"); sendKeys.sendWait("^C"); sendKeys.sendWait("^V"); but it is showing error that Changes are not allowed while code is executing on the execution …

Member Avatar for manjusaharan
0
98
Member Avatar for Duki

I'm trying to get totCust and totRev which are declard in videoBonanzaForm to show up in the summaryForm.textboxes I have them declared as friends; i've even tried assigning `me.textbox.text = "1"` and nothing shows up still when I click the Summary button (in videoBonanzaForm). I open the summary form with …

Member Avatar for Duki
0
199
Member Avatar for gator6688

I need to be able to pass the data I enter into my check. I do not think I have my check set up right though. I will post my code. [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; string todaysDate; string firstName; string lastName; double amount; void enterData(); …

Member Avatar for gator6688
0
120
Member Avatar for pacman326@gmail

Hi guys, I am suppose to write a program that accepts an account number, d or c standing for debit or credit, and a floating number representing the amount of the transaction, and then does 5 things. 1)Display the sum-total amount of all transactions for a particular account. 2)Display the …

Member Avatar for Ancient Dragon
0
103
Member Avatar for ThePhenom

I am hoping someone can help guide me in the right direction. I have a project for class that I am working on and I could use some help. The project guidelines are below as well as my code thus far. I have gotten this far with it but am …

Member Avatar for ThePhenom
0
136
Member Avatar for donuttier

Hello! Please help me!!! I have been trying to make a program that show details written on a csv file. Somehow I have managed to do so, by using a code for opening *txt files. However, I would also need to add details to the same csv file, and delete …

Member Avatar for donuttier
0
2K
Member Avatar for theraven1982

Hello, i'm still trying to learn C, and I have a new question ;). I want to declare a struct, and use a function to manipulate the entries. If I change the values within a function it's ok; however, when i access the members outside the function, they're not defined …

Member Avatar for theraven1982
0
21K
Member Avatar for Icetigris

This compiles, runs fine, and generally works, except for one thing. The contains() method doesn't work properly. For some reason table.contains(key) isn't returning the right value, which is thereby messing up the insert() method. [code=java] public class HashtableDictionary implements StringDictionaryAlgorithm { static final boolean debug = false; Hashtable table = …

0
61
Member Avatar for dcleaner

i've been playing around with python for some time now, and i decided to take vegaseat's advice to make a project of mine own. the project consist of transforming an access database to xml, and then from xml generate some html files. i exported one table, made some basic modifications …

Member Avatar for dcleaner
0
284
Member Avatar for daniweb2013

Hi guys, i have one question, when i type using namespace std; at top of my program my compiler gives some error especially syntax error! my compiler is Borland C++ v.5 for example simple code: [code=c++] #include <stdio.h> #include <conio.h> #include <iostream.h> using namespace std; void main() { clrscr(); getch(); …

Member Avatar for n.aggel
0
2K
Member Avatar for horntastic

I am using Turbo C++ for Windows, version 3.1 at home. At school, we are using a similar version (maybe 3.0 or 3.1), but with a more blocky display. (with block cursor and stuff. my one at home looks more... modern) [EDIT] The school version is Turbo C++ 3.0, possible …

Member Avatar for horntastic
0
153
Member Avatar for veronicak5678

I am in a beginning programming class, and am having all these syntax errors that i can't fiugre out. Please help! [code] /#include <cstdio> //Header Files #include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main(); int init_function(); enum choice {regular=1, super, superdooper,quit}; choice display_function(); int big_switch(); int calculate(int …

Member Avatar for Dave Sinkula
0
126
Member Avatar for ptaylor965

I have been using the asp:Menu control for a while now but have only just started to use images with it. When i click and navigate around the site it works fine but the problem is that when i click the link for the same page that i am viewing …

Member Avatar for ptaylor965
0
144
Member Avatar for wicked357

I need to read the 5 words from a input file mine is called words.txt I am unable to get to work correctly everytime I put inFile >> words[5]; instead of cin >> words[5]; I get a debug error and prog shuts down and nothing is showing up for errors …

Member Avatar for iamthwee
0
124
Member Avatar for fatihpiristine

[code] <?php $smtp_server = "mail.webhostasp.com"; $port = 25; $mydomain = "domain.com"; $username = "info@domain.com"; $password = "password"; $sender = "info@domain.com"; $recipient = "no-one@domain.com"; $subject = "Test"; $content = "Bla bla bla"; // SMTP connection $handle = fsockopen($smtp_server, $port); fputs($handle, "EHLO " . $mydomain . "\r\n"); // SMTP authorization fputs($handle, "AUTH …

Member Avatar for fatihpiristine
0
104
Member Avatar for abhishekgahoi

#include <stdio.h> int main() { int i=5; printf("%d %d %d %d %d", --i,i--,++i,--i,i); return 0; }

Member Avatar for Aia
0
180
Member Avatar for jacques95

Hello i have put this into devshed #include <iostream> #include <string> using namespace std; int main () { string mystr; cout << "What's your name? "; getline (cin, mystr); cout << "Hello " << mystr << ".\n"; cout << "How old are you? "; getline (cin, mystr); cout << "I …

Member Avatar for JRM
0
96
Member Avatar for ditty
Member Avatar for sara01
0
141
Member Avatar for revenge2

Hey could someone please tell me whats wrong with this? [CODE]#include <iostream> using namespace std; int main() { const int sunday =7; const int monday =1; const int tuesday=2; const int wednesday =3; const int thursday =4; const int friday =5; const int saturday =6; int choice; cout <<" enter …

Member Avatar for Ancient Dragon
0
165
Member Avatar for elderp

Ok this is what my table structure looks like: username varchar(20) eadd varchar(40) for email addresses bday varchar(4) everyone is posting mmdd emailques varchar(2) they answer yes or no I want my query statement to tell me what birthdays are today and as a bonus email them on their birthday. …

Member Avatar for iamthwee
0
144
Member Avatar for thyagarajan

i am developing an online auction system in c......can someone pls help me to help me setup a timer that runs in the background (or) i dont know how to store the time/date so that it can be compared with current date/time..... Thanks

Member Avatar for Ancient Dragon
0
351
Member Avatar for hectic

I try to use the getline function, it works in simple program and accepts the input from user but when i try to use inside the do while loop, it just escape the line and shows that there is null input. cin works fine, case 1: cl.append(Cb("abc",false)); cout << "text"; …

Member Avatar for vijayan121
0
294
Member Avatar for vishalkhialani

Hello, I am about to start a project for my company where I am going to make a module for the production planning of our factory. Currently we are using excel to do this job which creates a lot of problems. Please see the attached picture of the excel file. …

Member Avatar for vishalkhialani
0
82
Member Avatar for wicked357

Ok I am writing a program that will read in 5 words using string list[5] and a for loop. Now I need to get it to output the 1st and 3rd letters in the words that were entered. I am having a bit of trouble and not sure what I …

Member Avatar for twomers
0
117
Member Avatar for sakthi_2001

Hi all, I am new to C programming, can anyone help me out with a solution to find sum of digits of a 5-digit number without using control statements, like if, for... thank you

Member Avatar for twomers
0
719
Member Avatar for aldrinsms
Member Avatar for Salem
0
90
Member Avatar for Tony Barber

I want to construct a web page with language flags. The user clicks his flag and the web page is then displayed in his language. In VB6 I would achieve this with a resource file. Does HTML, PHP or CSS have something like that or must I create a web …

Member Avatar for fatihpiristine
0
152
Member Avatar for yagapapa

Hi all Ive been working on a VW2005 project and constantly been getting the following error message... Ive been debugging the program for quite some time now and still cant figure out where the problem lies... [CODE]Format of the initialization string does not conform to specification starting at index 0. …

Member Avatar for bharatsaboo
0
151
Member Avatar for tanha

hi, I have two php file: 1. list.php 2. delete.php On the list.php, there is a link word delete which refer to the delete.php and also send the id of the current record to the delete.php. On the delete.php I have the following code: [CODE] <body> <?php //must ask for …

Member Avatar for tanha
0
290
Member Avatar for Mariam0097

1.if a five digit number is input through the keyboard, write a program to calculate the sum of its digits.(use the modulus operator %) 2.if a five digit number is input through the keyboard,write a program to reverse the number. 3.if a five digit number is input through the keyboard,write …

Member Avatar for Duki
0
78
Member Avatar for becraig

I have an issue I want to have a php file set on my server that appends to a csv file and also reads and queries that csv file for a column. eg: I want a csv file with the following columns Email, First, name I want the php to …

Member Avatar for somedude3488
0
110
Member Avatar for GirlInterrupted

Okay... So I'm taking this c++ class. It's accelerated and I started off great but now... not so much. I've been searching the net trying to find a group of tutorials with quick examples for beginners. Something that clearly shows how to write and call functions. Read in data from …

Member Avatar for Duki
0
89
Member Avatar for zandiago

I need a head-up on this program....i really don't know where to start....however for section one, i'm guessing we'll have to use for loop from 1000 to 9999...because of the fact that they show the range of the samllest to largest 4 digit #'s. In section two I guess we'd …

Member Avatar for zandiago
0
245
Member Avatar for trs21219

i have my url structure rewrite from index.php?act=games&task=play to mysite.com/games/play.php but when i try to add a $_GET value to the end of the url it doesnt work. i want when a user clicks a game for it to be like mysite.com/games/play.php?game=534. but when i call the $_GET['game'] it does …

Member Avatar for johny_d
0
164
Member Avatar for binoj_daniel

Hi Experts, I want to know what is the best screen resolution for a website. My website is a technical resource portal. Based on the best pratices please suggest what to follow. Is 1024 x 768 a standard now? Right i have a free flow CSS but it is not …

Member Avatar for johny_d
0
89
Member Avatar for RGStrat

Hello, I have 2 different websites/domains on 1 IP. The problem is that whenever stuff is uploaded, it displays in both sites. Example: site_1.com/page.php = site_2.com/page.php I created a directory for each site. Example: site_1.com/site_1 and site_2.com/site_2 . I want to create a script that resides as the index of …

Member Avatar for RGStrat
0
137
Member Avatar for ryan_vietnow

Hello guys,does anyone here know how to make tabs with php?Could you please post some tutorials or links for this? Thanks..

Member Avatar for ryan_vietnow
0
115
Member Avatar for sidmaniac

hi i am trying to implement the delete and back space using javascript,the problem i am facing is whenever i hit the delete button it starts deleting from the end instead of the current cursor position and continues like backspace after that till the end. the code for delete is …

Member Avatar for MidiMagic
0
148
Member Avatar for Lucrezia

Hello all! I am using some javascript code to change some classes of an external stylesheet on the fly. Is there any way (a variable perhaps?) to access the changed stylesheet so that I store it afterwards with php, or should I rebuild it again (according to the options of …

Member Avatar for MidiMagic
0
140
Member Avatar for world_weapon

Brief overview, have three functions that return boolean for the zip code and email format and another to check if two fields are not empty and contain the same value. The wrapper functions I made that use another function to write to a div.innerHTML work fine. The function I made …

Member Avatar for MidiMagic
0
165
Member Avatar for shahriar2403

Let, i have a msàccess db with 3 tables having 'cost' field in all of them . Now in my report i want to 1) Show the sum of costs of indivisual table under the heading of each table (let $3000 for every table) & 2) show the sum of …

Member Avatar for shahriar2403
0
90
Member Avatar for RaDeuX

So I've been trying to make a VERY simple calculator program, but I tried so many things, and all of my methods failed. I've been at this for weeks, and I'm pretty frustrated up to this point. Nothing calls back on the entry box correctly, and although at certain points …

Member Avatar for vegaseat
0
434
Member Avatar for megan-smith

hey there; i wanted to write a program to convert binary to decimal. i did that using the " character approach". it works just fine. then i decided to enhance the program by adding an error message whenever the input are invalid (i.e anything other than 0, 1 ), but …

Member Avatar for Salem
0
126
Member Avatar for JoBe

Hello ladies and gents, Got a question, is it wise to create a member of a class by using another class it's constructor and deleting it threw the use of that class it destructor? For example: [code=cplusplus]// Testing code. #include "first.h" int main() { first myMenu; bool gameLoop = true; …

Member Avatar for JoBe
0
122
Member Avatar for n.aggel

i started reading this book [B]c++ templates - the complete guide[/B] about templates... in 3rd chapter {Specializations of Class Templates} it says [QUOTE]You can specialize a class template for certain template arguments. Similar to the overloading of function templates (see page 15), specializing class templates allows you to optimize implementations …

Member Avatar for vijayan121
0
127
Member Avatar for Exelio

hi all, I am using a datagridview to display contents of a xml file. say i have a xml file like this. <xml version="1.0" encoding="UTF-8"> <maincategory> <cat1> <title>Category1</title> <link>http://www.w3schools.com</link> <description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/flames_ramsetu90.jpg" >some description</description> </cat1> <cat2> <title>Category2</title> <link>http://www.ibnlive.com</link> <description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/rahul_gandhi_white90.jpg" >some description</description> </cat2> </maincategory> initially i display only the title of …

Member Avatar for Exelio
0
205
Member Avatar for gator6688

error C3861: 'enterData': identifier not found, even with argument-dependent lookup error C3861: 'printCheck': identifier not found, even with argument-dependent lookup Why am I getting this error? [code] #include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string todaysDate,firstName, lastName; double amount; enterData(&todaysDate, &firstName, &lastName, …

Member Avatar for Ancient Dragon
0
310
Member Avatar for genocide
Member Avatar for schoolsoluction
0
116
Member Avatar for gator6688

I have to write a program for an online class that accepts data to the function enterData() and passes it to printCheck to display. I am new to C++ and since it is an online class it is hard to get help. I have to compose a check and be …

Member Avatar for Dave Sinkula
0
288

The End.