8,298 Topics

Member Avatar for
Member Avatar for timb89

[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?

Member Avatar for timb89
0
123
Member Avatar for sid.coco

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 …

Member Avatar for JerryShaw
0
121
Member Avatar for phouse512

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 …

Member Avatar for phouse512
0
105
Member Avatar for everard

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 …

Member Avatar for tux4life
0
100
Member Avatar for aashil

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 …

Member Avatar for irishlonewolf
-2
193
Member Avatar for wendas

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 …

Member Avatar for wendas
0
157
Member Avatar for neox183

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 …

Member Avatar for Ancient Dragon
0
74
Member Avatar for mimis

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?

Member Avatar for tux4life
0
252
Member Avatar for asme

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#.. …

Member Avatar for ddanbe
1
289
Member Avatar for mikey123

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 …

Member Avatar for mikey123
0
111
Member Avatar for eforry

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 …

Member Avatar for smart7
0
117
Member Avatar for scrypt3r

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?

0
55
Member Avatar for mortezabazrafsh

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

Member Avatar for ddanbe
0
81
Member Avatar for YingKang

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 …

Member Avatar for YingKang
0
3K
Member Avatar for AnGuRuSO

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 …

Member Avatar for AnGuRuSO
0
885
Member Avatar for zach175

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 …

0
47
Member Avatar for metalla_nz

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 …

0
73
Member Avatar for danielle23

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 …

Member Avatar for danielle23
0
237
Member Avatar for tomtetlaw

how do i exicute python scripts in a c++ program? and what uses would it have?

Member Avatar for Duoas
0
109
Member Avatar for kashyapanirudh

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 …

Member Avatar for ddanbe
0
90
Member Avatar for C++ Obliviator

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] …

Member Avatar for C++ Obliviator
0
595
Member Avatar for Technosapo

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 …

Member Avatar for Ancient Dragon
0
127
Member Avatar for Argo54325

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 …

Member Avatar for Argo54325
0
161
Member Avatar for Carrots

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), …

Member Avatar for Intrade
0
126
Member Avatar for zeeshan_kust
0
46
Member Avatar for snap!

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 …

Member Avatar for rahul8590
0
94
Member Avatar for massivefermion

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

Member Avatar for ithelp
0
147
Member Avatar for BO2LA

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 …

Member Avatar for ithelp
-1
119
Member Avatar for shea279

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

Member Avatar for ArkM
0
691
Member Avatar for jspeakers

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.

Member Avatar for jspeakers
0
83
Member Avatar for 2009march

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 …

Member Avatar for ddanbe
0
131
Member Avatar for madhatter84gn

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 …

Member Avatar for madhatter84gn
0
95
Member Avatar for xcruiser

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 …

Member Avatar for seanhunt
0
1K
Member Avatar for StillCrazy

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 …

Member Avatar for Ancient Dragon
0
98
Member Avatar for Joka527

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 …

Member Avatar for bcasp
0
172
Member Avatar for kuru225

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 …

Member Avatar for kuru225
0
169
Member Avatar for Swapnil Palande

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.

Member Avatar for Yanivhl
0
347
Member Avatar for Azurkan

So A friend and I are new to C++ and we are trying to create a sudoku project and are trying to figure out different ways to do so. Right now we are stuck at the repetition checking. I was wondering if anyone could help us out?? We are trying …

Member Avatar for nucleon
0
100
Member Avatar for jimjohnson123

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 …

Member Avatar for nucleon
0
151
Member Avatar for nito28

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 …

Member Avatar for StuXYZ
0
134
Member Avatar for srvishnukumar

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

Member Avatar for greeny_1984
0
169
Member Avatar for manjusaharan

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 …

Member Avatar for manjusaharan
0
109
Member Avatar for born2achieve

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 …

0
52
Member Avatar for blondie2007

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 …

Member Avatar for hkdobrev
0
1K
Member Avatar for jimjohnson123

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 …

Member Avatar for VernonDozier
0
131
Member Avatar for hwa

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)) { // …

Member Avatar for hwa
0
159
Member Avatar for localp

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 …

Member Avatar for ddanbe
0
83
Member Avatar for cruisx

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 …

Member Avatar for computercobra
0
832
Member Avatar for shevy24

hello, can somebody tell me where i can download a free c++ video tutorial.....i really need it badly

Member Avatar for Spanki
0
213
Member Avatar for billgone

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

Member Avatar for Mazzin
0
81

The End.