8,298 Topics
![]() | |
good afternoon gents, first semester cs student here. i'm having a world of confusion to create an X having the left formed with "+", the right side formed with "X" and the center with an "*". with an integer of 7, the output should look like: +-----X -+---X- --+-X-- ---^--- … | |
hi, I wan to develop sms gateway of my own in c#, can anyone provide me source code...... or the ways show to develop client/server application | |
Here is my code. unametxt = textBlock1.Text; passtxt = textBlock2.Text; WebClient webClient = new WebClient(); webClient.BaseAddress = "http://students.usls.edu.ph"; webClient.Credentials = new NetworkCredential(unametxt, passtxt); webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted); webClient.DownloadStringAsync(new Uri("http://students.usls.edu.ph")); After connecting, the source code is downloaded and saved to a string variable. public void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { data … | |
Below you'll find a small program. The challenge is to predict the output of the program, then explain why it gave the output it did. using System; using System.Collections.Generic; namespace Sample { class Program { static void Main(string[] args) { MyStruct a; a.a = 1; a.b = 2; Dictionary<MyStruct, int> … | |
c++ program that uses the class bookType and tests various operations on the objects of the class bookType. Declare an array of 50 components of type bookType. Some of the operations that you perform are to search for a book by its title, search by ISBN and update the number … | |
[COLOR="Green"] hi every body i'm a new user in this site , and this term I am doing graduation project .. So , I wanna ask some questions in programming .. first one : how to connect between 2 computers via wireless ?? second : If the connectivity between the … | |
I'm new to asp.net and i will need help with my csharp, i will be glad if anybody can assist. | |
This code is a java code. Can you please help me convert this to c#? private static URL URLObj; private static URLConnection connect; static String source = ""; public static void main(String[] args) { try { URLObj = new URL("http://students.usls.edu.ph"); connect = URLObj.openConnection(); connect.setDoOutput(true); } catch (MalformedURLException ex) { System.out.println("The … | |
Hi there i am wondering if there is easy way of writing the following problem in C:- For everytime constant A increases, constant B should decrease by 10 until A is equals to 120 !! Thanks in advance guys I dont really want to clutter my project with tons of … | |
I am looking to expand from C to C# and would like to know of some very basic programs to start with or a place to find basic program assignments or a tutorial | |
Hi I’m fairly new to c# programing so please bear with me. I’m currently working on a “simple” little program which allows the user to enter 5 values into the same text box and once this has been done I want to be able to display the maximum and minimum … | |
I have been pondering this task for awhile now and I just can't get it to work. I am trying to get the function readParameters to read the text from a .txt file and transfer them to the specified variables. I have managed to eliminate almost all the warnings but … | |
The assignment is to write a computer program that will add 1/3 to itself a large number of times and to compare the result to multiplying 1/3 by the number of times 1/3 was added to itself. It is also to do the same thing with ½.The program is to … | |
I am attempting to create a "dirty form" checking class based on an example found at codeproject. I am hung up on the first line of one of the classes public class ControlDirtyTrackerCollection: List<ControlDirtyTracker> I am unsure how to replicate that : List<> part in vb net. Thanks | |
how do i represent this in aggregation C# code P1 and P2 as classes and then use aggregation to assign A, A’ instances to them. apprecite a reply thanks | |
I am developing a very simple notepad-type program in C++. The only problem is that when I prompt the user to delete their newly written text file, it doesn't work. Since I let the user pick the name for his/her file, I can't figure out the code to delete it. … | |
as title, can anyone tell me best channel about C# on youtube? | |
Hello, I want to ask if there is any way to play an mp3 file in C# without the use of P/Invoke or winmp dll and the like. I can use external libraries too. It would also be nice if I could "include" the mp3 in the C# project, as … | |
Hi everyone, Just wondering if anyone could give me a bit of advice... For a project at university I'm going to try and create a sort of stock market advisor. Basically it will take data say from Yahoo, parse it, and based on certain rules provided by a user it … | |
In this part you will write a function to generate random numbers in a specified range. Specicially we want you to write a function named generateRandom that generates a single random number in a range specified by the user. The function takes two integer parameters representing the lower and upper … | |
long time listener, first time caller... I'm trying to generate Excel charts using c#. I'm using Excel.Range to set a range (series of values) to plot. However, I'd like to plot two series that are not next to each other. For example, B1:B10 and G1:G10 versus A1:A10 on the x-axis. … | |
Hi, I just wondering if it is possible to read and write files from Mac Mobile devices in PC using C#?Is it possible to create a file transfer to iPhone and iPad (Something like iExplorer or very simple iTune) using C#? If yes, can you please advise me how I … | |
#include <iostream> #include<string> #include<vector> using namespace std; struct Names { string fname; string lname; void output() { cout<<fname<<" "<<lname; } void input() { cin>>fname>>lname; } }; struct birth_info { int month; int day; int year; void input() { cin>>month>>day>>year; } void output() { cout<<month<<"/"<<day<<"/"<<year; } }; int main() { string … | |
Hi. I'm Jens from Sweden. I have been programmming mostly embedded (AVR) using C for a couple of years. Tried Java (for Windows and Linux on desktop PC) but discovered lots of problems with that. Also tried C++ with CodeBlocks or other IDE's. Struggled with QT4 designer for a while … | |
Hi I have a question in writing this code. it goes as follows: i have to 2dropdown lists , that is the start location and the end location . if the user selects a start and a end location the distance falls to a textbox called txtdistance. can anyone help … | |
**I develop a simple asp.net application.My grid has autogenerate columns,i want to pass my last cell value in grid to hyperlink** | |
hi, is it possible to collaborate matlab and c#? if yes..how do you do it? and will the application be able to run on windows phone 7? | |
Hello, so im trying to send an metod that takes a class as input parameter with a bunch of variables. I want to write in some textboxes in my php side of the program send them with my class and into a database. but the database part is no problem … | |
C#, SQL SERVER 2005 first. Sorry for the bad english :> can anyone give me ideas, techniques, theories, or any posible solution. Here is a scenario i have a form called SearchItem and a database table doc_Item doc_Item has a 1 million. . . data. when i click a button … | |
Whats c++ equivalent of this? while(scanf(*)!= eof){ //code } | |
hi everyone i have a problem with this code below. when i try to read all the files in a directory i can but when i try to put them in a vector, it doesn't work, all the elements in the vector become the last element added. I'm not sure … | |
Hello i managed to call my C# DLL in Lisp with (command "Program.dll") and I m able to call Lisp from C# with sendstring ... What I need is a Lisp Function that called from C# which gives its results (picked Objects) back to C# Has anybody an idea ? … | |
Always use scanf() and printf(). They are much, much faster than cin and cout. Also use stl algorithms, like sort, reverse and find, especialy if they are member functions of a container class you use. | |
hi, i wanted to know how to i test a metho as below int32[] AT; int32AB,ab; int32[] at; public void A() { AT = at; AB = ab; return; } is this correct public void SetStaticTest1() { Int32[] AT ; Int32[] at = {1,2,3,4,5}; Int32 AB ; Int32 ab = … | |
Hello, I was wondering how could I display around 10 rows vertically and 34 horizontally in a table view with ticks? Every row will have a tick, which upon saving will be added to the database. Any suggestions are highly appreciated! | |
Who know how to let winForms C# access SQL database through internet. | |
Hi I am developing a windows application. For your infomation FRONT END : C# (VISUAL STUDIO 2008) BACKEND : SQL SERVER 2008 In a single form I have an option for add and remove client. Two different buttons are used(Add and delete clients). When I click on Add button the … | |
I want to develop an area converter program. In this program i used two combobox in which user can select value From and to Converting Area And two TextBox In one textbox user enter the value to convert and other textbox give the converting output. pls provide me the Coding … | |
I am doing something wrong, I have tried for two days and I still cannot figure it out. Can someone help me? Thank you. [code] #include <iostream> #include <iomanip> #include <cmath> using namespace std; void instructUser(); double doDivideZero(double &); int main() { instructUser(); double displayedVal; double newEntry; char command_character ; … | |
Ok let say i have the following xml file <Users> <User> <Name>David</Name> <Attempts> <Place>Paris</Paris <Date>3/29/2012</Date> <Duration>50 seconds</Duration> <Distance>100</Distance> </Attempts> <Attempts> <Place>New York</Paris <Date>7/28/2012</Date> <Duration>30 seconds</Duration> <Distance>100</Distance> </Attempts> <Attempts> <Place>Paris</Paris <Date>8/19/2012</Date> <Duration>70 seconds</Duration> <Distance>60</Distance> </Attempts> <Attempts> <Place>New York</Paris <Date>9/29/2012</Date> <Duration>60 seconds</Duration> <Distance>200</Distance> </Attempts> </User> <User> <Name>Lenny</Name> <Attempts> <Place>Paris</Paris <Date>9/29/2012</Date> <Duration>51 seconds</Duration> … | |
how can i play music in C# visual studio please give a simple example. | |
As a first part of really using Windows Azure I'd like to use C# running on Azure to verify the license code of a program I'm about to issue the upgrade for. I'm planning on porting the whole thing to the cloud, but to gain experience I'd like to license … | |
I have a c# project to Create a console project named Cards that includes a struct Card, two classes Deck and Hand, and two enums: Rank and Suit. I attached a require output for this project. I have all my class but when I compile it only show the first … | |
hi, does any one know about the pipe & filter architecture implemntation in C# have a question in that. | |
Hey guys, I am working on an application for my school and work. I work for the It team that maintains and checks the AV equipment we have around campus and solve the problems associated with them. We usually just mark them down with pen and paper etc. Im trying … | |
Hello, is there any good tutorials,library for downloading a file? I have an application that has a check for update button. please help me with my project | |
hi, for program to be concurrent i created 4 threads as below Thread th1 = new Thread(a1.run); Thread th2 = new Thread(b1.run); Thread th3 = new Thread(c1.run); Thread th4 = new Thread(d1.run ); th1.Start(); th2.Start(); th3.Start(); th4.Start(); how do i know when the threads are finised done with the work, … | |
Whats the best way to port a Java web service to a C# web service? Multiplatform. Thanks |
The End.