拼图 [英] Puzzles

查看:52
本文介绍了拼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人回答这些问题,我会很高兴吗?

谢谢。

1.写一个Hello World C中的程序,不使用分号。

2.编写C ++程序,不使用任何循环(if,for,while等)

打印数字来自1到100和100到1;


3.查找给定数字是否为2的幂。

4.将x乘以7而不使用乘法(*)运算符。

5.以不同方式编写函数,返回f(7)= 4和

f(4)= 7

6.删除数组中的重复项

7.查找链表中是否有任何循环。

8.删除无密钥访问数据库中的重复项而不使用

数组

9.二进制转换(整数)数字,不带循环。

10.编写一个程序,其打印输出是一个精确的副本

来源。毋庸置疑,仅仅回显实际的源文件是不允许的。

11.来自数字池的数字(四个'1',四个''2'......四个''6'),

每个玩家选择一个数字并将其加到总数中。一旦使用了

编号,就必须将其从池中删除。获胜者是

的人,其总数等于31。

13.交换两个数字而不使用第三个变量。

解决方案

Girish Pal Singh写道:

如果有人回答这些问题,我会很高兴吗?




做自己的作业。


-

Hallvard


In文章< 2f ************************** @ posting.google.com>,

Girish Pal Singh写道:

如果有人回答这些问题,我会很高兴吗?


这些问题?

谢谢。


欢迎您。

1.写一个Hello World C中的程序,不使用分号。


嗯 - 是的。

2.编写一个C ++程序,不使用任何循环(if,for,while等)来打印数字从1到100和100到1;


呃 - 假。

3.查找给定数字是否为2的幂。


是的。

4.在不使用乘法(*)运算符的情况下乘以x乘以7。


True。

5.以不同的方式写一个函数,返回f(7)= 4和
f(4)= 7


错误?

6.删除数组中的重复项


True。

7.查找链表中是否有任何循环。


错误。

8.删除无密钥访问数据库中的重复项而不使用
数组


False。

9.转换(整数)二进制数字,不带循环。


True。

10.编写一个程序,其打印输出是
源的精确副本。不用说,仅仅回显实际的源文件是不允许的。


True。

11.来自数字池的数字(四个'1',四个''2'。 ...四个''6'),每个玩家选择一个数字并将其添加到总数中。使用
号码后,必须将其从池中删除。获胜者是
人,其总数等于31。


False。

13.在不使用第三个变量的情况下交换两个数字。




True 。


我怎么办?


-

Neil Cerutti


" Girish Pal Singh" < GI ******* @ hotmail.com>在留言中写道

新闻:2f ************************** @ posting.google.c om ...

如果有人回答这些问题,我会很高兴吗?


1.自己动手做作业。


2.感激不尽,而不是非常好。


3.使用除法运算符将C代码有效地除以15而不是



谢谢。



欢迎您。


< snip>


- Bob Day


I will be greatful if any one answers these questions?
Thank You.
1. Write a "Hello World" program in ''C'' without using a semicolon.
2. Write a C++ program without using any loop (if, for, while etc) to
print numbers from 1 to 100 and 100 to 1;

3. Find if the given number is a power of 2.
4. Multiply x by 7 without using multiplication (*) operator.
5. Write a function in different ways that will return f(7) = 4 and
f(4) = 7
6. Remove duplicates in array
7. Finding if there is any loop inside linked list.
8. Remove duplicates in an no key access database without using an
array
9. Convert (integer) number in binary without loops.
10. Write a program whose printed output is an exact copy of the
source. Needless to say, merely echoing the actual source file is
not allowed.
11. From a ''pool'' of numbers (four ''1''s, four ''2''s .... four ''6''s),
each player selects a number and adds it to the total. Once a
number is used, it must be removed from the pool. The winner is the
person whose number makes the total equal 31 exactly.
13. Swap two numbers without using a third variable.

解决方案

Girish Pal Singh wrote:

I will be greatful if any one answers these questions?



Do your own homework.

--
Hallvard


In article <2f**************************@posting.google.com >,
Girish Pal Singh wrote:

I will be greatful if any one answers these questions?
These questions?
Thank You.
You''re welcome.
1. Write a "Hello World" program in ''C'' without using a semicolon.
Ummm--true.
2. Write a C++ program without using any loop (if, for, while etc) to
print numbers from 1 to 100 and 100 to 1;
Er--false.
3. Find if the given number is a power of 2.
True.
4. Multiply x by 7 without using multiplication (*) operator.
True.
5. Write a function in different ways that will return f(7) = 4 and
f(4) = 7
False?
6. Remove duplicates in array
True.
7. Finding if there is any loop inside linked list.
False.
8. Remove duplicates in an no key access database without using an
array
False.
9. Convert (integer) number in binary without loops.
True.
10. Write a program whose printed output is an exact copy of the
source. Needless to say, merely echoing the actual source file is
not allowed.
True.
11. From a ''pool'' of numbers (four ''1''s, four ''2''s .... four ''6''s),
each player selects a number and adds it to the total. Once a
number is used, it must be removed from the pool. The winner is the
person whose number makes the total equal 31 exactly.
False.
13. Swap two numbers without using a third variable.



True.

How''d I do?

--
Neil Cerutti


"Girish Pal Singh" <gi*******@hotmail.com> wrote in message
news:2f**************************@posting.google.c om...

I will be greatful if any one answers these questions?
1. Do your own homework.

2. It''s ''grateful'', not ''greatful''.

3. Write C code to divide by 15 efficiently without
using a divide operator.
Thank You.



You''re welcome.

< snip >

-- Bob Day


这篇关于拼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆