199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anuragcoder

I have made the following code to find a string in some lines of text But it always mentions the error: no matching function for call to 'strcmp(std::string&, std::string&)' [CODE]#include <iostream> #include <string> #include <fstream> #include <sstream> using namespace std; int main(){ cout << "Please enter some text" <<endl; string …

Member Avatar for anuragcoder
0
655
Member Avatar for maria_mj

I have a gridview that was bounded to a drop down list. When a value is selected from a drop down list, the grid view will display only data that related to the value that is selected. But, data in the gridview cannot be edited. My problem is, i want …

Member Avatar for maria_mj
0
271
Member Avatar for donny008

Hello all I am a beginner in image processing and would like to know how i could get the coordinates of an image which is displayed in a window. I work on the visual studio platform to implement my c++ codes. Could someone help me with this please Thanks in …

Member Avatar for daviddoria
0
60
Member Avatar for mysticstylez

Hi, So, i have a list that contains some words. I need to read a text file and cross reference it with each word in the list. if that word occurs in the text file, i need to filter it out with "*". How would i go about doing that. …

Member Avatar for griswolf
0
3K
Member Avatar for coop123

Hey Everyone, This is my second post so bare with me. I am trying to get some format exceptions to the following text boxes. It's starting to get on my nerves. I just hope I'm somewhat close to the solution but here is the code. I feel like I could …

Member Avatar for coop123
0
116
Member Avatar for aaronmk2

I want to print out the letter B, instead I get a blank line. Any tips would be great [CODE] #include <iostream> using namespace std; void add(string n); int main() { string B; add(B); } void add(string n) { if(n.length() <= 1) { cout<<n[0]<<endl; } }[/CODE]

Member Avatar for aaronmk2
0
85
Member Avatar for cloudulous

Hello everyone, I'm having a hard time figuring out what is wrong with my codes. I have a set of arrays and I have to sort them in order to find the median. I made the function to find the median and I tried recalling the function but it keeps …

Member Avatar for cloudulous
0
329
Member Avatar for bobbyg118

I need help when i run the app. and enter the wrong answer "No. please try again " continues to loop forever . I want it to say it only once and repeat the same question. Any ideas? I thought maybe the braces were off somewhere but I'm not sure. …

Member Avatar for bobbyg118
0
83
Member Avatar for kristo5747

Greetings! I have an app that my users rely to update customer data in our local database. I want to add a "control" whereby a check for customer number is done to make sure it exists. I started with this simple script [code] <?php //variable declaration $customer_id = '257'; // …

Member Avatar for kristo5747
0
117
Member Avatar for fuggles

[code=php] <?php session_start(); $password = "password"; if($_POST['password']==$password) { $_SESSION['loggedin']=1; header("location:index.php"); } else { header("location:index.php"); } ?> [/code] That works fine in other browsers. But in IE, when you click the submit button the previous page it redirects you back, and not logged in. Internet explorer says something about security. Does …

Member Avatar for fuggles
0
87
Member Avatar for evak77

I have my program with my amoritization list in it, but I need to remove it and replace it with an array, which I also made up. The problem is that i am not sure how to remove the list, and add the array. Can someone tell me what the …

Member Avatar for evak77
0
199
Member Avatar for Rhap

[CODE]//Form1.h (Windows Forms Application) //.... //.... #pragma endregion cli::array <String^> ^sum; private: System::Void BtnComp_Click(System::Object^ sender, System::EventArgs^ e) { nocarrystate n; carrystate c; char a; states * curstate; states::init(&n, &c); String ^text1 = TxtBin1->Text; String ^text2 = TxtBin2->Text; curstate = &n; int i = 0; int len1 = text1->Length; sum = …

Member Avatar for Rhap
0
288
Member Avatar for jackhadding

Hello, I am attempting to write a program that will disable the Local Area Connection while leaving the Wireless connection enabled. My company is using net-books in our stores to demo air-cards and we need to keep them off of the LAN. I'm new to VB and VB.net, and it's …

Member Avatar for jackhadding
0
472
Member Avatar for malcomm

Hi I'm new to databases under vb.net although I've used them extensivley under VB6. I have a main form with a DataGridView on it. Thats connected to the following bits- _TWC_Viewer_SubmissionsDataSet, ViewerDataBindingSource, ViewerDataTableAdapterm and TableAdapterManager. All this was etup by the VB wizard. The database table is named ViewerData. This …

Member Avatar for malcomm
0
143
Member Avatar for termitis

hi!im a student and we have an exercise where we are asked to search for a client of our "bookstore" with interpolation search.The codes are saved in a Code[1000] matrix.The type of each code is like that: for example: AY568UTH or MLK1211 etc. Im new at programming and i dont …

Member Avatar for quuba
0
725
Member Avatar for xrunner

I have written a DLL which I intend to use in .NET and ASP.NET applications. I need to pass a Label (or TextBox) control to one or more methods. I can't make .NET recognize a Control as a parameter. Can anyone help? Thanks, Gerry

Member Avatar for xrunner
0
118
Member Avatar for rickymak

def info(object, spacing=10, collapse=1): """print methods and doc strings. Take module, class, list, dictionary, or string.""" methodList = [method for method in dir(object) if callable(getattr(object, method))] processFunc = collapse and (lambda s: " ".join(s.split())) or (lambda s: s) print [B][U]"\n".join(["%s %s" %[/U][/B] (method.1just(spacing), processFunc(str(getattr(object, method).__doc__))) for method in methodList]) if …

Member Avatar for d5e5
0
739
Member Avatar for bobbyg118

I am having trouble with generaetOutput function the void part is throwing me off. I tried to do it like the genrateQuestion function but the void part has me confused. Also my while statement is missing something because the error message continues to loop and if the user enters a …

Member Avatar for ctaylo21
0
106
Member Avatar for kacete

Hello, I'm trying to create a routine that processes the input from a 12 digit keyboard input and then display it on a 16x2 LCD display. I'm testing the reading routine with a simple output to an HEX display. Problem is that the value doesn't hold, it changes immediately back …

Member Avatar for kacete
0
243
Member Avatar for jdpjtp910

I am writing code for homework. It is an inventory program using a stack class and a inventory class. When I complile I get the following error: Below is my code thus far. Error 2 error C2512: 'InventoryItem' : no appropriate default constructor available c:\inventory.cpp 17 chapter18 Here is my …

Member Avatar for Narue
0
184
Member Avatar for jib

[B]############################### [COLOR="Green"]# PROLOG SECTION # hangman.py # Program to play the traditional game of hangman. # The computer picks a word and the player # has to guess it before he has made 7 wrong # guesses of letters in the word. # Each time the user makes an incorrect …

Member Avatar for jib
0
913
Member Avatar for judithSampathwa

hi there, i have two forms in my project, what i want is when i cilck the close icon on top of the form the login form should be displayed, how can i do this in C#??

Member Avatar for judithSampathwa
0
118
Member Avatar for gumby64

First let me start off with saying I am just learning PHP with smarty and am not doing this for any school/class assignment. I am trying to create an email form that allows a user to subscribe/unsubscribe from a mailing list. I can not figure out how to write the …

Member Avatar for diafol
0
165
Member Avatar for jskelly

I need to take 2 char strings (6 character date) (and (8 charachter operatror id) convert to uin32 to send over a bus to store by another processor. That processor later sends them back as uint32 and I need to conver back to char strings. Two files need access to …

Member Avatar for UncleLeroy
0
188
Member Avatar for Marty6

Hi, I'm a relative newb with wamp server and web development. I've been asked to take over the development of a website. when I'm accessing the site locally everything works fine. But when I upload the site to our online server and I try to access it remotely from another …

Member Avatar for etftw
0
111
Member Avatar for karuppg

Hi All, I am using microsoft nmake tool version 6.00 for my project. when I make changes in any of the .h files, the C files which includes the header file is not getting compiled automatically. Can anyone give some suggestions please? Thanks in advance!! -Karuppiah

Member Avatar for Banfa
0
252
Member Avatar for bryansworld

Ok so I'm a casual VB6 programmer and now I'm VBA for Access. In VBA I am trying to determine if whether an option button has been pressed. I used the 'Option1.Value' procedure yet it throws a 'You entered and expression that has no value' error. Here's my code: [CODE]Dim …

Member Avatar for dwel
0
112
Member Avatar for Sonic42

I'm looking for code that would help me check the user's internet connection. For example, when Button1 is clicked a MsgBox appears that displays either "Connected" or "Disconnected" based on whether they are connected to the internet or not.

Member Avatar for dwel
0
2K
Member Avatar for ayushi agarwal

struct start { int* i; int* j; }p; p.i = new getValue(); when i am printing the value of i it is giving address not the value. Please tell how to get the value.

Member Avatar for jephthah
0
101
Member Avatar for roneh96

I think I may have bitten off more than I can chew with this. I'm writing a program that will figure out the last position standing by continuously counting the positions using prime numbers till only one is left. [url]http://acm.uva.es/p/v100/10015.html[/url] is a link to the original problem. the code I …

Member Avatar for daviddoria
0
139
Member Avatar for dakaboguy

Hello, I am trying to connect a VB.NET 2003 Oledbdataadapter through the wizard to a SQL Server 2005 Database, but i get an error message during the wizard. These are my steps: New Connection, Select provider (Microsoft OLE DB Provider for SQL Server), Select Connection: server name, log on: use …

Member Avatar for dakaboguy
0
263
Member Avatar for umers56

i neez help manz. here is what i have so far: ------------------------------------ Dim x As Integer Private Sub cmdexit_Click() 'this will end the program End End Sub Private Sub picmario_KeyPress(KeyAscii As Integer) 'this will allow the user to use various keys to 'move mario 'this will move the mario up …

Member Avatar for umers56
0
194
Member Avatar for Java John needs

Any Java Gurus out there, I am now down to the wire on two projects and need assistance. I posted one of them yesterday and here is my final one. :eek: I need to figure out why I can not get the number of digits to count in my program. …

Member Avatar for Abdel_eid
0
153
Member Avatar for sandorlev

Hello! I'm planning to make an online program, actually it would only be a login system with GUI and a chat window after login. The client program would recieve some data from the server (like names, ages, etc). I don't want to use C++ for sockets, I want to use …

Member Avatar for dusktreader
0
244
Member Avatar for hinde

I need a tag that doesn't go anywhere when I click on it but will show the little hand with index finger outstretched like I am hovering over the text teh tag applies to. I googled for a while, but could not find anything related to what I am looking …

Member Avatar for SKANK!!!!!
0
2K
Member Avatar for Dewey1040

I'm writing a game where I create a map using ncurses. What I want to try and do(if possible) is make the map the size of the terminal, in other words in the main program I have: [code=C++] // Create a game on an 80x30 map Game gameInstance( 80, 30 …

Member Avatar for Dewey1040
0
299
Member Avatar for mystb

Hi, I need to find p,q and e values for RSA. Here is a simple & short description of RSA. [QUOTE]Your enter a word (actually it is a sentence but for now a word) then program will convert letters to numbers (like a=1 m=13 etc.) and group them. Use with …

Member Avatar for abhimanipal
0
202
Member Avatar for goulda660

I'm haveing trouble with this program I don't know what the problem is because my compiler says that their isn't one but the console says their is but it wont give me lines my code is very long too. [ICODE] #include <iostream> #include <fstream> #include <vector> #include "Clear.h" namespace fun{ …

Member Avatar for goulda660
0
212
Member Avatar for riotburn

Hi, I have written a program for reversing a digit but I get "error C2664: 'strcpy' : cannot convert parameter 2 from 'std::string' to 'const char *' Which I don't get since strcpy is supposed to change a string to a char array. Any clues for whats going on here? …

Member Avatar for riotburn
0
328
Member Avatar for Eregnon

I'm trying to use the web request class in vb.net to post some xml. On the reciving end, I keep getting an internal server error with the message: Missing Soap action header". I did some reasearch and saw that a firewall can strip out the soap action header so I …

Member Avatar for kronald
0
2K
Member Avatar for john_john

I came across a design in which there are different projects for the methods and data. [B]Example 1[/B] What I meant is normally, if we have a USER class then [code] class user { int userid; string username; //methods public void Adduser(int id, string Name) { } public void RemoveUSer(int …

Member Avatar for Ketsuekiame
0
123
Member Avatar for mickmos

hi i have to finish my assignment by tonight and am stuck when trying to make a regular expression that splits a big slab of text into sentences. I am using the .split() function and want it to split on '.' , '?' , '!' , and '\n' but also …

Member Avatar for ~s.o.s~
0
135
Member Avatar for DrkNite

OK not the greatest title but this one is not too easy to put in a few words i have a jpg file for example with a custom file extension of jjj for example now i associate .jjj with my application so that when i click a .jjj file my …

Member Avatar for DrkNite
0
135
Member Avatar for HITMANOF44th

i have tried shell_exec system exec i want to run a command like maybe im missed something if you want my code ill post it but the other command i run to ocr the item works fine im banging my head and its probly something simple mv -f .*tif /somewhere/

Member Avatar for etftw
0
124
Member Avatar for ChargrO

Hello, i was just wondering how i could make these buttons appear on the screen in the same position, but so the code is simpler and easy to use. [CODE] ## Screen design draft for major project ## Filename: majorProjectDesignDraft20090222.pyw ## import os from Tkinter import * import tkFileDialog class …

Member Avatar for sandorlev
0
245
Member Avatar for nergz

iam student in uni, need to know how to write a program for a game that has lucky number and unlucky number in two dimentional array which consists of 25 cells... please help me!

Member Avatar for ctaylo21
0
79
Member Avatar for Cap'nKirk

Hi, my app creates some components at runtime such as a PictureBox. Because they are only created at runtime I have no way of setting the ErrorImage through the properties section. I thought I could just add the images I required to the programs resx file but found out that …

Member Avatar for Cap'nKirk
0
262
Member Avatar for ims@123

Hi... How can i call a c function for e.g say rounding decimals in Netezza.As it is possible in Netezza with a external C routine but don't the way to proceed.Can anyone please help me out.....??

Member Avatar for abhimanipal
0
72
Member Avatar for ammycoe

hi, i want to make a car race game but i don't get the idea for moving the user car and opponent's car..... Can you suggest me :icon_confused:?

Member Avatar for ctaylo21
0
97
Member Avatar for Emmnauel

i am a new to php, am trying to get the code below to work - i am getting it is returning resource id#14 Please bail me out file 1 [code] <table> <tr> <td width="245" class="style8"><?php echo "<b>".$database->getLastPoems()."</b>"; // Echoes: string echo $result; ?></td> </tr> </table> [/code] file 2 [code] …

Member Avatar for nav33n
0
737

The End.