199,113 Archived Topics
Remove Filter ![]() | |
hi all, I m new to C++(but have a very good knowledge of C) and very desperately looking for some good programming problems that involves some object oriented principles of c++.Can anybody please give a link to such problems. | |
Hi guys. I have been working at this for several hours. I'm still a novice in C++. The program I need to write is suppose to calculate the day number for a given day represented by three type int values. It also needs a function that returns true if the … | |
Hey everyone, I'm trying to make it so that my ^ operator is right justified within this binary expression tree. For example, 2^3^4 should be evaluated as 2^(3^4). So I should get 2^81, instead of the usual 2^12. Here is the code I have so far. Everything works, except the … | |
My program must read a file and count how many times each letter comes up using vectors[27]. besides main there will be 2 required functions. int char2int(char arg) void display(const vector<int> & counters) the file has numbers to but those should be read as a O. need help please help! | |
I'm trying to install java on my home laptop and it isn't working, i followed all the steps outlined by my lecturer but the javac filename isn't executing properly. Is it setup right by me?? In environmental variables PATH = C:\jre1.6.0_07\bin;C:\Program Files\PC Connectivity Solution\;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Metrowerks\CodeWarrior\Bin;C:\Program Files\Metrowerks\CodeWarrior\Other Metrowerks Tools\Command Line Tools;C:\Program … | |
ok i understand some basics of vb but am still relatively a new... my problem.. code is for saving values into a database and displaying on the same form on a datagrid which is connected to the database... Imports System.Data.OleDb Public Class Addbooking Inherits System.Windows.Forms.Form Public cN As OleDbConnection Public … | |
how do i concatenate a an array. This is the code. [code] char data [128]; char c, s, l; char *cmd_array [128]; count = 0; char * pch_W; pch_W = strtok ( inbuf, " " ); while ( pch_W != NULL ) { cmd_array_W [ count ] = pch_W; pch_W … | |
Hello everyone, I moved forward to purchase a book with PHP examples. This ecommmerce example did not make much sense to me at a certain point, it became too technial and I was unable to follow along with explicit understanding. There are two pieces of code that are problematic starting … | |
hi: please help me to find the code that convert nfa to dfa by using c++ and please send it to my email [email removed] thank you very much please help me now.....:icon_neutral: | |
Write a program that shows a constructor passing information about constructor failure to an exception handler after a try block. What do i really need to do ? | |
Hi there, Say I have created an ifstream object in main(): [CODE]ifstream [B]inData[/B]; // Create new input file stream object inData.open( "input.dat" );[/CODE] How could I then pass this object to a function, instead of having to recreate it there? I.e. what would the argument and parameter look like? Thanks … | |
Hi, I am writing a jsp app. Thing is I cannot get the "hhello0" String in the destroy method to echo after the thread is stopped, fourth line from the bottom. Thanx already :S [code=java] package Transaction; import bean.*; import dealer.DealerDetails; import java.io.*; import java.sql.SQLException; import java.util.*; import java.util.logging.Level; import … | |
I'm unfamiliar with how to write recursive functions. Can anyone help me out here? I need a recursive function to see if date number 1 is greater than date number 2. If it is it returns true. If 2 > 1, it switches them and returns them like that. If … | |
Hi, I'm trying to search in an audio file based on keyword spotting so i recorded the key words in different .wav files...and then compare the incoming .wav file with the key words... I applied feature extraction on the incoming .wav file as well as the keyword um using to … | |
hi i want to update the exsistin user details in the database. Here i want that when the user loged in the edit profile page is there and all the details of the user can be displayed in there perticuler area. and after that if user want to update it … | |
Hi.. i want to know how do we access a web site's data to be displayed on my application e.g. like i want to create an application that looks up some investing site and displays current stock and share values on my desktop. I have already in mind that the … | |
Hi Guys, I want to ask about these codes, i don't understand clearly. So to understand these codes detail what kind of books i have to read and tutorial i have to learn. Please guide me. [code] #include <windows.h> int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE PrevInstance, LPSTR lpszArgument, int nFunsterStil) … | |
Hi, Following is the function which is giving me a segmentation fault. I do not know what is wrong in this code. I am counting the number of lines in the file. [ICODE] char f11; char c; int f12 = 0; FILE *ilfile; ifstream ficnf; int size_f = 0; int … | |
hey guys.. am learning c++ just started.. am not able to implement member dereferencing operators.. i know there basic definations and rules but...its like.. a clear picture is still not coming to my mind..as in how to make use of them.. please explain with examples.. | |
Hello friends. I'm working on a program to sort a list object using toArray, Arrays.sort, and Arrays.asList. The problem asks that I then apply Collections.binarySearch directly to the list object. I know what the problem is (which I have stated through comments in my code) but I don't know how … | |
1. Develop a Java application that will determine the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You are given a list of … | |
Hey guys, What am I doing wrong here? sss.hpp [code=cpp] #include <fstream> #include <string> #include <map> namespace sss { using namespace std; class node { public: multimap<string, string> values; multimap<string, node> children; string &value(const string name, size_t index = 0); node &child(const string name, size_t index = 0); private: template … | |
hello everyone! im having trouble with php have anyone know how to create shopping cart using php? im using html, php, mysql, navicat for mysql. i just want to create the very simple one. like add, delete, update somekind like tat.. i hope u guys can help me. thanks! | |
There are multiple occurances of the PLUS_BORROWER data. For each occurence of PLUS_BORROWER, I want to save the CREDIT_SCORE and DAYTIME_PHONE_NBR when the Type= And SOCIAL_SECURITY_NBR are certain values. Then I want to execute a loop and extract the Credit_Score and Daytime_Phone_Nbrs. [code] <PLUS_BORROWER Type="Primary"> <SOCIAL_SECURITY_NBR>123459999</SOCIAL_SECURITY_NBR> <CREDIT_SCORE ModelName="Emperica">793</CREDIT_SCORE> <DAYTIME_PHONE_NBR>4077889999</DAYTIME_PHONE_NBR> <DAYTIME_PHONE_EXT>101</DAYTIME_PHONE_EXT> … | |
HI, I need help in .htaccess to hide php extension. if someone request [url]www.mysite.com/profilename[/url] , then profile should be open of the particular person. Please help me in this, how can i accomplished this using .htaccess?. Your help in this will be highly appreciated. Thankyou, syed. | |
Hi everyone, I need to parse a text file based on a few delimiters. There are 2 problems I am having. I'll start with the first problem. I have no problem using the split () method to parse text by a single delimiter. For example: [CODE]String[] str = stringRead.split(":");[/CODE] However, … | |
i'm still working on the property to let program. and it sort of works... its just when the user selects to delete a line from it it will delete it fine, but it will then duplicate all the items that where previously in it... EG: My File looks like this … | |
I want to write an x86 AT&T assembly function that compare a char-array one caracter at a time. If two characters at the same index are unequal it's suposed to return -1, else return 1. I'm going to call this function in a C code. So the function-call would look … | |
Ok, Is there an easy way to do this: I want to take a string and convert it to a binary string with base of my choice and convert it back. So base 2 would be 1's and 0's, etc. example: [CODE=syntax] in_string = "testing" binary_string = string2binary(in_string, base = … | |
Hello assemblers :) . I am trying to sort a word backwards, like this: abcde -> edcba This is my code [code] section .bss aloc resb 10 %macro print 2 mov eax, 4 mov ebx, 1 mov ecx, %1 mov edx, %2 int 80h %endmacro section .data str: db 'abcde',10 … | |
HI I want to read Excel file from C#,below I menation the coding I use, I add Microsoft Excel 12.0 object library ,but Once I complie the coding it gave me error Meassage.The Error Meassage is 1."Type of Namespace for Application class Doesnt exsits" 2.Excel.Application.Workbook(object) is a method,which not given … | |
Hi guys, I have spent a morning working on this. Not sure if I will ever get it right. What I want to do is read a text file and based on list of constant values split the original file in two smaleer files. One of them to contain only … | |
HI, DOES ANY ONE KNOW WHAT IS THE RIGHT STEPS TO MAKE THIS FORM MAIL TO WORK? [B]HE IS THE CODE:[/B] 1. <html> 2. <head> 3. <title> send mailf from the form </title> 4. </head> 5. <body> 6. <?php 7. echo "<p> your name is: <b>$_POST[name]</b>,</p>"; 8. echo "<p> your … | |
hi, this is saif from pakistan. i have get a project to make a database on library management system.could u tell me that how many entities i can add in this data base.if u know pls reply me wid the names and how. thank u. | |
Hello everyone ! This mysql user management fcking damn BULLSHIT (i think we can state it) begins really to drive me mad.. I got a win 2003 server running mysql, somehow i lost root access from the localhost meaning that i'm actually unable to make a backup from my database, … | |
Can anyone tell me why i am getting error object invalid or no longer set.here is the code what i have written.any help would be greately appreciated. [code] Private Sub FillVendorList() Dim rs As New ADODB.Recordset, sqlQuery As String, i As Integer sqlQuery = "Select Suppliers.sup_id,Suppliers.Sup_name from Suppliers order by … | |
I woke up then realized "I want to learn ASP.NET" so I googled for ASP .NET tutorial and ended up at w3schools website. It says prerequisites are Windows Operating System, .net frame work, IIS, and a text editor. So I inserted my windows XP cd to install the IIS component, … | |
Hi, First of all am new 2 .net concepts. I want to retrieve the image details from the database and to display it in the screen. eg: 1. I have stored the img details as [CODE]<asp:Image ID="Image1" ImageUrl="imgs/Titanic.bmp" style="width: 88px; height: 64px" runat="server" />[/CODE] inside the db. 2.i used some … | |
ok i have vc++ and i am making a form app and i am putting a progress bar in it but how can i hide it for like x seconds. is there a function for it? or something which hides the object temporarily . Thanks | |
let say i need to create a cpu simulator and i need 32 registers, to make the demonstration i need 32 labels and let say i want those labels background color to be white, what should i do to avoid repetation of setting properties to labels? | |
I want to insert the image into database & Retrive the data back & display into DataGridView.. Foll is the code the inserts the image data into Databse-- [code] protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.PostedFile.FileName == null || FileUpload1.PostedFile.FileName == "") { lblErrors.Text = "Please Select the … | |
Hi guys, trying to get a day number from 1 - 366 for a specific date. I've been working on this for a while. I can't seem to figure out. I'm not asking for an answer, just a push in the right direction. So far here is what I have … | |
This is my next question: how to get a document from root? because I have this code: [code] myfile.open ("/home/ws14/Desktop/test.txt"); [/code] But I need to change the path home/ws14 if I change user. Thanks! | |
Hi Everyone, I have made one google checkout payment gateway integration in PHP in a shopping cart. But with which user id or merchant id i am using in that integration . when i am going to login with that google id . I am getting some error message there. … | |
In a code routine I receive strings like “04242009” and I need to convert it to April 24, 2009. I have played with several of the date conversion routines but I am getting no where. Help would be appreciated. Thanks! WBR | |
Hi I'm only new to C++ and need urgent help with an assignment that's due tomorrow. I know this is frowned upon but I'm really stuck and don't know what to do. Can someone please point me in the right direction with this question? (A) Read the first name and … | |
Write a program that uses inheritance to create various derived classes of runtime_error . Then show that a catch handler specifying the base class can catch derived-class exceptions? am i doing it rite this is my code : [CODE]#include <stdexcept> #include <exception> using std::runtime_error; class DivideByZeroException : public runtime_error { … | |
Hi guys : i'm new in programming, i'm reading c++ by dissection and for chapter 2 i encounter with a exercise that i can't solve it,please help me on it. the program is : Write a program that finds the maximum and minimum integer value of a sequence of inputted … | |
Hi all, This is a problem that has been holding me up for a while in Python. I frequently get issues relating to "global ___ is not defined" and cannot figure out what I'm doing wrong. Here is a coin-flip function I wrote: [code] def coinflip(): import random import time … | |
I am making a program that reads from a .txt file and outputs the names that are in my .txt file into an output file that the user specifies. My program compiles but then I get an error that says "int main(): Assertion `fin.is_open()' failed. Aborted" What am I doing … |
The End.