8,298 Topics
![]() | |
[code] int log2(int n) { int count = 1; while(!n >= 1) { if (n%2 == 0) { count++; n=n/2; } else { count++; n=n/2; floor(n); } } return count; } [/code] not sure why it isnt working? | |
I have built an application in V C# Express Edition, now in express edition there is only ClickOnce and we can not publish the application, i hav used Windows iexpress wizard to create the setup but in vain, so if anyone can tell me what should I do in order … | |
Hello, I'm learning to start to program in C++, and I have a problem with the prompt closing before the program ends. I know there's a lot of info about it, and I've googled it and searched here, but all the solutions to system("pause") don't work for me. I'm using … | |
I've created a program that will parse the log file generated by an MFP (Multi-Functional Printer). The program works fine when I parse a log file with less than 2000 lines, but when it reached more than 2000 lines (I've tried the log files with 8000 and 22000 lines), the … | |
I have created one login page named login.aspx. And one database named ADMIN. I have created one table named ADMIN and in that table there are two fields ADMINISTRATOR and PASSWORD. And I have put 2-3 records in it. When I click on login button, it should check in database … | |
I am just learning Datasets, and as luck ALWAYS has it can not start out simple. I am pulling from an ODBC file which can be connected to on the Dataserver or Table adaptor, but then they come in with no tables. So I am forced to work with runtime … | |
I got this assignment and the way it is worded is confusing to me. If anyone can explain it better it would be a great help also how to approach the problem Use a one dimensional array to solve the following problem. Read in 20 numbers, each of which is … | |
Hello, I have seen many problems that deals with big integers. I use C++ and it can handle only some digits. Can you help me on how to represent and use them? | |
Hii..! I am using C# for the first tyme and i dont have much idea of its syntax.. I hate to make an analog clock... I even dont know how to draw a circle and line in C#..I have made that all in C++...But i cant swtich that to C#.. … | |
In VS9, when i call the GetTickCount() function, it automatically converts it into the GetTickCount64() function upon compilation. This second function only works on Vista+, and thus my program errors when run on XP. I have tried adding the follow in 'targetver.h', but it did not make a difference: [code=c++]#define … | |
Write a program that accepts length measurements from the user, and also whether the length is in inches, feet or meters (use the following screen shots as a guide). Keep track of the total length in meters and report the total after each user entry as shown below. When the … | |
Hello, in my webbrowser object, the web page it loads has a java applet in it, when it loads all that appears is a grey box? I have java 1.5 Is there something im doing wrong? | |
Hi i start work with c# 2 week ago i'm an electronic engineer. i want send some data from mico to pc for monitoring how we can work with serial port in c#? thank you | |
After user choose ticket type(first class, business, or economy) and desired seat, for example row 2 A, the program will output the form: A B C D E F row 1 * * * * * * row 2 X * * * * * // now user chooses row … | |
I've looked around and it turns out there isn't a C++ version of the java instanceof operator. I've also found out that using instanceof is supposed to be bad, for some reason. So let me tell you why I want to use this instanceof operator so badly. I've got a … | |
I have a C++ app that uses the CInternetSession API to try and download a file across the internet. I want to authenticate before allowing any file downloads. Right now, the application should be passing the username and password using: CHttpFile->pFile->SetOption(INTERNET_OPTION_USERNAME) AND INTERNET_OPTION_USERNAME(INTERNET_OPTION_PASSWORD) Is there any way to connect this … | |
Hi all, Im writing a burglar alarm app, I need it to make a phone call to a specified number via dial-up modem. Thats the start, secondly I would like it to be able to talk to me when I pick up when its ringing me. Using System.Speech.Synthesis would be … | |
I am working on a code focusing on Inheritance in C++. I am getting some errors regarding the lines that read: [icode]void bat :: double travel_time (double distance, terrain_type t)[/icode] (lines 56, 68, 113, 125 in animal.h file) The others that begin with void penguin, mammal, and bird have the … | |
how do i exicute python scripts in a c++ program? and what uses would it have? | |
Hi, I am building a Email client. I want to retrieve mails from MYSQL Database stored in the server and display the mails in the Client user interface. Only 50 mails must be displayed per page. How can i do this ? Can this be done using paging in Data … | |
I'm working on a rather big program. Everything works fine:) , until I added this simple code: [CODE]int counter_x = 0; int* x = new int; for (int a = 1; a < plain_len; a++) //plain_len: int { int b = a; while ( b != 0 ) { x[counter_x] … | |
Hello Everyone. Having some problem with coding, and hoping that someone could help. I have a text file with input delimited by spaces. Something like this: TGP C 18 3.90 4737 JWW B 25 6.5 9630 Now I can open and read the file. Now I am trying to get … | |
Hello, I'm working on a school project, and I'm so lost i can't even figure out how to start it. What I'm trying to start off with is just a simple console application that gets these settings: program.exe [switch] [path] [filespec]. how can i accomplish this? This is what i … | |
Hi! I was hoping for some advice on how best to create a single doubly-linked list which could contain all of the different types of classes I have. This is the code I have written so far.... [B]shape.h:[/B] [code=C++] class Shape { public: Shape (int l=0, int h=0) : length(l), … | |
hi all i want a finger print simulator in c# can anyone help me | |
ok so i am going to be taking a c++ course next semester and was wanted to get better knowledge so i have a proble that i was givin that am having some trouble, just some pointers on where/how to start will be helpful... Im not sure how to set … | |
Hi I just finished reading C++ the complete reference by herb schildt (almost a quarter ago)so i feel i can program in c++ but i don't know what to write.could you give me some problems that their answers involve a lot of c++ features? thanks a lot | |
I'm a senior student in computer science and i'm doing a project on WEP password cracking, i found a pretty good paper on how that can be done but i reached a point that i can't understand! after i get the first character of the password, how do i get … | |
does anyone have a function laying around to secure delete a file from the hard disc with X passes of random data? ive been trying to find this code forever on google, and everything I have found has just been skimpy .NET programs | |
Hi there, Can any one help me, I am trying to import a wave audio file apparently I have to remove the header file or something like this can any one advised me please. | |
trying to write a program in C# that will take a DC voltage as an input into a PIC16F88 (18 pin). and will output 2 seperate voltages, to run two different motors. when the input voltage is greater then 1.5v it will output a small voltage to both outputs, and … | |
![]() | I am running into an issue that involves sharing an XSD2Code generated class. I am working with one huge xml schema that I generated into a class in a common class library. The problem I am facing is multiple applications will be referencing this common class but I want to … ![]() |
I have an assignment to submit tomorrow. It gives me compiling errors. About 62 in VC++ 2008 and 42 in VC++ 6. I have written this code in one single file and it works fine there. One error that I can think of is with the declaration of class variable … | |
Hi everyone. I am new to this web site. Found it while doing some research. My need is as follows: I am modifying a healthcare Practice Management System for a company in Jacksonville, Fl. and the client wants to be able to create basic BAR and PIE charts. There is … | |
Hi, a noob programmer just starting in C# with Visual Studio here.... I came across this while coding in Visual C# and I couldn't figure out anything about it so a little explanation would be greatly appreciated.... In Microsoft's Visual C#...when using Windows Forms for GUI..... You guys know how … | |
Hello All I am having some problems with a C++ class that i am taking and after looking around on the web I am still lost. The assignment that I am working on right now is as follows: [ICODE]Two numbers are entered in from the keyboard. If the larger number … | |
Dear all, Please help me in solving following query. I want to use Encryption and Decryption to add password to database and to retrive password from database. What is the code for this? Thanks and regards, Swapnil. | |
I am at work and did this program on notepad and not sure if this is correct or not. Can someone that has the visual studio compiler test this and let me know if it works. If it does no could you offer any minor feedback on the location of … | |
For this assignment you will write a wrapper routine for the LAPACK routine DGESV to solve the system of equations Ax=b (where A is a num by num matrix, and x and b are vectors of length num). A wrapper is a routine that reformats (or supplements) it's arguements in … | |
Hi Friends Wish U Happy New Year 2009 I Need Email sending Concept in asp.net If possible sent me some notes about email concept and sample codings.... Waiting for valuable Rply Thanks with vishnukumar SR | |
hi all, i have an c# GUI apps with i provide on CD but i dont want them to install Whole setup again and again. So i just want to give them the new datafiles as patch sothat they can update only the new and updated portion. But i dont … | |
Hi, i am creating excel using c# code. here is my code. Excel.Application XL =new Microsoft.Office.Interop.Excel.Application(); Excel._Workbook WB; Excel._Worksheet Sheet; Excel.Range oRng; Object objSaveAsFile = (Object)SaveAsFile(StrDocName,"Xls"); object objMissing = System.Reflection.Missing.Value; Excel.ChartObjects chartObjects = null; XL = new Excel.Application(); XL.Visible = true; //Get a new workbook. WB = (Excel._Workbook)(XL.Workbooks.Add(Missing.Value)); //Excel.Chart xlChart … | |
Hi, I'm new to C# and trying to develop this program that allows the user to draw freeform with the mouse on a panel. There are 2 groupboxes. One is called Color and it has 4 radio buttons: red, blue, green and black. The second is Size and has 3 … | |
Ok I am having an issue with a program. I am in C++ II but my issue is I have not taken C++ I in over a year so I am at a disadvantage...we are working on a program and this is the information we were given and this is … | |
Here is my code: [CODE] override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.cmdUpload.Click += new System.EventHandler(this.cmdUpload_Click); this.Load += new System.EventHandler(this.Page_Load); } private string strConn; OdbcConnection cnn; private void cmdUpload_Click(object sender, System.EventArgs e) { OpenDatabase(); if ((File1.PostedFile != null) && (File1.PostedFile.ContentLength > 0)) { // … | |
i want a way to do validations for a String (the text should contain only characters, and not _ @ or any number) .. i found a code that does validations for integers, but not for strings.. Please could u, send me the code to conduct validations for Strings,, i … | |
Hi guys, have a school project that i am working on but i am just running into this one problem. Well its not really a problem its more of a me just starting the c++ course and i just wanted to do something extra to get some more marks. We … | |
hello, can somebody tell me where i can download a free c++ video tutorial.....i really need it badly | |
Can anyone please help me make a program that does following: i enter first string then i enter the second string i.e. first string: "abcxyzefg" second string:"xyze" and the program should the write a new string without the second string in the first one i.e "abcfg" thank you |
The End.