199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nsjoe

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]

Member Avatar for Dave Sinkula
0
143
Member Avatar for am_dumb

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,

Member Avatar for am_dumb
0
90
Member Avatar for WAIWAIWAI

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 …

Member Avatar for vb5prgrmr
0
100
Member Avatar for MichelleCrews

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 …

Member Avatar for MichelleCrews
0
2K
Member Avatar for johndoe444

[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 …

Member Avatar for gerard4143
0
248
Member Avatar for mmgoicochea

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 …

Member Avatar for mmgoicochea
0
166
Member Avatar for comsci2

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 …

Member Avatar for comsci2
0
100
Member Avatar for lucky_ali0926

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

Member Avatar for samaru
0
91
Member Avatar for mrclark

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] …

Member Avatar for mrclark
0
101
Member Avatar for Khazidhea

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 …

Member Avatar for Khazidhea
0
240
Member Avatar for phpDave

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 …

Member Avatar for phpDave
0
67
Member Avatar for avirooge

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

Member Avatar for kvprajapati
0
602
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
122
Member Avatar for alphaman1101

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 …

Member Avatar for kvprajapati
0
92
Member Avatar for instinctfx

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)); …

0
84
Member Avatar for Zoxx98

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 …

Member Avatar for BestJewSinceJC
0
187
Member Avatar for vivobie
Member Avatar for Notme

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 …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for fugnut

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> …

Member Avatar for NathanOliver
0
169
Member Avatar for intes77

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 …

Member Avatar for BestJewSinceJC
0
179
Member Avatar for TheWolverine

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 …

Member Avatar for TheWolverine
0
172
Member Avatar for herbie643

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 …

Member Avatar for herbie643
0
115
Member Avatar for Lil Babygirl

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 …

Member Avatar for Ezzaral
0
86
Member Avatar for emma88

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 …

Member Avatar for NathanOliver
0
109
Member Avatar for Conielo

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 …

Member Avatar for Conielo
0
166
Member Avatar for newcuser

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 …

Member Avatar for WaltP
0
171
Member Avatar for Matt323

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 …

Member Avatar for mitrmkar
0
386
Member Avatar for BobbieJean

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 …

Member Avatar for BobbieJean
0
2K
Member Avatar for gdp_87

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 …

Member Avatar for gdp_87
0
95
Member Avatar for mairtinomarta

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]

Member Avatar for mairtinomarta
0
159
Member Avatar for EvilNerd

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 …

Member Avatar for EvilNerd
0
93
Member Avatar for Morty222

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 …

Member Avatar for CFROG
0
72
Member Avatar for jameslat

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 …

Member Avatar for jameslat
0
88
Member Avatar for clutchkiller

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

Member Avatar for Narue
0
399
Member Avatar for ErlendHL

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], …

0
77
Member Avatar for stewie griffin

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?

Member Avatar for stewie griffin
0
104
Member Avatar for NinjaLink

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 …

Member Avatar for IsharaComix
0
159
Member Avatar for dhpatil1

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 …

Member Avatar for hnd1122
0
330
Member Avatar for virtualmisc
Member Avatar for saiprem
0
76
Member Avatar for adamjw3

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 …

Member Avatar for apegram
0
1K
Member Avatar for sandorlev

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 …

0
474
Member Avatar for caramel

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 …

Member Avatar for dusktreader
0
974
Member Avatar for doctorjo5

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 …

Member Avatar for woooee
0
185
Member Avatar for betabasic

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? :(

Member Avatar for anant26692
0
200
Member Avatar for hinz10

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 …

Member Avatar for Gribouillis
0
97
Member Avatar for tokomonster

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 …

Member Avatar for tokomonster
0
195
Member Avatar for dinamit875

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, …

Member Avatar for dinamit875
0
356
Member Avatar for Simon180

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 …

Member Avatar for Simon180
0
120
Member Avatar for Encrypted

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 …

Member Avatar for Dave Sinkula
0
137
Member Avatar for rom87

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 …

Member Avatar for nezachem
0
138

The End.