首页 \ 问答 \ 调用在当前函数下声明的函数(Calling a function which is declared under the current function)

调用在当前函数下声明的函数(Calling a function which is declared under the current function)

我是C的新手,在尝试调用在当前函数Ex下声明的函数时遇到问题:

void test (){ test1 ();}
void test1(){ }

我可以将test1移到测试之上,但我也有这个:

void test () {test1 ()}
void test4 () {test ()}
void test3 () {test4 ()}
void test1 () {test3 ()}

所以你看到如果我移动test()我会对test4()有同样的问题吗? 我能做什么 ?

谢谢


I'm a newcomer to C and I have a problem when trying to call a function which is declared under the current function Ex:

void test (){ test1 ();}
void test1(){ }

I could just move test1 above test, but I have this as well :

void test () {test1 ()}
void test4 () {test ()}
void test3 () {test4 ()}
void test1 () {test3 ()}

So do you see that If I moved test() I will have the same problem for test4 () ? What could I do ?

Thanks


原文:https://stackoverflow.com/questions/1210431
更新时间:2022-03-29 13:03

最满意答案

我的错。 在我的情况下发生错误是因为我没有注意并试图在我的Nexus 7 2012设备上安装该版本。 L的开发者预览仅对2013模型有效。


My bad. In my case that error occurred because I didn't payed attention and tried to install the version on my Nexus 7 2012 device. The developer preview of L is only valid for the 2013 model.

相关问答

更多
  • Nexus 5目前遇到这个问题,试图通过库存恢复来最新的4.4.1 OTA更新。 解: 打开Android SDK管理器(在控制台中获取到sdk目录,然后运行tools \ android) 下载/安装最新的USB驱动程序(在Extras下)。 在Windows设备管理器(devmgmt.msc)中,右键单击Nexus 5设备,然后选择更新驱动程序软件。 浏览我的电脑驱动软件> Android SDK Dir> Extras> usb_driver Currently experienced this pr ...
  • 我的错。 在我的情况下发生错误是因为我没有注意并试图在我的Nexus 7 2012设备上安装该版本。 L的开发者预览仅对2013模型有效。 My bad. In my case that error occurred because I didn't payed attention and tried to install the version on my Nexus 7 2012 device. The developer preview of L is only valid for the 2013 ...
  • https://developers.google.com/android/nexus/images链接帮助了我。 您可以在此处将设备恢复为原始固件。 https://developers.google.com/android/nexus/images link helped me. Here you can restore your device back to original firmware.
  • 您确定该应用程序是专为高密度显示器设计的吗? 尝试在权限后将其添加到您的清单中: OK. Probably this is not "THE ...
  • 此问题是由Lollipop的旧预览版引起的。 如果您将设备更新到最新预览版本,则不会再看到此崩溃。 评论中提到崩溃发生在2014年7月发布的LPV81C版本中。截至2014年10月27日的最新预览版本是LPX13D,没有此问题。 This issue is caused by an old preview version of Lollipop. If you update your device to the latest preview version you will not see this cra ...
  • 您可以为不同的屏幕宽度声明drawable drawable-sw720dp/ You can declare drawables for different screen widths drawable-sw720dp/
  • 在开发我的应用程序期间,我在Xperia Arc S(Note!Non-ICS)上看到了同样的问题。 我几乎可以肯定,我们看到了两个不同问题的相同症状。 在我的情况下,我正在读取整个流作为UTF8 String但服务器端实现期望我将第一个字节读作数字byte ,其余部分读作UTF8 String 。 我不确定为什么我真的有EOFException的细节,但是阅读流,注意自定义协议中的类型,解决了我的问题。 I've seen the same issue on my Xperia Arc S (Note! ...
  • 可能尝试启用USB调试模式,并尝试插入/拔出USB电缆,并检查电缆是否在设备上运行时以某种方式松动。 如果没有帮助,请提供设备详细信息和控制台输出的屏幕截图。 Thank you all for your time and suggestions. What ultimately worked for me was going line by line in tiapp.xml file & removing or correcting the configurations in android manif ...
  • 这是正确的方法。 设置远程位置以镜像主要Nexus。 (以管理员身份登录,存储库,添加,代理存储库。 然后在开发人员的Maven settings.xml中添加远程位置的Nexus作为主要Nexus的镜像。 首先,访问工件被复制到远程位置。 而已。 That is the right way. Set up your remote location to mirror the main Nexus. (Login as admin, Repositories, Add, Proxy Repository. ...
  • 我回应自己。 可以使用-Pparameter = value将参数传递给Gradle,这对我很有用。 我把它放在Jenkins工作的开关盒中。 现在,凭据在Jenkins Job中,但不在SCM中,因此源代码是干净的凭据。 I response myself. Is possible to pass parameters to Gradle with -Pparameter=value and it is useful for me. I put it in Switches box in Jenkins ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)