8,298 Topics

Member Avatar for
Member Avatar for shupa_1
Member Avatar for nitish.mohiputlall

Write a program that displays the outline of a box five characters wide and five characters tall. Use the ‘*’ character for the box outline. here are my codes: #include <stdio.h> #include <stdlib.h> int main() { printf("%c\v", '*'); printf("%c\v", '*'); printf("%c\v", '*'); printf("%c\v", '*'); printf("%c\n", '*'); printf("%c%8c\n", '*','*'); printf("%c%8c\n", '*','*'); …

Member Avatar for Adak
0
245
Member Avatar for nitish.mohiputlall

Write a program to calculate the estimated journey time of a train. The program should request and read the distance in miles and the average speed in miles per hour, and display the estimated journey time in hours and minutes to the nearest minute. Test your program with: a) Distance …

Member Avatar for ddanbe
0
115
Member Avatar for castajiz_2

Hi again, before a year ago when we were doing the graphics class at college my professor said that the coordinate system is reversed in programming that means that the Y axe is positive when facing down and the X axe is negative when facing right , however when using …

Member Avatar for lolafuertes
0
289
Member Avatar for fugio

I'm implementing a function. While choosing any of datagridviewcheckboxcolumn in form1 and show form2 when click button to close, datagridviewcheckboxcolumn in the form1 will is false ? Please help on this. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { …

Member Avatar for Ketsuekiame
0
187
Member Avatar for newbie14

We are able to capture the whole packet hex values. The issue now from the hex values we want to dissect the level 3 protocol, application level protocol and also if the url value is present in the packet. How best to achieve this in C?

Member Avatar for newbie14
0
1K
Member Avatar for fhau013

hello ! can you please help me with my independent study. im making library management system with visual studio C# and mysql. what mysql connector needed for C# and how to connect them?? thank you in advance :)

Member Avatar for ddanbe
0
93
Member Avatar for ShiftLeft

I'm pretty comfortable with "C", but where I lack, is understanding what types of options must be passed to compiler to produce the tightest code possible. Here is an example of a formula in "C"; int ADDR = VIDEO_BASE + (WND_X + POS_X) + ((WND_Y + POS_Y) * SCR_X) * …

Member Avatar for ShiftLeft
0
431
Member Avatar for phorce

Sorry if this is hard to understand what I'm trying to do here, but, I do not know how to approach this. I am using method overloading in my constructors of a class, and I have multiple "Window" functions which are all classes that can be used and I need …

Member Avatar for mike_2000_17
0
295
Member Avatar for raaz999

I have a code that when mouse hovers a button then it fires click event.But i want that when mouse hovers for 3 seconds then event must be fired.I have used intervals but could not find out solution. I have a simple windows froms c# application.

Member Avatar for Ketsuekiame
0
3K
Member Avatar for max2011

hi. i am marsh a student guys i have a activity but i don't know to start it with a loop. can you help me? ***** ***** **** **** *** *** ** ** * * ** ** *** *** **** **** ***** *****

Member Avatar for Gonbe
0
193
Member Avatar for sash_kp

I have an array of integers.Let's assume int a[5]={1,2,1,2,2};.I want to divide this array into two arrays by extracting some elements of array "a[5]" into some different arrays like "b[2]" and "c[3]",such that int b[2] will contain {1,2} and int c[3] will contain {1,2,2}. How can it be possible using …

Member Avatar for David W
0
445
Member Avatar for Dimonai

Hello to all, I'm have been porgramming console applicactions in C# to learn the language. Today I was curious in windows forms, and started a project. After searching in the web/youtube I see people putting all the code on the button code(when doubble click), BUT I saw there the same …

Member Avatar for Dimonai
2
2K
Member Avatar for kram54

Hi everyone i have to one probem i have to 2 class 1 Class clsKullaniciIslemleri = using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data; namespace GorevTakip.KullaniciIslemleri { class clsKullaniciIslemleri { string first; string second; public string userName; public string userId; public string Yetki; GorevTakip.Gecisler Gec = …

Member Avatar for kram54
0
268
Member Avatar for leon.lashway

I have learned a few programming languages and am now in the beginning stages of teaching myself C with "C Programming, Second Edition for the absolute beginner". I'm enjoying the book but have run into some difficulties in the second chapter exercies. The exercise states as follows: Create a program …

Member Avatar for deceptikon
0
438
Member Avatar for n1csaf3

I am trying to work out how to pass a pointer from my C# interface application to the C++ back-end functionality DLL. I tried searching Google but can't work out what I'm doing wrong.. I'm used to using * for pointers and just changing the value in the pointer through …

Member Avatar for deceptikon
1
604
Member Avatar for Saqlainz
Member Avatar for Saqlainz
Member Avatar for Mike Askew
-2
285
Member Avatar for mcnickn

Sorting algorithms are an important part of managing data. There are many sorting algorithms. Each algorithm has particular strengths and weaknesses. You are asked to write two programs in C++, one for Insertion Sort and another for Merge Sort. Compare the execution time for both programs for different data sets. …

Member Avatar for Dewey1040
-3
168
Member Avatar for alan.davidson.566

hey hey folks. I am making a tetris clone for my class project in college. langauge is XNA and I have run into a minor issue. When my bricks get to the bottom, rather than stack, they simply reset back up to the top. I have tried everything I can …

Member Avatar for alan.davidson.566
0
442
Member Avatar for fuhanspujisaputra

Hi guys, i created Windows Application form my project and there is a problem that i am facing right now. I already had an array of textboxes, and wanted to connect those database textboxes, however, i cannot get the data because the data that i want to connect is int …

Member Avatar for fuhanspujisaputra
0
992
Member Avatar for nnayram

#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <time.h> #include <errno.h> #if defined ( __GNUC__ ) || ( _MSC_VER ) # if defined ( _MSC_VER ) && ( _MSC_VER >= 1020 ) # pragma warning ( disable : 4996 ) # pragma warning ( disable : 4172 ) # …

Member Avatar for LesF
0
477
Member Avatar for mesbahuk

I am working on a Java to C# conversion project. In this project, my custom java library uses `java.net` packages [`DatagramPacket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramPacket.html) and [`DatagramSocket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramSocket.html) classes. Are there similar classes in .NET C# with similar functionalities?

Member Avatar for ddanbe
0
347
Member Avatar for mesbahuk

I have java code that uses Java's `java.util.Timer.schedule()` method. **Method Description:** *The `schedule(TimerTask task,long delay,long period)` method is used to schedule the specified task for repeated fixed-delay execution, beginning after the specified delay.* public void schedule(TimerTask task,long delay,long period)java.util.Timer.schedule() Is there an equivalent method in C#? If NOT, how can …

Member Avatar for Momerath
0
500
Member Avatar for sireiz

I am new to programming and i am now free for 2 months after my exams, i want to learn some basic and very necessary classes or their functions or objects which are used for file folder handling. Kindly suggest some methods which i can learn.

Member Avatar for sireiz
0
266
Member Avatar for Swapnil Palande

Hi all, Please help me solving following query: How to add global variable in C# window base application. This variable must be accessible to all forms. What I exactly want is: I have a variable "UserName" and "UserType". When user click "Submit" button on Login form, user name get stored …

Member Avatar for Quezo
0
9K
Member Avatar for Lp_baez

I was trying to array a string within a string. And I keep on receiving a compiler error. So I’m wondering if is even possible to string a string within a string? Because that’s the error I keep on getting. If not then what is another way to create a …

Member Avatar for Lp_baez
0
476
Member Avatar for Mr Programmer

Hello, I had really less experience in VB. NET (creating small and basic applications, working with progressbars, buttons and other really easy and basic stuff). I know that C# is more powerful (but hard, too) than VB. NET. So, I am deciding to create programs at a more pro level. …

Member Avatar for <M/>
0
219
Member Avatar for singularity~

I am using the BusyIndicator from the WPF Toolkit in my WPF application. I am trying to access the label (artistLabel) from the C# code behind. Unfortunately I cannot access the label if it is inside the busy indicator. I am sure that it's some kind of binding or scope …

Member Avatar for lizhenfan
0
4K
Member Avatar for sumitrapaul123

Hi, Its an c# winform application. I have different parameters such as UI colors, Fonts, control size which user changes from UI and saves it. Each parameter implementation is kind of big so we have a saparate assemblies also. All the parameters will be displayed in one UI and if …

Member Avatar for Ketsuekiame
0
251
Member Avatar for mesbahuk

I have a Java code block like following: Vector<NameAddress> route = dialog.getRoute(); for ( Enumeration<NameAddress> e = route.elements(); e.hasMoreElements(); ) { // some more to copy route to another Vector<> } I am trying to convert it in C# and here is my code: List<NameAddress> route = dialog.getRoute(); for ( …

Member Avatar for C#Jaap
0
309
Member Avatar for jeele.edolas

Hi guys! My groupmates and I need suggestions on what C# project should we make since we need to pass a project proposal on our OOP subject which is to be submitted on the end of the semester. This project does not need to be really complicated and as much …

Member Avatar for ddanbe
0
174
Member Avatar for J-P1988

Hey i try to work on custom signal but i get an compiling error: QObject::connect: No such signal QLabel::changerSignal() in ..\textbasedrpg\FenPrincipale.cpp:173 But i seem to write exactly same thing in header and .cpp »That an big moment i try to see what i do incorrect but can't find. Same an …

Member Avatar for Banfa
0
502
Member Avatar for mesbahuk

In my *Java to C#* Conversion Project, at one point I came to use java's `startsWith(string prefix, int toffset)` method. I used a substring to solve it for C#. Java Code Snippet: String str1 = "one over the coocoo's head"; String str2 = "someone"; System.out.println(str1.startsWith(str2, 4)); C# does not have …

Member Avatar for JoeProgrammer
0
419
Member Avatar for GeekPlease

Good day guys, I've been developing softwares in different languages. But, I don't fully understand when to use a specific language where I can fully utilize it's ability. For example (C#.NET vs VB.NET), - When to use C#.NET over VB.NET and vice versa? - What are the projects that can …

Member Avatar for JorgeM
0
587
Member Avatar for Frank_5

//Author: Frank R. Mendez //Title: Object Oriented Queue //Description: This is program uses double linked list to store data in the queue its functions are enqueu,dequeue and display queue. //Hope it can help you in you future projects. Good vibes to all programmers! #include <iostream> using namespace std; struct Node …

Member Avatar for rubberman
0
2K
Member Avatar for jony_munsi

// stringprint.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "mpi.h" #include<stdio.h> #include<stdlib.h> int _tmain(int argc, char* argv[]) { MPI_Status status; int numtasks, rank, rc; char ch; rc = MPI_Init(&argc,&argv); if (rc != MPI_SUCCESS) { printf ("Error starting MPI program. Terminating.\n"); MPI_Abort(MPI_COMM_WORLD, rc); } MPI_Comm_size(MPI_COMM_WORLD,&numtasks); …

Member Avatar for rubberman
-1
175
Member Avatar for Dannjeru2013

Kambo company pays employee Gratuity on retirement that can be computed using the Formula Gratuity=(Salary*Fixed Rate*Number of Years Worked)+One month Salary. Formulate an algorithm that can be used to calculate the gratuity and write a c++ program that can be used for the computation.

Member Avatar for JasonHippy
-1
470
Member Avatar for Lp_baez

I'm trying to create a loop if the string wordEasy contains more than 5 letters. I am using the 'while' and 'for' but none seem to work. I am hopping if you guys would be kind enough to help me figure out what I'm doing wrong. Here is the 'for' …

Member Avatar for David W
0
384
Member Avatar for Lp_baez

Hi everybody, I’m having trouble trying to figure out how to create a loop when the ‘difficulty’ takes a value that is not an integer. I want a player to get the ‘default’ statement presented in the switch . The ‘default’ statement seems to make an appearance but it will …

Member Avatar for David W
0
2K
Member Avatar for clubr0cker

How can i get .wsdl file of a web service by using some method in c#? or can i get a string of wsdl content in c#?

Member Avatar for deceptikon
0
94
Member Avatar for neetika reddy

Hi, I am trying to get TextBox. Whenever I click on the button I should get a TextBox. Here is my code. But I am getting only one TextBox. Collapse private void button1_Click_1(object sender, EventArgs e) { txtRun = new TextBox(); txtRun.Name = "txtDynamic"; txtRun.Location = new System.Drawing.Point(20, 18); txtRun.Size …

Member Avatar for LyndonBroz
0
5K
Member Avatar for Jahliah

Basically I have two files: details.html details.cs I would like to use details.cs to write values to details.html but the html textbox stays the same. Would appreciate any help. Thanks! **details.html** <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="details.cs" Inherits="Details.DetailsHTML" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> </head> <body> <form> <input …

0
88
Member Avatar for Lp_baez

Hi I learning c++ through a book but I have found that one of the examples provided by the book is an infinite loop. So I was wonderring if anyoone can help me stop it. I tried using the 'break;' statement in every 'for' body to stop the loop but …

Member Avatar for Lp_baez
0
1K
Member Avatar for raging_the_fire

Been stuck on this for bloody ages. Seems like no easy way to do it! Would appricate some help, thanks! #include <stdio.h> #include <stdlib.h> #include <time.h> char (char *s, const int len) { { static const char alphanum[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; "123456789"; for (int i = 0; i < len; ++i) …

Member Avatar for iamthwee
0
3K
Member Avatar for Jahliah

I have two files: apple.html banana.cs apple.html contains a html table. So my question is: Is it possible to write values to the html table in apple.html using banana.cs? Any help is appreciated. Thank you!

Member Avatar for ddanbe
0
96
Member Avatar for mesbahuk

For my **Java to C#** conversion project, I need to use something equivalent to Java's `Calender` class. I have some codes like: Calender cal = Calender.getInstance(); long time = Calendar.getInstance().getTime().getTime(); long time2 = System.currentTimeMillis(); which returns some random values at different times. I have come to know C-sharp's `DateTime` is …

Member Avatar for ddanbe
0
990
Member Avatar for frankleslie8311

//Author: Frank R. Mendez //Title: Insertion Sort //Description: Accepts int elements and stores it in an array list then sort every element in accending order //Date: 7/13/13 5:53 PM #include <iostream> using namespace std; class Sort { public: void insertionSort(int x[],int lenght); void driver(); void display(); int arr[15]; // because …

Member Avatar for kvahanyan
0
2K
Member Avatar for Jahliah

I'm trying to get the time from input of html txt_URL but the array returns nothing. Not sure where I went wrong. Any help is appreciated. Thanks! **input:** Deleting 11 files. Details: Time Deleted = 01:16:30, Time Left = 00:00:00, **output:** 01:16:30 string before = txt_URL.Value; string after = Regex.Replace(before, …

Member Avatar for Jahliah
0
328
Member Avatar for Jahliah

Is it possible to replace commas and spaces with commas in c#? I'm fresh in c# and am looking for guidance. Any help is appreciated! **Before:** Deleting 11 files.ABC: Total Time = 01:16:30, Remaining Time = 00:00:00 **After:** Deleting,11,files,ABC: Total,Time,01:16:30,Remaining,Time,00:00:00

Member Avatar for Ketsuekiame
0
4K

The End.