using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
int x, y;
for (x = 0; x < 10; x++ System.Console.Write("\n"))
for (y - 0; y< 10; y++)
System.Console.Write("x")
}
}
}他提示我 for (y - 0; y< 10; y++) 这一句错误.错误 1 只有 assignment、call、increment、decrement 和 new 对象表达式可用作语句 D:\My Documents\Visual Studio 2008\Projects\ConsoleApplication6\ConsoleApplication6\Program.cs 14 22 ConsoleApplication6
高手解答一下
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
int x, y;
for (x = 0; x < 10; x++ System.Console.Write("\n"))
for (y - 0; y< 10; y++)
System.Console.Write("x")
}
}
}他提示我 for (y - 0; y< 10; y++) 这一句错误.错误 1 只有 assignment、call、increment、decrement 和 new 对象表达式可用作语句 D:\My Documents\Visual Studio 2008\Projects\ConsoleApplication6\ConsoleApplication6\Program.cs 14 22 ConsoleApplication6
高手解答一下
解决方案 »
- DataGridView中绑定List泛型的问题 .
- winform通过mono脱离.net framework
- 怎样用ComboBox自动完成功能,实现:%字符串%提示----------------------在线等
- 大家知道怎么实现qq那种头像循环吗? c/s模式的。好像用datagrid这种也不能那样做呀! c/s下面又没有摸版列
- 对话框上有20个textbox,5个一行,共4行,如何将每行的textbox.text作为记录插入5个字段的ACCESS数据库里去?
- 急求 高手们 速度 帮忙啦!!!!!!
- C#抓取网页数据问题
- 綁定到主從表時在從表中浏览記錄時出現的問題.
- MDI子窗体中能否这样获取一个值?
- 关于调用COM组件时参数的问题?
- 怎么样在datagridview数据绑定后增加固定行?
- 关于多条件组合查询。
for (y - 0; y < 10; y++)
=>
for (y = 0; y < 10; y++)
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
int x, y;
for (x = 0; x < 10; x++ System.Console.Write("\n"))
for (y = 0; y< 10; y++)
System.Console.Write("x")
}
}
} for (y = 0; y< 10; y++)
int x, y;
for (x = 0; x < 10; x++) System.Console.Write("\n");
for (y = 0; y< 10; y++)
System.Console.Write("x");