199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
What is the syntax to display the contents of a simple text file to a listbox? | |
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> … | |
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 … | |
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; … | |
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 … | |
[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(); … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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. | |
1) Could someone explain the difference between composite and inheritance class 2) Is there a composite class with inheritance? | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.