8,298 Topics
![]() | |
I need help fixing this one error with my code. Below Im going to upload a piece of the code which im having problems with and the output error . [CODE]int main() { int vals[100]; fstream file; string line = "----------------------------------------------------\n"; string msg2 = " Please select an option from … | |
Taking the advice of one of my relatives, I'm learning c#. Now, I've come to understand that I learn best by tinkering and playing around with things, and if I have a problem in front of me, I will learn quickly. I understand programming basics well enough, but most of … | |
So this program is supposed to take in a sentence and output it with correct spacing and capitalization. -For example if I entered: heY, How are You doing? -the output should be: Hey, how are you doing? The program runs fine, I just cannot get it to output. [CODE]#include <iostream> … | |
hi everybody! :) I have 4 tables in my mysql database as user car_description techniqual_description saled_serial_numbers In user table user_name is the primary key. In car_description there is car_id as primary key and serial_number as foreign key which is primary key in table saled_serial number and user_name as foreign key … | |
This gives me error..how to solve this... class nameex { public object call() { dynamic expando = new ExpandoObject(); var p = expando as IDictionary<String, object>; p["Demo"] = "New val 1"; } } } class de { dynamic n = new nameex(); x.call(); n.Demo = "Welcome"; Console.WriteLine(n.Demo); } | |
Ever Thought if it was possible to not WebBrower control and use the Firefox Browser in your c# window Application...?? Yes ,, It is possible using GeckoFx wrapper class for C#.net and vb also. You will need the Followings: 1. [URL="http://code.google.com/p/geckofx/downloads/list"]GeckoFx Wrapper[/URL] 2. [URL="http://mirrors.directorymix.com/mozilla/xulrunner/releases/1.9.1.2/runtimes/"]Xul Runner[/URL] (Download the zip file from … | |
Hello I'm working on a project, and I have the following classes: [LIST] [*]Loader - This loads the contents of the text file [*]Matrix - This processes the data that has been loaded [/LIST] Now I'm using association, Loader -> Matrix In my matrix class I have a method that … | |
let say, i have a House object; House* someHouses = new House[100]; -----fucntion call... may or may not add stuff to someHouses ------ now, i want to get to the last position that haven't used yet. i tried to check NULL, and 0, both doesn't work. how can i check … | |
I'm creating a game, the game is designed on 2d array of 12x12 The game is a remake of the 1984 pengi. I'm having trouble creating the array making the array fit the screen size. in the attachment in the Game1.cs I have initialized the 2d array of blocks randomly … | |
Greetings, this is my first post here but I will try to do it correctly. I know this specific question is a common one, but I am not looking for someone to do it for me, I just need someone to help me out a little. I understand the basics … | |
Well been working on a project that has a bit of sandbox approach to building things. It works pretty well, but I want users to be able to implement C# script for the objects or to keep track of them and perform analytics. I have got it somewhat working as … | |
Hi.... I want to write a little application to get the NetBIOS names of a remote machine...exactly like the command nbtstat -a [IP], but in a programmatic way. I googled around quite a bit but without success. Could someone plz guide me how to go abt doing this. Thanks | |
Hi i am open a word file 2007(.doc file) in a rich text box through open dialog box. It works fine but images and bullets are not shown in a rich text box. i want to open open word file with images and bullets in a rich text box. I … | |
Hello all, I have a code to encrypt data in C# and I want it to b decrypted in Java... following is the C# code [CODE]string Encrypt(string textToEncrypt, string key) { RijndaelManaged rijndaelCipher = new RijndaelManaged(); rijndaelCipher.Mode = CipherMode.CBC; rijndaelCipher.Padding = PaddingMode.PKCS7; rijndaelCipher.KeySize = 0x80; rijndaelCipher.BlockSize = 0x80; byte[] pwdBytes … | |
Is there any C++ .Net IDE's around? I mean visual studio is ok.. it just isn't as good as SharpDevelop which only does C#, VB and a few others. It doesn't do C++ that's why I'm looking for a C++ version of SharpDevelop. Any Ideas? SharpDevelop [url]http://www.icsharpcode.net/opensource/sd/[/url] | |
hi, i want to lock a folder, contains an decrypted video file. Along with this i want to play this file using windows application. But no one can copy or cut this file while playing. Is there any method to develop this? Here actual scenario is need to play a … | |
Customers of 65 years and over are entitled to discount of 20% on all purchases from an online shopping site. Write compile and test a program which will read in a customer’s age, and inform them whether or not they are entitled to discount on purchases. I have this so … | |
Write a statement that declares and stores the elements of the following array into a vector object: char vowels[5]={'a', 'e', 'i', 'o', 'u'}; I think this is what I need, but I want to verify this. [CODE]char vowels[5]={'a', 'e', 'i', 'o', 'u'}; vector<vowels> vowelsList (vowelsArray, vowelsArray +5);[/CODE] | |
[code]#include <iostream> #include <vector> using namespace std; char img[30][15]; char x = 'X'; int dotLoc[24][2]; int dotNum = 0; int ret[4]; int curDie = 0; int dieNum = 0; int der = 0; vector<int>* readDice(vector<string>&); int dieDots(int, int); void findDots(); bool adjX(int,int); bool traverse(int,int,int,int); vector<int>* readDice(vector<string>& anImage) { // TODO: … | |
Hi, I need help with my assignment. Basically I have to make a html page and have the output display in a .cgi file. I am able to change the font and colors in the html page but the output of my cgi file comes out in black font. I … | |
Hi guys, I need your help. I tried to find out sth via google, no luck. I need to create an appointment "on behalf of" I know how to make an appointment in my personal calendar. But how to do that in other calendar (where I have access rights)? Thx … | |
I'm just starting out in C++ and want to use TextOut to print a character that is generated at runtime based on keyboard input but am having trouble converting TCHAR to LPCWSTR so that it can be used in the TextOut method. my code is [CODE] LRESULT CALLBACK WndProc(HWND hWnd, … | |
I can't figure out what this error is saying. Error: C:\Users\Kyle\School\CS 372\Statistician\Statistician.cpp||In function 'bool operator==(const statistic&, const statistic&)':| C:\Users\Kyle\School\CS 372\Statistician\Statistician.cpp|225|error: passing 'const statistic' as 'this' argument of 'float statistic::sum()' discards qualifiers| C:\Users\Kyle\School\CS 372\Statistician\Statistician.cpp|225|error: passing 'const statistic' as 'this' argument of 'float statistic::sum()' discards qualifiers| C:\Users\Kyle\School\CS 372\Statistician\Statistician.cpp|226|error: passing 'const statistic' as … | |
Hello, I need someone to give me ideas about a project to start developing it. I am an intermediate programmer and I want to develop my skills .thanks in advance guys | |
Hi, The key suppress event is working fine for english character for a string (blocked string). But for korean characters, if i tried to edit the blocked character, the character is not blocking it is simply typing. i tried by key supress event and handled event it is not working. … | |
Hello everybody. I've a question. I tried to change font size of textBox named "textBox1" Here is the function of the NumericUpDown: [CODE]private: System::Void numericUpDown2_ValueChanged(System::Object^ sender, System::EventArgs^ e) { String^ Num2 = this->numericUpDown2->Text; this->textBox1->Font->Size = Num2; };[/CODE] Errors that occur: [CODE] error C2039: 'set' : is not a member of … | |
Hi Team; I am new to programming and C#. I am creating a calculator form, and need to ensure the user enters a numeric only value (no empty values are valid). I have 2 text boxes Value 1 & Value 2..The user must enter a numeric value only, and if … | |
I am trying to develop a C# calculator that can run in the web browser. But it doesn't seem to run. The control goes inside the try function but the variables show 0 or null value. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace CalculatorWeb … | |
I have here a problem... i have a notepad containing values such as: tom,a1001,1 charles,1002,2 I used getline() and used the delimiter comma to separate them and store it in line variable.. my problem is that how can i store the delimited strings from line variable to any different variables.. … | |
Hi guys, I need to make an appointment in shared calendar. The problem is that I know how to do that in my calendar, but how to do that in shared one? | |
Hello, i have made this question again, but is something i really want to learn :/ and never i get an complet answer I know enought good C#/Java Windows programming, i also know C/C++ Console programming but i think is time to learn/play with C/C++ Windows Appis ... How i … | |
Hello I have been at this for a few days, and I have not figured it out but feel as if i am very close. I must create A program that takes a users input, then tells the user if that number is prime or composite, if composite it must … | |
I have the following struct deceleration and I would like to decrement eq->pt_tree[c][r], the row portion of pt_tree[c][r] using pointer subscript. How can I do this? [CODE]struct eq_values{ int * pt_tree[2]; }; eq->pt_tree[i] = (int *) malloc(12 * sizeof (int)); [/CODE] I think it will look like the following, but … | |
![]() | I have to write a program that prompts the user to select (but not disclose) a number between 0 and 31 and then asks exactly five questions to determine the number the user has selected. Each of the five questions is posed by presenting a group of sixteen numbers, asking … ![]() |
Hi friends., I am now try to study LINQ in C#.net which book can i refer and that is easy to learn and give perfect example code snippet | |
How to make a Google like calender in c# - No Time seperation needed.Please help me. | |
I'm working on a program that lists a numbers prime factors. I've finished the bulk of the work and all I have left is the first print where it says the number is prime or composite. I know the way I'm going at it is wrong because it wont work … | |
Hey, I'm having a bit of trouble with progress bars and background workers and want to try and solve this with the simplest solution What I am doing is reading the contents of a specific directory, I am then displaying in a list box all the folder names so that … | |
can any one give any idea which compiler i will use which work in docs.i dont want to use microsoft visual c++ | |
HI I am using - ASP.Net - C# - SQL Server Express 2008 R2 I have a table called customers which contains all customer details and a stored procedure which gets: - Total No Of Customers - Total No Of Customers in Region1 - Total No Of Customers in Region2 … | |
Hi, I am trying to define a 'null' LINQ Table as a global variable and then use a switch statement to deturmine what the Table should be. I am having problems defining the datatype and also assigning values to it. Hopefully the code below will explain better. [CODE] System.Data.Linq.Table table; … | |
While surfing the web I got to this site: [url]http://en.wikipedia.org/wiki/Fourier_series[/url] “Hey, I why not write something like this in C#!” The rather scary looking formulas did not withhold me to start coding (see below Fig. 1 and Fig. 2) The formula from Fig. 2 is hidden under one of the … | |
See I created a program that accepts three values from the user to be arranged as a linked list(ascending order). After it asks a number, it displays the content of the list. The output is like this: [CODE]Enter number: 6 List value: 6 Enter number: 4 List value: 4 6 … | |
Hi guys, i used the query for randomly selecting questions from access but it will give me same result, i try it by passing different different values also passing time in rnd fuction but i will display same result. [CODE] DataSet ds = new DataSet(); string strsel = "select * … | |
good day to all... does anyone here have a basic tutorial on how to program using C for zigbee...? its just that i have a very important project task in my work which should be accomplished for three months:'( ...i do have basic...i mean enough knowledge programming in C but … | |
#include <stdio.h> int main() { int num, i = 1; printf("\n Enter any Number:"); scanf("%d", &num); printf("Multiplication table of %d: \n", num); while (i <= 10) { printf("\n %d x %d = %d", num, i, num * i); i++; } return 0; } Hi.. Can someone please patiently explain me … | |
Looking for an equivalent container class that matches to C#'s Arraylist collections class. Is there anything that comes close to a container that can provide index based enumeration as well as hold multiple data types. I am trying to create an vector that can hold multiple data types. For example: … | |
I am trying to load the numbers to a text file based on user option when he or she types in number through my program. I'm just not sure how to go about it I have not yet learned this. I know I need to use #include <fstream> |
The End.