199,114 Archived Topics
Remove Filter ![]() | |
hi, im really new to this programming language and im having a hard time in strings. can anyone teach me how to compare strings the easiest way. what im doing is a login program and i have to compare the inputed username to a string. example: a = daniweb is … | |
![]() | I am trying to modify a parser for delimited files I already wrote so it works on a delimited file that doesn't contain each set of data on the same line. So for example, ||A||B||C||D||E||F ||G||H|||A||B||C|| D||E||F||G||H|||A where each data set is separated by 3 pipes instead of 2. Can … |
Does anyone know where I can find the pthread library for Linux? And I don't want any rude "go google it" responds. I tried that, and all I came up with was one download available for win32. | |
Hi, Im just starting out attempting to learn assembly, and ive come across what is probably a really simple stumbling block.. The aid of google has failed me this time and im hoping someone on here can help me. I started writing a simple program that takes input for an … | |
Hi everyone I am trying to get done the stocks program the first function is readStocks, it compiles but deosnt give me rigth ptompt, i guess i have some kind of execution error. Could any one give me advice on that? THank you. [code=cplusplus] //Stock's statistic #include <iostream> #include <stdlib.h> … | |
[code] #include <iostream> #include <ctime> using namespace std; // Dynamic Single Array of integers #define dAry class DynaArray { private: int SIZE; int* array; public: DynaArray(); // Default Constructor DynaArray(const DynaArray& dAry); // Copy Constructor ~DynaArray(); // Destructor DynaArray& operator= (const DynaArray& dAry); // Assignment Operator // Accessors int getSize() … | |
What,s wrong with this code: procedure TWinForm1.Button2_Click(sender: System.Object; e: System.EventArgs); var varForm:TwinForm1; begin varForm.Close; end; Error: system.NullReferenceException | |
I need a little help calculating odds for a roulette game.. i'm not sure why someone would bet 1:1 odds.. to me, that just means you win your money back without making a profit. also, 1:1+bet back doesn't seem any different than betting 2:1.. this is how I calculate it: … | |
Hi, I have one doubt in mysql command using limit. I want to delete a first record in a table using mysql query. I using the below query DELETE from view_me where member_id = '$sess' LIMIT 0,1 But if I used the above query mysql cannot deleted the record. It … | |
how to divide the given number by 3 using bitwise operators and what are other methods without using /,*,%.operators.. | |
I have the following sample code: [CODE]]import wx class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, title="tree example", size=(600,30)) self.tree = wx.TreeCtrl(self) root = self.tree.AddRoot("Example") items = [ "test1", "test2", "test3",] self.AddTreeNodes(root, items) self.Bind(wx.EVT_TREE_ITEM_EXPANDED, self.OnItemExpanded, self.tree) self.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnItemCollapsed, self.tree) self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, self.tree) self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivated, self.tree) self.tree.Expand(root) def AddTreeNodes(self, parentItem, items): for item … | |
**Creating New User Issue** in VB.net with SQL 2005: I have a LogOn table and a Usr (User) table. A form that collects the new UserID,Password,FirstName,LastName, etc... I want to have two separate INSERT statements to first insert the UserID & Password. Then grabs the LogOnSys just created and create … | |
Code [code] //God Mode }else if(stricmp(lpcLine, "!god") == 0){ bRet = false; if(ADDR_GODMODE[0] != 0x90){ BYTE godmode[] = {0x90, 0x90}; EnableHack((BYTE*)ADDR_GODMODE, godmode, 2); Echo("GodMode On"); } else{ BYTE godmode[] = {0x7B, 0x05}; EnableHack((BYTE*)ADDR_GODMODE, godmode, 2); Echo("GodMode Off"); } [/code] Error error C2109: subscript requires array or pointer type | |
I have a countdown timer in my application that is to be controlled via keyboard. Currently, it will start (or reset to the starting value of 20minutes) when the user presses "B", and stop when the user presses "A". Trying to figure out how to restart the timer from the … | |
Hi Folks, I'm trying to pass a string between two different forms in ACCESS with code, and I'm having some difficulty tracking down the proper way to do this. Assistance in completing this task is greatly appreciated.. Thanks in advance! - Jordan Here's what I want to accomplish: [B]Form 1: … | |
I'm trying to figure out how to add a reset button and a calculation button to my program. I'm lost here. The program works when the user put in the loan amount, lenght of loan and interest rate. I need a button to reset the fields so another user can … | |
:sad: hi Can anyone tell me the steps to do before deploying a MDB application like how to create Topic and Queue JNDI.. or any other steps like that we should do in the WEBLOGIC 8.1 CONSOLE WINDOW before deployment.. i have a JMS Client program,A helper program and a … | |
I cant get my function code to work. Its should return an average of however many numbers are entered, but it always returns 775863 no matte what... can anyone tell me whats wrong? [code] #include <stdio.h> int avg(int av[], int y, int x, int z); int main(){ int x=0; int … | |
I'm a bit confused on how the precompiled header system works. I'm using Visual Studio 2005 and when trying to include multiple .cpp files in a project, they each, on compile, give me an unexpected end of file error. I have them all set to precompile a header, stdafx.h, and … | |
Hi guys, I've got a database which frequently need to be sent over the internet so that other users can update their data. As the database is huge with more than 30,000 records, it's really hard for other people to download it as they are on dial up. Is there … | |
This is my first post - Hello everybody, hopefully you can help get on straight and narrow with regards to c++ Anyway on to question: What I need to do this is to utilize the constructor of one class in a second class - thereby optimizing the code by avoiding … | |
Is Visual Studio 97/5.0 (its called both) any good? | |
HI im new to php nuke can anybody telll me how i can create many threads and chanee colour o web | |
Hi guys, I am currently working on a program that opens a text file and replaces all [Space]s with [Tab]s. I already know how to read teh text file and write in the new variables, but I just can't figure out how to make a pascal program a) read a … | |
hi!! my problem is im not able to start java in my pc. i am installing jdk1.5 in my pc n wenever i try to run my program by command javac example.java the program compiles bt when i try to intrepet by java example it shows an error [no main … | |
[code=cplusplus] #include "stdafx.h" #include <iostream.h> struct MonthInfo { float totalRain; float highTemp; float lowTemp; float avgTemp; }; struct MonthInfo year[12]; int main(int argc, char* argv[]) { const int MONTHS = 12; // Change here for (int i = 0 ; i < MONTHS ; i++ ) { cout << "Enter … | |
[COLOR=#333399]A bit of problem here, if anyone can help, I would appreciate any and all help with this. Thank you in advance.[/COLOR] [COLOR=#333399]Now I have no errors but when I execute the program I get this:[/COLOR] [COLOR=#333399] [/COLOR] [B]Big Bank: Monthly Checking Account Activity ----------- Account ----------- Beginning With- Ending … | |
![]() | OK Can anyone help me understand what a tokenizer does? And why I have to put *tokenPtr? What is the * for? I am having a heck of a time figuring out how to write a program that takes the last two letters of a word in a sentence puts … |
Hi, I have a page that features chocolate recipes. I wanted to give the ability for visitors to print out INDIVIDUAL recipes contained upon the page. I thought I had it made by going: [INLINECODE]a.document.write(document.getElementById('printit').innerHTML);[/INLINECODE] Of course, this only printed the 1st recipe...no matter which one was selected. I tried … | |
Hey all, I'm developing a Reports module for an application. anyway, i'm dynamically generating tables and adding them inside an existing DIV which has the following style : [html]<DIV id="forPrint" class="hide" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;LEFT:0px;PADDING-BOTTOM:0px;WIDTH:100%;PADDING-TOP:0px;POSITION;absolute;TOP:0px;HEIGHT:100%" runat=server> </DIV>[/html] when creating each row inside a loop and add it to the table i check that … | |
![]() | My while statement does not work. This program is only performing the function on the first word in the sentence. Can anyone help me get the while statement to do all of the words in the sentence? [code=c] #include <iostream> using std::cin; using std::cout; using std::endl; #include <cstring> using std::strtok; … |
![]() | Hello I'm writing a little selection sort program in C. Unfortunately the algorithm doesn't work correctly. After the selection sort some float numbers in the array are rounded down to whole ints. Here's the example: [inlinecode] Code: enter input filename:data // input numbers 5.000000 7.000000 -48.400000 8.800000 8.400000 1.500000 8.400000 … |
hi there ,i am in 3rd year in computer science and am confusing about my 4th graduate project i can`t get the great idea am looking for,i almost finishing MCAD,and i read many books about c++ and am also have a background in MAYA (still in progressing)so i want to … | |
| |
[COLOR=#000000]I am having trouble getting this program to work. This is my first applet and I can’t seem to get my mind around how to get the commands in correct format. I have completed this program in application and gui with no problems, but applet format is not working in … | |
Ok, I'm doing a basic structure program that displays things. Here's an example of what it should display. [code]Invalid data in line 11 Daring Dunkers Player Statistics Player Field Goals Free Throws Total Tried Made % Tried Made % Points Jerry 2 1 0.50 2 1 0.50 3 Akeem 0 … | |
Hi, Inputfile.log TDR 30 /data/data2/log1 TDRM 60 /data/data2/log2 # This command will match both lines $ grep ^TDR Inputfile.log # This command will match lines with TDR word appear anywhere in the text (but not TDRM) $ egrep -w TDR Inputfile.log How can I just match TDR that appears only … | |
I have a funtion executing a loop, which semes to be progressing normally until the debugger halted with this message; Program received signal SIGSEGV, Segmentation fault. I pulled up a a backtrace and it had "normal lookuing" addresses for the this pointer and the reference variable. I could probably figure … | |
I am experimenting (playing around) with the Python Tkinter Gui, and wondered if there is a way to play a sound like from a .wav or .au file? | |
I'm trying to make a loop that that will skip a number but has a certain limit to how high it goes... For example: I have a for loop: [code]for (i = 0; i < count; i++ ) { stuff }[/code] but lets say I want to skip a number … | |
Hi everyone, I have a small problem. I am writing a program for school in which I will construct a hash table for dictionary words, using the soundex code of the word as the hash function. For the hash function, I have to take the soundex code and convert it … | |
I'm fairly new to C and have been doing pretty good up until arrays. I understand the basics of them but not exactly how to use and impliment them in more complicated ways. I am trying to write a program that will display a table of strings and intigers from … | |
[CODE=c] #include<stdio.h> int main(void) { char letter; char *pletter; pletter = &letter; printf("%p", &letter; putchar('\t'); printf("%p", letter); putchar('\n'); puts("Understand?\nWhat is the right way? it is 4bytes different"); //*allows the value to be altered by the base adderess //&lets a datatype to value by its adderess from another datatype takes 2 … | |
(c++) Ok so I understand how to use the system function, and how to output to a file. How do I pipe the output of say system("last") to a file? system() returns an int, so if I mystream << system("last") it will put an int in the file. I need … | |
![]() | I am back this week with another homework problem. My array is not working like I thought it would. My brain is about to explode trying to comprehend what is going on. This code will compile but, it won't do what I want it to. The array is supposed to … |
hey ppl, for a project in coll i need to implement a simple lexical analyser in C....i did get a code but wen implemented it recognises EOF after one blank line...as d input n ouput are files...so if any idea as wat could be d reason??? n any codes to … ![]() | |
I designed a website for my husband, but I'm having trouble getting the submit button to work the way I want it. I want it to send the customers information to our email address and then to a thank you page. I've been able to get it to send the … | |
i have a mysql table with a few columns. some of the rows in this table might contain the same content in the same column. for instance. my column titles are 'uID' 'product' 'item' 'need' 'yah' 'blah' 'blah'... here's what i need i need some advice on how to design … ![]() | |
i want to write a program that will output all of the factorials up to a maximum number provided....if anyone can guide me, thanks... ![]() | |
hi i want to know what happen if we do not "setAutocommit(true)" after a transaction.. at the begining of the transaction it is "setAutocommit(false)"; but then at the end of the transaction if i do not setAutocommit(true), is that will affected for the anoter transaction comming next....? please help me...... |
The End.