199,112 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
![]() | [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 … ![]() |
#include <stdio.h> int main() { int i=5; printf("%d %d %d %d %d", --i,i--,++i,--i,i); return 0; } | |
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 … | |
i am working in c#....can anybody help me to connect front end to back end. | |
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 … | |
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. … ![]() | |
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 | |
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"; … | |
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. … | |
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 … | |
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 | |
How to make a program yhat make the transpose of a matrix using C ofcourse. | |
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 … ![]() | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hello guys,does anyone here know how to make tabs with php?Could you please post some tutorials or links for this? Thanks.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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, … | |
| |
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 … |
The End.