TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
C# Corner
Tech Writer
8
1.4k
editing struct?
Dec 8 2018 7:29 AM
want to edit struct to give new title of the movie struct to be GoodFellas and the director to be Martin Scorsese
have tried below but cant figure it out.
using System;
namespace HelloWorld
{
class Program
{
public struct Movie
{
public string Title;
public string Director;
}
static void Main(string[] args)
{
Movie movie;
movie.Title = new movie.Title "GoodFellas";
movie.Director = new movie.Director "Martin Scorsese";
Console.WriteLine(movie.Director + " directed " + movie.Title);
}
}
}
Reply
Answers (
1
)
for loop assigning value i so loop end count is 8
greater condition between two Time