199,112 Archived Topics
Remove Filter ![]() | |
This is probably a simple fix but I can't quite figure it out. How can I find an escaped character in in a string? E.g. string str = "abcde\tfghi"; [CODE] while (str [counter] != '\t') { counter++; } [/CODE] | |
hy, i have 2 database. DB1 & DB2. i create SP in DB1. in the SP, i want to access table "TBL" in DB2. how can i create that SP?? [CODE] CREATE PROCEDURE test AS BEGIN ?????????? END; [/CODE] Thx, | |
This is the condition, the user must enter a set of integers that ranges from 0-9 (so therefore the user is free to use up to 10 digits) and no two numbers are the same. The user interface is like a calculator without the signs. I've done the array and … | |
i dont even know where to start in this one lol ....... write a program to calculate and print the total parking charges for a customer at a long term parking lot. The charges are calculated according to the number of days parked at the lot. The parking charges for … | |
[CODE]typedef struct _node btree_node; struct _node { int* keys; btree_node* children; int count_keys; int is_leaf; btree_node* parent; int position_in_parent; }; [/CODE] I am getting this error: [CODE]error: no match for ‘operator=’ in ‘*(node->_node::children + ((long unsigned int)(((long unsigned int)(i + degree)) * 40ul))) = 0l’ note: candidates are: _node& _node::operator=(const … | |
This program will calculate commision based on the value of sales made... im getting three errors so far... 1>h:\cs110\assignment6\assignment6.cpp(22) : warning C4700: uninitialized local variable 'third' used 1>h:\cs110\assignment6\assignment6.cpp(22) : warning C4700: uninitialized local variable 'second' used 1>h:\cs110\assignment6\assignment6.cpp(22) : warning C4700: uninitialized local variable 'first' used. I was reading some books … | |
Please help me. I know this kind a simple problem. My problem is when i select the end day of the month it gives me a negative days in txtdays. This is my code to txtdays [CODE] txtDays.Text = dtpEnd.Value.Day - dtpStart.Value.Day [/CODE] This is my code to add date … | |
hi there......... i am using MS SQL i have made a database in MS SQL now i want to export to another computer (pc) ,,,,,, please help me out with this......... thanks | |
i am trying to make a program that in the even that a message is received when the program does not have focus a message box will be displayed, however, using: [code]if me.focused = false then TrayIcon.BalloonTipTitle = "New Message From " & array(0) TrayIcon.BalloonTipText = array(1) TrayIcon.ShowBalloonTip(5000) end if[/code] … | |
Hello, First of all, excuse my English =) Warning: wall of text\code. I must say I have some experience in Java and long forgotten C++, so right now I have some problems implementing the Huffman coding. The algorithm goes like this: I create an array of 255 elements to represent … | |
Hello, I'm trying to let users know how many times there personal page is viewed. Here is some code. [CODE] $colname_Recordset1 = "-1"; if (isset($_GET['user_name'])) { $colname_Recordset1 = $_GET['user_name']; } mysql_query("UPDATE content SET counter = counter + 1 WHERE user_name = $colname_Recordset1");[/CODE] It works if I remove the WHERE clause … | |
Hi, i would like to connect a webcam to vb6.0 or to vb.net and wolud like to take a photograph which is then to be stored in access / sql database. plz. help me Avinash Rooge | |
Hi, I am trying to create a website where the visitor can choose one of two languages when first arriving at the website. Then I want that choice to be saved throughout the whole visit without the visitor having to log in. I've always felt that cookies are a lame … | |
Maby ive been going about this the wrong way. Im attempting to change the system volume using VB.net. I dont want to use the mediaplayer stuff because i dont want that to be open the whole time. if someone could point me to a working API or something for changing … | |
Hey I usually use RTTI to access object when reading or writing them to a dataset so i have prior knowledge of what the field required Example [CODE] if vPropInfo^.Kind = tkFloat then begin if vField.DataType = ftDateTime then vField.AsDateTime := FloatToDateTime(GetFloatProp (thisObject, vPropInfo)); else vField.AsFloat := GetFloatProp (thisObject, vPropInfo)); … | |
Hey everyone, first time one here and i thought i would show my most recent university java assignment. I'm just looking for feedback... wanna see if i am developing good habits or bad. the assignment is completed and marked by my uni so i am not looking for help.. they … | |
Hi anybody has scripts for detecting users' country based on ip? | |
Hi, currently im working on a project for uni but i have no knowledge in C at all basically what im trying to do is remove all * !"£$%^&*()- and double spaces from a text file so far i am able to copy the text file so that im not … | |
I would like the output of the following program to show the first integer without decimals and the rest will have 4 places..the way it is written now all outputs show as 1.0000 (or something similar) code is as follows [CODE]//Square root and cube root calculator #include <iostream> #include <iomanip> … | |
Im abit confused about the problem im solving right now. it says that i will create a program that would let me input any word, and count how many letters are there. and afterwards i will also make another statement letting me input any letter,then the program would determine if … | |
Hi all, I am just getting into the world of OOP and I'm not totally sure in what situations it's better to use objects and when it's simpler to just revert to arrays. For example, I am currently re-writing a bit of scientific code written in C that simulates the … | |
The control is a Button. This is a Help button. After clicking the button the user can then move the mouse to the ListView and click on an Item and get detailed information. So, here is my problem, the Mouse is captured and the aforementioned code works, though I think … | |
Construct a program that allows the user to input the weight of a package in pounds. The program should then compute and display the following. The shipping charges are computed per the following rules: If the package weighs more than 10 pounds, the shipping charges are $3.80. If it weighs … | |
Hello everyone, I am a student in a beginners c++ class and I need some help on an assignment I need to write a code that will "Write a program that reads in two positive integers that are 15 digits in length and then outputs the addition and subtraction of … | |
Hello, I am a complete beginner at Java and I'm having a problem with something I don't understand at all. I'm trying to complete some homework in which I need to finnish off writing a small program which reads a text file and checks brackets in the file. Basically, it … | |
I really want to write this program in c without c++ coding. Please help me convert my code to c only. Here is sample input from a text file: alex busted marries marries test teste tested smile smiled works worked indexed hello kkked holddd smexexed whitespaced and Here is output … | |
Hi, i'm newish to this website, (i've googled a lot for answers to my questions and often came accross very useful answers to my problems on this website) and i'm also in the middle of learning C++. As i learn new things i decide to make little programs that actually … | |
Hello, I have an assignment for class that I have been working on and am nearly there. First of all, here is the description of the assignment: "Employee and ProductionWorker Classes Design a class named Employee. The class should keep the following information in member variables: Employee name Employee number … | |
hi all, I wonder if anyone can help me, first of all im new to asp.net and am trying to learn it. Right, i have developed a website locally which works fine, but when uploading it to my host i am receiving a runtime error on the pages that interact … | |
Is the form below a valid method of changing the id of an XHTML element, specifically the one actually being referenced? It does not seem to work for me. [CODE]document.getElementById("Original_Name").setAttribute("id", "New_name");[/CODE] | |
I made a simple program where a user can pick from the menu. My problem is where do i put this code properly inside the fuction of [B]funcFloat[/B] and [B]funcInteger[/B] [CODE]if (myFloat < 0) // this will output if the user entered a negative value { printf ("You entered a … | |
This is how my session reads: [CODE] Array ( [pstloggedin] => blah [userID] => blah [email] => blah [fname] => blah [lname] => blah [phone] => blah [cart] => Array ( [0] => Array ( [team] => 2137 [tournament] => 24577 [gatefee] => yes [cost] => 800 [sdate] => 2010-06-03 … | |
Hey everyone! this is my first post at this forum:P Please go through and answer what question you can, i'm trying to make a software program which will auto type for me when ever i have a certain key down. something like this... (please not that i am uterly new … | |
Is there a way to use toUpper with a string, or do you have to loop it through an array of chars? Ive been googling everywhere, but havent really found any examples on how to properly use it. Thanks | |
Hi! I am testing how to make an easy chat engine [URL="http://erlendhl.ueuo.com/c/ExternalChat.html"]here[/URL]. First I used[ICODE]xmlhttp.open("GET",url+"?F="+FILE,[B]false[/B]);[/ICODE], but I noticed that it was very bad to use false, because then, every 2 seconds, the page stops working. (like you can't do anything for like 0.5 sec) So I tried to use [B]true[/B], … | |
Can I access a web service via software? I'm writing a client – server application and I wish to upload the server part as a web a service so I could access it from any computer while the application is stored on some server, how can I do it? | |
Hi, I'm having trouble getting age 10 occurrences and then removing age 10 from the list. Then I want to be able to print the list without displaying age 10 in it. I trying to use my bag class implementation to do this successfully. My bag class is below. Any … | |
Hi all I have a heap corruption problem in getting STL containers data through OCCI methods . For instance if i do an assignment of this type [code] while(rs->next() ) { SRecord r; '' struct object r.PDM_APPLICATION_NO= rs->getString(1); r.PDM_FIRST_NAME=rs->getString(2);; //Error Heap Corruption r.PDM_LAST_NAME= rs->getString(3); r.PDM_F_FIRST_NAME= rs->getString(4); }[/code] I use Visual … | |
Hello Friends Can anyone tell me where to find php.ini in my cpanel? Thanks | |
Hi i'm new to c# i'm trying to write a function that i can use over and over again in a number of places. i want to pass in a couple of parameters 1)the string 2)number of character i want in substring 3)what characters to put after the last white … | |
Hello! I started to create my own tiny 'framework' mainly built on the socket and the thread module. I haven't been doing too much thread programming before. My problem is that when I try server.waitForConnections(2), at the second connection, it says [code] Unhandled exception in thread started by Error in … | |
I am trying to write a program to add big numbers using char data. I need help getting this completed. [CODE] char k; int num1[26], num2[26], sum[26]; ifstream inData; inData.open("bignums.dat"); inData.get(k);[/CODE] I need to read in the first number: [CODE=text]7777777777[/CODE] I need to right justify the first number to the … | |
I know that this is an easy one but it is hard for me to figure out. I need to make a program that can: * Open the file and read through all of the lines in the file. (got this) * If a line starts with "Subject:", skip the … | |
Hello guys.. Please help me on this.. I downloaded this file: [CODE]http://www.cproxy.com/download/cpsetup_en.exe[/CODE] Then I decompiled it using [B]Form Extractor[/B] Software.. But VB6 is the only programming language I know.. How can I convert Delphi to VB6? :( | |
Hi I have a file, let's call it file.xml which contains information on the 1st and 3rd line (xml header and footer). What I would like to do is always write to the 2nd line so that the header and footer remain in the correct place. This is a gps … | |
I just self-taught myself C++. I've got all the basics down, but I'm still working out some of the nuances. Basically, I'm passing an array into a function, and I need the function to be able to pass the length of the array to an integer. I'm using [CODE]int len … | |
Hi, there, I have written a program here which shows plane to book a seat, and enter flight info(this part works fine)... but having some small problem here I am using gotoxy and it gives me an error, it says that gotoxy undeclared. Could anyone help me with this please, … | |
I have a small problem with my code below when making my userlist when i connect a user it doubles the user name in list and am unable to find out why i posted my user list code below i be grateful if sumone can help me when i login … | |
I'm not sure if I'm not comparing the strings properly or not, but for some reason my toppingCost function will only return 0 or a huge wacky number (when I mess around with the code a bit). Does anyone see anything wrong with this? [CODE] // represent the cost of … | |
hi Im trying to make this code go though every possible string combination at said string length though alpha characters using random number generator to do so.The goal is to make this program tell me how many combinations there are at said circumstances set by user. [CODE] #include <iostream> #include … |
The End.