199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SourabhT

[CODE] #include "stdafx.h" #include<iostream> using namespace std; class Base { public: virtual void fun() { cout<<"base"<<endl; } }; class Der:public Base { public: void fun() { cout<<"Der"<<endl; } }; void func(Base b) { b.fun(); } int _tmain(int argc, _TCHAR* argv[]) { Base b; Der d; b.fun(); d.fun(); func(b); func(d); system("pause"); …

Member Avatar for SourabhT
0
160
Member Avatar for highflyer8

I have seen the following in a abook: "The argument(s) of a method can be any type of object (as long as its class has been made available to the program), as well as the predefined default types of variable. For example, methods in our three-vector class are not limited …

Member Avatar for dkalita
0
265
Member Avatar for Joshua Kidd

Hello, I have a little question about Screen Video Capture. Does anyone know What the best SDK for video capture is, WME Sdk? or do I even need an SDK.

Member Avatar for Animal Mother
0
114
Member Avatar for badihi

Hello there, I'm not very professional in socket programming. I open a socket to the client and when connection succeed, I try to send a file. I read the file from the disk buffer by buffer and write this bytes on the NetworkStream object. Client receives this information from NetworkStream …

Member Avatar for badihi
0
91
Member Avatar for nore

Hello all! I want to make label beside label/etc. For example, after i clicked button then label appear beside its button , and after 5 second / less, i want to make the new label dissapear / erased . Visual Studio, vb.net Thanks Before :)

Member Avatar for nore
0
128
Member Avatar for ReaperUser101

Hi people , I have an easy question(but lack the knowledge in Delphi), I have a piece of code that i want to run but don't want to type it over for every time it has to be run (not very good coding then). Is there a way i can …

Member Avatar for ReaperUser101
0
90
Member Avatar for minimi
Member Avatar for winrycool1

When i finish my U.G at the rate i am going I don't think i will know anything.I want to know exactly what i should be knowing so that i can proceed with my graduate degree.Which languages are a must know,which data structure concepts i should know,should i be able …

Member Avatar for abelLazm
0
174
Member Avatar for Vindal

I need to be able to loop and get information for up to 10 "BankAccount" arrays, but when I use less than 10 it gives me garbage and I don't know how to fix it. Here is my Code. [CODE]#include <iostream> #include <iomanip> using namespace std; class BankAccount { private: …

Member Avatar for Vindal
0
171
Member Avatar for markdean.expres

I have been seeing a number of applications where the shortcuts for their buttons are just a single Alphanumeric key. I was just wondering if I could also do that in my applications. My button labeled Open for example, will be triggered if the alphanumeric key "O" is pressed. Is …

Member Avatar for Luc001
0
71
Member Avatar for coolest_987
Member Avatar for coolest_987
0
1K
Member Avatar for Wheaties

I'm not sure what the technical term for this is, so that's why I left the title as general as possible. So, I'm trying to write a program(in C) that will basically allow me to "customize" the size of an already defined array. This would be something done at the …

Member Avatar for WaltP
0
228
Member Avatar for Arjun_Sarankulu

My solution contain the app.config file which contains some key with corresponding values. When i am building the solution in the visual studio its runnning fine when m running the same appliction(.exe) on other machine its not taking value from config file giving [B]JIIT[/B]error 'object reference not set to an …

Member Avatar for Arjun_Sarankulu
0
124
Member Avatar for maybnxtseasn

im wanting to make a class called Log. with the template as follows class Log { private: std::ofstream outputFile; SYSTEMTIME systemTimeBuffer; public: Log( std::wstring error1 ); Log( std::wstring error1, std::wstring error2 ); Log( std::wstring error1, std::wstring error2, std::wstring error3 ); Log( std::wstring error1, std::wstring error2, std::wstring error3,....... ); ......... ........ …

Member Avatar for mike_2000_17
0
116
Member Avatar for AODfan

The program is supposed to pull in data from an input file and sum numbers and not exceed 1000 and then stop, but it seems that my code is making it not calculate properly, it is less than it is supposed to be, but doesn't add to what is present. …

Member Avatar for AODfan
0
125
Member Avatar for maria_megha

Hi how can I replace "null" from being displayed with an empty string in a textbox on the JSPs ..depending on textbox data availability.. I tried the code [CODE]<% String phone=userInfoObj..getPhoneno(); if(phone==null||phone.equalsIgnoreCase("null")) phone=" "; %> <td > <input type="text" name="phoneno" class="txtBox" value="<%=phone %>"></td> [/CODE] but still it displays null can …

Member Avatar for maria_megha
0
184
Member Avatar for afaque01

Hey Every1.. Plz Tell me how can i access The Value In form1 in form2... Well i meant In Form1 theres an object named NUM in which i have Stored Few values Now i want to use this Object NUM in form2 so that i can display its value in …

Member Avatar for vanzhyme
0
9K
Member Avatar for NOVICE3

I am still struggling with my first program in C#. I need to first select a file from a directory, second, open the file, and third load an array with the contents of the file. This array will later be used to send bytes to an external device (a test …

Member Avatar for NOVICE3
0
403
Member Avatar for babydol

Hi I am new to programming in asp.net with c#. I am using visual studio 2010. I am trying to insert data entered by a user into the database. My code is as follows: [CODE] adsStudents.InsertParameters["Stu_ID"].DefaultValue = txtStudID.Text.ToString(); adsStudents.InsertParameters["Stu_Name"].DefaultValue = txtName.Text.ToString(); adsStudents.InsertParameters["Stu_Passwd"].DefaultValue = txtPasswd.Text.ToString(); adsStudents.InsertParameters["Stu_Prog"].DefaultValue = ddlProgramme.SelectedValue.ToString(); adsStudents.Insert(); //add a …

Member Avatar for babydol
0
111
Member Avatar for *Java*

how can I run an external program like ( word , notepad ,... )In C ? and how can I set a certain size of the window of the external program like ( 300 * 300 ) ?

Member Avatar for Ancient Dragon
0
294
Member Avatar for axman1000

I have 3 ASP list boxes. I would like to populate the second list box based on the selection in the first list box and based on the selection in the second list box, populate the third. I would like to do this using AJAX. How can I do it? …

Member Avatar for axman1000
0
1K
Member Avatar for ashrafu1

hello me and my friends were assigned to make a program that can add,delete,update and show information. we were able to make this code ( am sending u ) but we cannot solve some problem like the after adding or deleting or any other work the window does not goes …

Member Avatar for ashrafu1
0
484
Member Avatar for arunmag

Hi all, i am new to PHP. I want to learn more about PHP like website building and all other web related topics. I want good links or material for PHP. I am trying to build my own website and a small forum so I want tutorials, videos and online …

Member Avatar for the_one_9101
0
100
Member Avatar for chester1908

Heyz all.Im working on a program to add,sort,search etc contact struct (name last name number..).So i add structs and i sort them with qsort (i print the result,they are sorted).I have problem using bsearch(),it keeps returning NULL (so i see printed "not found"). The error must be something with the …

Member Avatar for chester1908
0
398
Member Avatar for failbot

Hello, I am creating an implementation of LIST that displays a list of 4 elements and also displays them in reverse. It seems to be correctly displaying the first list but I am getting a segmentation fault error before it displays the reverse list and I am not sure why. …

Member Avatar for arkoenig
0
85
Member Avatar for sdr001

Hello. I am trying to figure out why my program has an infinite loop :/ The program asks a user how many digits they want their numbers to be and then the program needs to print out all binary numbers for the user inputted digits. For example: User inputs 3 …

Member Avatar for sdr001
0
109
Member Avatar for WolfShield

Okay, I'll just post my code and see what you guys can make of it. I'm getting the error that the 'main' class could not be found, but as you can see I have it in the code. Thanks for the help! [code=java] package macey; /** * @author Mike */ …

Member Avatar for Taywin
0
396
Member Avatar for Puertorro

Hey guys, my Professor want us to come up with this code: Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This …

Member Avatar for Puertorro
0
124
Member Avatar for d0csss

#include <iostream> #include <cmath> using namespace std; class Rectangle { public: int width, height; Rectangle(); ~Rectangle(); double r_area(); double r_perimeter(); }; Rectangle::Rectangle() { width = 1; height = 1; } Rectangle::~Rectangle() { } double Rectangle::r_area() { return (width * height); } double Rectangle::r_perimeter() { return (2*width + 2* height); } …

Member Avatar for Chilton
0
90
Member Avatar for WildBamaBoy

I couldn't find anything that would do what I am trying to do with my client and server. Mainly, I want to click a button that will start downloading a file I select on the remote computer. Optionally I would also like to show the transfer rate, estimate time remaining, …

Member Avatar for agugglez
0
107
Member Avatar for markdean.expres

Guys I was just wondering if I could create a simple downloader created using VB 2008. The user will enter the complete address of a file from the internet, click the Download button then the downloading process will start. There should also be a button labeled "Paste" which will paste …

Member Avatar for markdean.expres
0
178
Member Avatar for jenius27

Hi, Im new to the windows .NET platform and I was wondering if someone can guide me. I have a c# program that implements an interface. Inside this program, I have a method where I get an array of processes running on the workstation and I look for a specific …

Member Avatar for agugglez
0
184
Member Avatar for dahaker

Hi guys im making this homework on a program that the user will input the time in seconds and it will calculate the velocity and acceleration based on these formulas. Ive tried to compile the program but im getting 2 times "an illegal else without matching if" now the error …

Member Avatar for dahaker
0
3K
Member Avatar for lochnessmonster

if a constructor OR public member function throws an exception, will the objects destructor be called automatically?

Member Avatar for mike_2000_17
0
100
Member Avatar for WolfShield

Hello everyone, I am trying to get an ActionListener to work in Java. On lines 310 and 312 it says 'cannot find symbol: variable calcDisplayF'. I am a complete noob when it comes to Event Handling so any help on this subject would be greatly appreciated. Here is the code …

Member Avatar for WolfShield
0
166
Member Avatar for bkimbriel

Hi, I'm currently working on a website for my dad that has dynamic fields (hit a button and an html template gets displayed). You can see the template in use here... [url]http://hbndev.com/ipad/index.php?option=com_content&view=article&id=5&Itemid=6[/url] As you can see it works, perfectly. EXCEPT for when you add a field it drops to below …

Member Avatar for Airshow
0
212
Member Avatar for waleed.makarem

Dear All , The question is simple , but may be It is very simple for me that I can not see it . I have two dataset , each with with table . each datasets is connected to a separate dataadapter to get data from sql server database file …

Member Avatar for Ranx
0
194
Member Avatar for chaosgeneration

Hey all, I'm currently working on a project that exemplifies matrix multiplication algorithms. My problem isn't working on the algorithms, but more of the structure of the classes. If any of you wouldn't mind looking over my code and helping me get a little more familiar with how things should …

Member Avatar for chaosgeneration
0
128
Member Avatar for mrjimoy_05

Hi guys, I have problem with my login script. I am using VB.Net (ASP.Net) to do that things. Here is the code: This is the code for Default.aspx page [CODE] User Name: <asp:TextBox ID="userID" class="txtbox" runat="server"></asp:TextBox> Password: <asp:TextBox ID="password" class="pwdbox" runat="server" TextMode="Password"></asp:TextBox> <asp:LinkButton ID="login" class="button" runat="server">&nbsp;Login&nbsp;</asp:LinkButton> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ …

Member Avatar for mrjimoy_05
0
815
Member Avatar for pseudorandom21

Is there a way to store binary code in memory (as a value) then execute it? For instance if I have an array of bytes I have filled with the binary code of say, a .exe, is it possible to execute it?

Member Avatar for gerard4143
0
3K
Member Avatar for newbieha

Hello I want to write a loop that quit the loop if the user hits Enter or there is negative number. this is what i have so far. it only quits the loop if user enter characters. [CODE] import java.util.Scanner; import java.util.ArrayList; public class loop { public static void main(String[] …

Member Avatar for newbieha
0
111
Member Avatar for mitrious

I'm implementing a bi-directional iterator for a class (a simple list that holds strings) ... the book I'm using asked me to do so ... (I'll have to implement a version of the standard list class afterwards) ... but my iterators just won't work... here's what I have my iterator …

Member Avatar for mitrious
0
161
Member Avatar for Cale93

Hello there, I'm struggling with my computing coursework in college and I though I'd ask here for help. My issue is simple but I can't get it right. I need to validate the text into a textbox and check that it contains ONLY alphanumeric characters, but it MUST contain both, …

Member Avatar for Cale93
0
3K
Member Avatar for m1234ike

Hello, I am trying to create an application that cleans the current directory i.e Cleanup/text folder >> test.txt and 2test.txt ect... I have two problems: 1st I cannot cleanup all of the Shortcut files i.e. Adobe.lnk ect... ########################################################################### Here is what I have so far for the .lnk files: [code] …

Member Avatar for Huntondoom
0
131
Member Avatar for desert564

Correct Sequence of brackets is always of primary importance both for written programs and mathematical expressions. By correct sequence we mean that for every opening bracket there is a closing bracket. The problem is to write a program that takes a random sized (size max 15) input of brackets from …

Member Avatar for jon.kiparsky
0
197
Member Avatar for ronin13378

Hey guys i have a contact form for my site working fine but when i receive the emails i get some unwanted texts(bold area) after the email section. name1: ryan number: 343244 message1: hey email: [email]ss@yahoo.com[/email] [B]clearField: [type Function] label1: NAME label2: E-MAIL label3: PHONE label5: MESSAGE countField: 5 arrayLabel: …

Member Avatar for kokoro90
0
137
Member Avatar for ndowd

I am trying integrate an upload system from YouSendIt.com in to my companies forms. The code they give for integration is basically an iframe with a coded URL set for the source. Their server sends a postback using HTTP Post method but I am not sure how to access the …

Member Avatar for ndowd
0
322
Member Avatar for Tazz-99

Hello, Have you seen the URLs with a "/" after the file name? EG: game.php/items I'm wondering how you can use this data after the "/". I'm assuming this is PHP as URL variables are PHP. any ideas? Thanks :)

Member Avatar for steelshark
0
94
Member Avatar for bertm81

Hi, I am new to python and am wondering is it possible to name a method after a variable. I know I can name a variable after another variable using [code=python] test = "temp" vars()[test] = 123 print temp [/code] this will print 123. so I was thinking something like …

Member Avatar for bertm81
0
222
Member Avatar for sirko

Here's the deal. I need program to read from text txt file and then write numbers into one file and letters into the other... I figured how to read and write to file (using iterators) but I can't figure out how to make the program sort numbers from letters. #include …

Member Avatar for sirko
0
246

The End.