199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VBNick

hi, I'm using this bubble sort to sort the elements in my array right now, but I need something faster. [code=cplusplus] bSorted = false; while(!bSorted) { bSorted = true; for(int e = a_count - 2; e >= a_lbound; e--) { if(a_edges[e + 1].B < a_edges[e].B) { bSorted = false; tmpEdge …

Member Avatar for VBNick
0
179
Member Avatar for dampecram

Hello, the program I have creates a database and lets you update/add/delete any information you want about hardware items. My problem is.. after I exit the program, all the data is lost in the binary file. I need to keep a database in a binary file and update it everytime …

Member Avatar for Ancient Dragon
0
101
Member Avatar for filch

OK, now that I managed to insert data properly into a relational database using a linking table, I am now faced with pulling the data properly out of the database, a displaying it so it makes sense. As a recap, I have inserted user data into a data base that …

Member Avatar for filch
0
514
Member Avatar for sfrider0

I'm trying to get all the links from a web page. So far I have the page source stored in a string. I have done similar things like this in Java, using a string tokenizer. I've looked around trying to find something like this for C# but apparently it doesn't …

Member Avatar for dickersonka
0
82
Member Avatar for stealthmode

I have been trying to find a simple name and password tutorial that works and is easy to follow. Not having much luck. The name and password will be in a text file or mysql database which the user will be given, i do not need forgot password or email …

Member Avatar for PomonaGrange
0
136
Member Avatar for atman

hello., ny1 knows what is the data type for displaying hex numbers? i know that specifier is %x, but dont know what data type it is ex: 0xBCD thanx!

Member Avatar for devnar
0
88
Member Avatar for mr-cracker

Hello, I want to create my own script like [URL="www.anonym.to"]www.anonym.to[/URL] but with few additional features i want to use database, i believe its very easy to make but the problem i don't know php, i can write in visual basic and c++ but not php, What do i want?? to …

Member Avatar for PomonaGrange
0
159
Member Avatar for chunalt787

I the compiler is giving me the following error on the constructor of graph however it has been defined in the public section. Error [CODE]/tmp/ccku0faq.o: In function `Graph::Graph()': Main.cpp:(.text._ZN5GraphC1Ev[Graph::Graph()]+0x39): undefined reference to `AdjacencyMatrix::AdjacencyMatrix()' collect2: ld returned 1 exit status [/CODE] Here is my code [CODE=CPP]class Graph { private: vector<Node*> nodeList;//list …

Member Avatar for chunalt787
0
181
Member Avatar for awthein

Hi, I have a windows service running in my own service framework. Currently, the service can be stopped by using SCM API by sending SERVICE_CONTROL_STOP control code. What I want to do is that the service will ignore the control code unless there is a registry key set (that will …

Member Avatar for Murtan
0
212
Member Avatar for brokencalc

Ive been trying for a while to make a calculator in Microsoft Visual Web Developer 2008 Express but cant figure it out or come close. I have all the buttons set up and ID as Button1, Button2,etc. Same with the add,minus,divide,multiply buttons. The tricky part is theres 4 labels and …

Member Avatar for brokencalc
0
151
Member Avatar for slimjimmer

Hey, I'm really stuck on a program I have to make for a class. We have to integrate f(x) = cos^2 (x). We are given a file with values of x and corresponding values of f(x). We have to use a while loop to do the following sum: sum to …

Member Avatar for slimjimmer
0
128
Member Avatar for konczuras

Hello Everybody! I have a simple question: where can I get or set a control, which is in a template field? I have a gridview, and I've created a templatefield in it, with a textbox inside. I want to use the data typed in that textbox, but I don't know …

Member Avatar for konczuras
0
135
Member Avatar for Stefano Mtangoo

I enter first time and works fine, but second time? Boom, it fails! What is wrong Best regards: [CODE=python] #Global values #key is ID/name and value is cost product = dict() identity = dict() #Function to check and add product and its ID def get_prod(): #anything can be a name …

Member Avatar for Stefano Mtangoo
0
72
Member Avatar for smart_pc

using c in making operating system needs to have a platform on which its compiler will run and so its executable file too. So now how to run the c file made in c on a bare machine without any platform. some of you suggested to go for assembly coding …

Member Avatar for dickersonka
0
311
Member Avatar for bpacheco1227
Member Avatar for bpacheco1227
0
107
Member Avatar for JackDurden

Im trying to count the frequency of words from a file and cant seem to get it to work. My frequency function recognizes the word is there but doesnt return a count for each word yet. The text file would just hold a bunch of random words...please help. [CODE]#include <string> …

Member Avatar for cikara21
0
209
Member Avatar for tylermaudlin

I have an application where the user is required to log in running on asp.net 2.0 I have added .doc and .pdf to the application extensions area so that outside users cannot go directly to the .doc or .pdf file without logging in. When I click on a .doc or …

Member Avatar for tylermaudlin
0
65
Member Avatar for vimalfor5

Hi All, Please help me to complete the following type of event handling in asp.net with C# [CODE=C#] private TableCell CreateTextCell(string name,string id) { TableCell cell = new TableCell(); TextBox txt = new TextBox(); txt.ID = id; txt.AutoPostBack = true; txt.Text = name; txt.TextChanged += new System.EventHandler(this.txt_Changed); cell.Controls.add(txt); return cell; …

Member Avatar for serkan sendur
0
132
Member Avatar for Lukezzz

I have a general question. Is it possible to write a C++ program that can detect specific frequency tones, like 1 Mhz, 2Mhz 3Mhz etc... Until now I have written standard code in C++ both native and mangaged and can manage the most components etc.. so I have a very …

Member Avatar for Lukezzz
0
187
Member Avatar for Nickyu0712

[code] #include <string.h> class ITEM //here i get the error { private: int price; char name[ 21 ]; int efatr[ 4 ]; public: void setName( char* newname ); void setPrice( int newprice ); void setAtribut( int x, int ef ); ITEM() { name = "Player"; price = 0; } ~ITEM(); …

Member Avatar for Nickyu0712
0
335
Member Avatar for raziane

hi , there is problem with saving web pages using IE7 when users save pages of our web application in IE6 they have no problem and they can view saved page correctly , but when they save pages using IE7 , the page is corrupted and could not be viewed …

Member Avatar for raziane
0
100
Member Avatar for mot1on

Hi I'm trying to extract certain parts of each line of a text file. An example of the lines is as such: [text] [number] [text] [number] [text] [number] ...And so on. I would like the text and number from each line as a separate element in an array of strings. …

Member Avatar for Teme64
0
213
Member Avatar for freelancelote

Hi, here is my problem: I'm writing a small program that needs to read a text file and write the words of this text as a list. I could only come up with the little piece of code I wrote below and it's not even working. I believe the problem …

Member Avatar for cikara21
0
139
Member Avatar for pokahantos

Hello all, I have a very stupid problem... unfortunately i can not find any way to solve it.. I am using JDeveloper to design & implement JSP page.. I have an input field "text field" where the user enter his name.. I wanna check if the text field is empty …

Member Avatar for pokahantos
0
165
Member Avatar for PieterN

I'm new to c++ programming and use it to program a microcontroller. Since memory is limitted (only 12 kb), I'm looking for a way to reduce memory usage when using some large arrays with floats that are constants. Is it possible to somehow write these arrays to ROM without them …

Member Avatar for Salem
0
82
Member Avatar for Nighthawkspt

Hi I'm currently working on a project that involves a carwash simulation. At the moment I'm stuck on sending a car object from the car class I created to another program. I am using udp for the sending of data for this project. I've googled how to do this with …

Member Avatar for Nighthawkspt
0
163
Member Avatar for AutoC

Hi, In an assignment I'm supposed to introduce packet errors and bit erasures in the packets.packet errors I can do.Bit erasures mean we have no idea if its a 1 or a 0.how can I introduce something other than a 0 or a 1 in a bit?

Member Avatar for Salem
0
161
Member Avatar for kim_ray

hi all, i am developing a desktop application which is interact with the server in every 1 min and server return a updated xml feed.when i login into my application it minimize into the system tray i want to show the updated feed in a notification message box that is …

Member Avatar for LizR
0
68
Member Avatar for T'Scoopz

1) How can I use fscanf to read only the first character of each word in a text file? 2) How can I use fscanf to read only alphabets in a text file? - I tried %[a-zA-Z], but that doesn't work for some reason.

Member Avatar for Salem
0
74
Member Avatar for Jason123

1) Could someone explain the difference between composite and inheritance class 2) Is there a composite class with inheritance?

Member Avatar for Alex Edwards
0
795
Member Avatar for ariesangel

hi. i m making a letter lasso game. i have been completed everything in it but i have a problem after shiffting the word when i push the new letter in a empty place. pls any one can help me for this. as soon as possible.

Member Avatar for Ezzaral
0
75
Member Avatar for minas1

Hi, I'm studying operator overloading through [B]C++ the complete referece[/B] and I've got some questions. In the book, the author writes this: [code=C++] loc loc::operator++() { ++longitude; ++latitute; return *this; } [/code] This creates a new object and returns it. [B]1.[/B]Wouldn't it be more efficient to return a reference? [B]2.[/B]This …

Member Avatar for minas1
0
164
Member Avatar for sisse56

please help me by doing the following program. I want to feed 80 students name,gender and CGPA.and want to sort in two cases.case 1 sorting with respect to their name case 2 sorting with respect to their CGPA. I would stat it like this. ******************************* #include<iostream.h> void main() { char …

Member Avatar for sisse56
0
1K
Member Avatar for mastr924

What is wrong with my code? It repeats the "Enter the next row:" statement more than once for each time its executed. And the characters turn in to brackets. [code] /* * File: fill.cpp * ----------------- * This program gets the perimeter of a closed shape * as an input …

Member Avatar for Lerner
0
111
Member Avatar for raziane

hi i dont know if here is the true palce to ask this question , but i have a strange problem , i work as a web developer in a news agency some of our users report that when they click on a link to a specified news , completely …

Member Avatar for raziane
0
266
Member Avatar for I.odine

Hey everyone - Im new here. I appreciate any and all help you guys can provide! this is driving me crazy, and I am still wet behind the ears when it comes to asp.net. I have 2 pages, index.aspx and downloads.aspx. There is a form on index.aspx that on submit …

Member Avatar for serkan sendur
0
189
Member Avatar for kevintse

hi, everyone, i am new to C++, i tried implementing a String. and i need your help, i want to know what to improve for this class regarding performance, or everything else you think i should pay more attention to when implementing such a class for general use(of course, i …

Member Avatar for ArkM
0
127
Member Avatar for sambafriends

Hi, the concept of the program is enter a piece of text from the keyboard and place that piece of text into a file [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> void main() { FILE *fp; char s[80]; fp=fopen("new.txt","w"); if(fp==NULL) { printf("unable to open file"); exit(1); } printf("enter new line of text:\n"); …

Member Avatar for devnar
0
135
Member Avatar for Traicey

Guys I need to upload an image on SQL server 2000, I dont want a C# or VB code for that I just wana know if it is possible to just upload a picture straight to SQL server without the insert statemt coz I have loads of images I need …

Member Avatar for Ole Raptor
0
147
Member Avatar for murderotica

Hello there, after days of researching I finally managed to finish my dragging and dropping of mail items in MS Outlook. But I have this annoying pop up thing in MS Outlook, a security pop up that grants you access from the range of 1-10mins so that I can drag …

Member Avatar for dickersonka
0
881
Member Avatar for sds234

I have no idea ho to write a program for this problem and i am new to C++ so I really needhelp!! Consider the following file called "raw_points.txt". The first line of this file contains a count of how many pairs of coordinates are specified in this file. The remaining …

Member Avatar for StuXYZ
0
142
Member Avatar for krany18

hai friends,, i am new for the project development. i am developing a application like naukri/monster. i created the tables like employeename,phonenumber,skills,technology,role,work experience,location like that i am taking attributes. my boss said " to create the database like each table for name and first name,lst name like that.. please send …

Member Avatar for Traicey
0
126
Member Avatar for Yuruke

Trying to create a hash table class that is basically like a spell checker. The header file seems all good but the implementation i'm having issues with. Primarily the insert function keeps vomiting on me when i try to compile. Basically complaining about my iterators being wrong??? Anyways, here's my …

Member Avatar for StuXYZ
0
159
Member Avatar for shaybery

This regular expresion is not good !!! --------------------- if ($line=/(.*)=(.*)(#+.*)/){ my ($val,$key,$comment)=($1,$2,$3); print "Match line : key($key)=val($val) c($comment) \n"; } --------------------- Example os inputs and the wanted output : a=b #c => key(a)=val(b) c(#c) a=b => key(a)=val(b) c() a="b#" => key(a)=val("b#") c() a="b#"#ff => key(a)=val("b#") c(#ff) a="b"#"#ff => key(a)=val("b") c(#"#ff) …

Member Avatar for mattjmorrison
0
102
Member Avatar for olive08

Hello everyone: I am designing a database for a web application. The idea is user should able to pick a restaurant by enter restaurant name, category(American, Chinese) etc I currently have two tables: user table and restaurant table. I have adminID as a primary key in user table. I used …

Member Avatar for timothybard
0
174
Member Avatar for Laidler

ok heres my code [CODE]import java.util.Scanner; class TestTelevisionV3 { public static void main(String [] args) { Television tv = new Television (4, 8, true); tv.printImage(); Scanner myInput = new Scanner(System.in); String Input1 = myInput.next(); String s1="P"; String s2="C"; String s3="V"; String s4="Q"; do { tv.printImage(); System.out.println(""); System.out.println("Press P to turn …

Member Avatar for Laidler
0
121
Member Avatar for Stepes

Hi, I'm new here. I've got a problem with my project. I get the following link error in VS2008 [code]main.obj : error LNK2019: unresolved external symbol "public: __thiscall PSystemManager::PSystemManager(struct HWND__ *)" (??0PSystemManager@@QAE@PAUHWND__@@@Z) referenced in function "public: virtual bool __thiscall MyApp::OnInit(void)" (?OnInit@MyApp@@UAE_NXZ)[/code] main.cpp is for example this: [code] #include "./PSystemManager.h" bool …

Member Avatar for Stepes
0
341
Member Avatar for srvishnukumar

Hi Friends, Am New for Asp.net[vb & C#]...now am doing an mini project such as ONLINE SHOPPING[Computer parts]... i have no idea about Payment options I need details about CREDIT CARDS options[ Like as any bank] then tell me How can i design my form that options... plz Suggest my …

Member Avatar for ithelp
0
91
Member Avatar for larryperl

Hi , I am usinga code to connect to database. here is the code-- [CODE] <html> <head> <title>Obtaining a Connection</title> </head> <body> <h1>This Page Obtains a Connection to a Database and executes a query</h1> <% Connection conn = null; ResultSet result = null; Statement stmt = null; try { Class …

Member Avatar for javaAddict
0
112
Member Avatar for kevin wood

not sure if this is the correct place to post but here we go anyway. what i am trying to do is put a table inside a div tag held within a php page but it is not working. here is the code [CODE]print "<h4>There are $num_rows records.<P></h4>"; print "<div …

Member Avatar for kevin wood
0
292

The End.