Hello, is it possible to create a website that can **receive a command/word from the user**, and then **search other websites **for a file associated with that word? The file it provides would be based on selecting the file based on a set of **pre-defined criteria**. So the site would have to perform scanning/selecting actions in the background while outputting simply the file result to the user. Can a site perform these background operations such as scanning other sites then selecting a file? I’m very new but eager to learn and excited to read your replies, thank you.

Member Avatar
Member Avatar
+0 forum 2

Hello everyone. I'm working on a program which should edit a text file by adding/deleting some specific lines. By default this text file doesn't have these specific lines, so the program will add them. But I also want it to replace them if they're already in the text file. Basically this is my idea: - Read the text file - Search the specific lines - If they exist then replace them - Else add them I pretty much know how to read a text file, how to search for specific lines, how to replace them and how to add them, …

Member Avatar
Member Avatar
+0 forum 4

Hi everyone, Running: Windows 7 Professional (64 bit), MS Office 2010, IE 9.08.... since I bought the laptop in September and have made no software modifications at all. Having a really annoying problem. Have searched web and here. Whilst sismilar issues are out there, I can't find one the same as mine. When I try to follow hyperlinks in MS Word (including links in TOCs) or PDF documents I get the follwing error message: [I]"This operation has been cancelled due to restrictions in effect on this computer. Pls contact your system administrator.[/I] I don't have any problems following hyperlinks from …

Member Avatar
Member Avatar
+0 forum 1

I have written the following program. It collects inventory information and stores it in a file. I need to write a separate program that will access that file and give me the totals of the information stored in it ie. (quantity,wholesalecost,retailcost). What I'm specifically having trouble with is how to read out the information in file and store it in to a local variable? Any help would be much appreciated! Thanks, -D [CODE]#include <iostream> #include <fstream> #include <cctype> #include <string> using namespace std; const int DESC_SIZE = 31; // Description size // Declaration of InventoryItem structure struct InventoryItem { char …

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, I am having some problems with my code and allowing it to do what I want. I need within main to have the account balance from my class to be allowed to change value through "transactions" adding negative numbers for a withdraw and positive numbers to put in a deposit within the accounts balance. I want to do this an unlimited amount of times and I cannot seem to get the loop for it to work correctly. Here is my code: The problem happens near the bottom. [CODE] // Case 2 Chapter 9 #include <iostream> #include <iomanip> using …

Member Avatar
Member Avatar
+0 forum 5

So I've been working on this program for a while, I'm finally finish but I have two error that I can not understand why. My first error is when I am declaring the header f [CODE] //------------------- Mixed.cpp -------------- #include <iostream> #include "mixed.h" using namespace std;[/CODE]ile> it keep sending me an error message error C2143: syntax error : missing ';' before 'using' I feel like this is a real simple mistake but I can not figure out what I am doing wrong? There isn't suppose to be a ; before using my next error is about operator overloading I wrote …

Member Avatar
Member Avatar
+0 forum 3

//Program that computes for the salary of the employee [CODE]#include <iostream> using namespace std; int main() { int EmployeeCode; float WeeklySalary, HourlyWage, NumHoursWorked, Overtime; cout<<"Enter Employee Code: "; cin>>EmployeeCode; if (EmployeeCode==1) { cout<<"Enter Weekly Salary: $ "; cin>>WeeklySalary; WeeklySalary = WeeklySalary; cout<<"Weekly Salary is: $ "<<WeeklySalary; } else if (EmployeeCode==2) { cout<<"Enter Hourly Wage $: "; cin>>HourlyWage; cout<<"Enter Number of Hours Worked: "; cin>>NumHoursWorked; if (NumHoursWorked <= 40) { WeeklySalary = HourlyWage * NumHoursWorked; cout<<"Weekly Salary is: $ "<<WeeklySalary<<endl; } else { Overtime = NumHoursWorked - 40; WeeklySalary = (HourlyWage*40) + (Overtime*HourlyWage*1.5); cout<<"Weekly Salary is: $ "<< WeeklySalary; } } …

Member Avatar
Member Avatar
+0 forum 14

I have been thinking about order operations and generalized * in Python recently. I want to share some of my thinking here, even the topic is quite theoretical, considering the beauty and orthogonality of the language. [B]Point one[/B] You can do comparison with tuples of numbers in Python [CODE]>>> (0,0)<(1,1)<(2,2) True >>> (0,0)<(1,1)<(2,0) True >>> [/CODE] First is fine for me, but I am not agreeing with the second one. Why? If a<b<c, then number b is between a and c in the number line. (x,y) is point in two dimensional plane. For me the natural extension of < is …

Member Avatar
Member Avatar
+0 forum 10

The End.