8,298 Topics
![]() | |
I am trying to make a calculator in C++ but I keep running into errors. Please help me. Here is the code: #include <iostream> #include <cmath> #include <string> using namespace std; int main() { //what the variables are double calculation; double sign; double number1; double number2; //the questions cout<<"Enter a … | |
I do not understand were I went wrong. 1st is this line: (it is saying that this (;) Error: excepted an expression) 2nd is this line: cout<<"\nRadius is " << radius << set(8)<< "PI is" <<PI; something is wrong with the second (<<) // Program illustrating the use if #defines … | |
I am using LINQ in my project. I have tried using update query. But this is not working for me. Please any body help me. Did I need to change any settings of my database? or for the datacontext? My code is as follows: here dc is the datacontext, getinteger() … | |
i tried to create a dll using c# and now i have something like this I have 5 files Extension.cs, Encryption.cs, MySQLQuery.cs, etc. and in my MySQLQuery file i have somthing like this using System; using System.Data; using System.Text; using MySql.Data.MySqlClient; namespace gLibrary { public class MySQLQuery { protected internal … | |
alignas (since C++11) alignof (since C++11) and and_eq asm auto(1) bitand bitor bool break case catch char char16_t(since C++11) char32_t(since C++11) class compl const constexpr(since C++11) const_cast continue decltype(since C++11) default(1) delete(1) do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable … | |
HI, I want to implemtna a file & filter architecture for reading data from a txt file and then removing the non alpahbatical words in it and display the 20 words in alphabatical order in the Consol window. how do i do it. appreciate a reply, thanks | |
can c connect with database like mysql,access or sql server ? | |
Hi how do i create a final variable string and send in one parameter to it public static string POISON_PILL = new string("AAA"); when i do this it gives me an error highlighting the 'new string("AAA"); ' error msg: initalizes a new instance of the system.string class to the value … | |
How to print portion of the List<int>, it contains 30 elements but i only want to print first 7 elements? List remains unchanged but is should only prints first 7 elements of the list | |
How do I do a get/post for an array in c#? In C#, you get and set variables like this: `public int ID { get; set; }` How would one get and set an array in C#? This will not work: `public uint [5] BIG_Hash {get; set;}` | |
Hey Guys! I wonder how to put a texture on a specific position in DirectX. for example: I want a function that allows to set a Texture on an 2D Position and set the width and height like this pseudo funktion: x y w h DrawTexture(pDevice, 25, 25, 200, 100); … | |
Hey guys i am having a small problem with this calculation in bold: **amtwon = (pow(pbet,2) / pow(pbet,2-100 *pbet))** ; amtlost = ( 0.35 * pbet); totalwin = (amtwon - amtlost); this is the block of code.the problem is **amtwon** totalwin is supposed to return a value of 23.993.18 but … | |
Hi, Please help me with home work: c# highest and lowest value of 6 inputs. | |
Basically the program is a database of student enrollments. I cannot get the the search delete/undelete and update functions to work and need help asap. Need to implement a bool field to the delete / undelete Please help #include <cstdlib> #include <iostream> #include <iomanip> #include <conio.h> #include <fstream> using namespace … | |
Hi, I am writing code for connecting to an access database in my windows 7 machine. Am using visual studio 2010 with access 2007. While debugging the code am getting the exception **"The 'Microsoft.Jet.OLEDB.4,0' provider is not registered on the local machine"**. Below is my code, Try connection = New … | |
hi i am a php developer. i am working as a beginner. but now i have got a project in C#. i have practice of writing sample code in C++ so i think C# will not be that tough. but i dont how to use it to make a desktop … | |
Hello All, I am writing an image processing application in C# that needs to be speed optimized for faster performance. I have been told that using Unsafe Code together with Pointers can speed my algorithm up significantly. Unfortunately, I have no experience with Pointers at all. How can I make … | |
Hi friends i had a assignment to make this c++ program output f e d c b a e d c b a d c b a c b a b a a i have created this program using this code # include <iostream.h> # include <conio.h> void main(void) { … | |
hi, actually I am learning C from past 1 year now and have learnt alot in C. I have read many many books and have solved alot problems in C. now, i am thinking so as to do some kind of project in C/C++. can anyone suggest me some kind … | |
Hi I am trying to write a small C++ program using nested loops so that when the program executes I have the following output displayed [code]** **** ****** ******** ********** ************[/code] Here is the code I have written. I seem to be having a problem with proper loop execution. I … | |
i wrote this program it c++ in response to this question "total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk (which will need to be a value rounded up to the nearest integer), the cost of producing the milk … | |
i have a datetimepicker with format dd.MM.yyyy.. when i have, for example, date 14.02.2011, save it and then want to enter 31.12.2011 then datetimepicker validator doesnt allow me to enter 31 because of month 02 inside, so it set automatically 29 in the datetimepicker. in this case, i have to … | |
# include<stdio.h> # include<conio.h> void main() { int s1[10],s2[10],s3[10],total[10],per[10],i; char name[20],pid[10]; clrscr(); printf("==================== Marksheet ======================"); printf("\n\n\n"); for(i=0;i<3;i++) { printf("\n Enter your name:"); scanf("%s",name[i]); printf("\n Enter your PID:"); scanf("%s",pid[i]); printf("\n Enter your Subject1:"); scanf("%d",&s1[i]); printf("\n Enter your Subject2:"); scanf("%d",&s2[i]); printf("\n Enter your Subject3:"); scanf("%d",&s3[i]); } printf(" \n ===================== RESULT OF MARKSHEET … | |
Why is C++ on linux basically C? I've tried everything to avoid C on linux but it's simply near impossible. I've tried to stick directly to the standard library but I somehow find myself using dirent.h, types.h, etc.. Is there any other ways to do these other than using C … | |
I've figured it out but I want to know HOW. When I do code I try and figure out the math behind it on the side so I know exactly what is going on. But this time has stumped me. I know what the code is suppose to be, so … | |
![]() | //==============================================================================// // RPS (Rock Paper Scissors) // Author: SoulPour777 / Janrae Mendoza // A Simple C++ Game // =============================================================================// #include <iostream> #include <cstdlib> #include <ctime> using namespace std; string player; string player2; int wins; int loses; int roll; int draws; void error(); void gamePlay(); void Scene_Result_Display () { cout << … |
Hi everyone. My question is how to copy values of 2 arrays from one function into 2 new arrays into another function? Copy data from arraay1[i] into arraay3[8] and from arraay2[i] into arraay4[8] ? int onefunction(int araay[]){ ....... ....... arraay1[i]; arraay2[i]; } int twofunction(int araay[]){ arraay3[8] = {0}; arraay4[8] = … | |
Hi. Does anyone know how I can create a new printer port in C#? At the moment I've got this, which uses WMI (System.Management): [code=C#] ManagementClass portClass = new ManagementClass("Win32_TCPIPPrinterPort"); ManagementObject portObject = portClass.CreateInstance(); portObject["Name"] = portName; portObject["HostAddress"] = "174.30.164.15"; portObject["PortNumber"] = portNumber; portObject["Protocol"] = 1; portObject["SNMPCommunity"] = "public"; portObject["SNMPEnabled"] … | |
i want to display hindi text in label but there is no option of hindi font in the font property of label ? | |
I am rewriting an internal Coldfusion app that stores passwords in the database using Encrypt and Decrypt into C#. My Coldfusion code is using two parameters like this: `<cfset strDecrypted = decrypt(ToString(toBinary(strBase64Value)),"keycode") />` Where strDecrypted is the decrypted string returned, strBase64Value is the encrypted string in the database and "keycode" … | |
I'm learning several languages. 5 at once but I took a liking to one specific feature of java. The This keyword. From their tutorial: /*Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You … | |
Hi everyone! I have a problem with a program - game of craps. The game plays with 2 dice. On the first roll the player wins if the sum of the dice is 7 or 11. The player loses if the sum is 2.3 or 12. Any other roll called … | |
Does anyone know how to do this? I attached a program that collects all the command line arguments into a map container noting how many times each command line argument occurs. Now I want to sort this map of information by loading a vector with iterators that point to each … | |
Hello, I am facing a problem in creating setup project in C# window applications. Actually I have made two pojects, one fee managment system and library management system. In library management project i have merged the fees management project, so that i can reuse Student entry and updation forms in … | |
Ok lets say i have the following xml file <Users> <User> <Name>Jonathan</Name> <Tests> </Tests> </User> <User> <Name>John</Name> <Tests> </Tests> </User> </Users> Im writing a C# program, and what I want is to search for a specific name(eg Jonathan) and add elements and values to that specific tag in my xml … | |
This tutorial is about extension methods in c# **What is an extension method** Sometimes it is necessary to add functionality to a library for which you do not own the source code and where using inheritance to subclass functionality is not viable. This problem can be overcome with the careful … | |
I created a UserControl that contains a custom ToolStrip Control. While using the UserControl throughout an application, the ToolStrip control cannot be accessed directly, as logically it's embedded in the UserControl. So, to access the items of the ToolStrip I defined a readonly property in the UserControl class that returns … | |
Is it possible to send a variable from a console C# app to a C# script? | |
Bought a book in the Head First series about C#. The command to output text that they keep using in the book is MessageBox.show("text"). However in order to work for me I need to do Response.Write("text"). Is this because I downloaded Visual Web Developer instead of Visual Studio? The project … | |
PDF's Full of Images only. Open one in note pad, delete a few lines and close it again -- Effectively Breaking your pdf file. You can still open it, but all your pages will be blank with maybe a scribble at the bottom somewhere. Now... How do you check if … | |
Program Does Numerical Integration For Data Sets Located in an Input File. The Code has to be All C language no C++ Paste Bin Link to The Full Code http://pastebin.com/NRVDqxdj Could Someone Help Me With This: Calculate the total area under the curve for this data set, starting with an … | |
Hi there guys I am encountering another problem with my code, it says Error: 'Francis.Form1.Dispose(bool)': no suitable method found to override. I have uploaded the screenshot of my problem, please help me guys I don't understand why I am encountering such problems and a fix will be very helpful. Thanks … | |
**Dudearoo** *Useing Code::Blocks* Hey Guys! ive got a question, How can you find a string and then print after it?? ive searched google high and low and came out with nothing. What i want to do is to read a string(StringONE) and see if an other string(StringTWO) is in that … | |
what is the correct declaration of a nullable boolean type? | |
Hello i dont know how to connect to a database in windows fprm application (in visual studio 2010) in C# | |
Hiii Alll I need to display a message to the user after clicking the button control. How to do this in c#.net? I could not find Msgbox() option as we hav in vb.net. can any one help me |
The End.