c tag

1304 questions


1 answers
38 views
0
About "NSUserDefaultsController"

I am reading the Objective-C programming overview documentation.Among them, a controller called NSUserDefaultsController appeared.In what kind of situations will this be used?I am writing to ask you a...

2 years ago

1 answers
119 views
0
I want to use FactoryGirl data to spin the RSpec description.

We are trying to commonize almost duplicate tests using each as shown below.RSpec.describe Hoge, type::model do describe'describe1'do [create(:foo), create(:bar)].each do|v| describe#{v.name}do # Tes...

2 years ago

3 answers
31 views
0
How do I resolve the warning "Casting to a different object pointer type?"

What do you want to hearI want to eliminate the warning on the subject without interrupting its operationThe source code for the problem unsigned char_array1[8]={0};unsigned char_array2[8] = {0};unsig...

c
2 years ago

1 answers
87 views
0
I want to change the programming language in Vscode.

I originally put Python in it, and I want to change the language to C, but it doesn't work.The terminal seems to be Python specification.What should I do to make it work?

2 years ago

2 answers
29 views
0
The cause of the segmentation fault is unknown.

I compiled the following programs and ran them, and they said Segmentation fault.Is there something wrong?#include<stdio.h>#define N10#define NUM_SCORE50int main (void) { inti,j,n; int score [NU...

c
2 years ago

4 answers
32 views
0
About implementing foreach in C language

I was wondering how to do an array like foreach in C language, so I looked it up and found out that I found a page that introduced macros like the one below.C language:Using foreach macros#defineforea...

c
2 years ago

2 answers
31 views
0
In C language, the presence or absence of printf sometimes results in segmentation fault.

About segmentation fault 11.I found it while writing a program with printf to check the variables, but if I use printf, this error does not occur, but commenting out causes Segfo.Does the printf chang...

c
2 years ago

2 answers
141 views
0
Japanese is garbled on the page opened in save_and_open_page of capybara.

The page opened using save_and_open_page in capybara will be garbled only in Japanese as shown below.Please let me know if there is any way to fix it.


1 answers
57 views
0
NSMutableData instance leaks only on iPad (iOS 7.0.4)

I am creating a program that records and plays audio using AudioUnit, but I encountered the following bugs:I tried everything I could, but it didn't improve at all, so I would like to ask you a questi...

2 years ago

1 answers
90 views
0
I want VSCode to be indented in the same way as Java when writing C language.

I usually use cmd+k, cmd+f when aligning indents, and when writing Java, indent is for(inti=0;i<10;i++){ ~~~~~~~~~~~~ }However, if you use the same shortcut when writing C language, for (inti=0;i&l...

2 years ago
« - 55 - »

© 2024 OneMinuteCode. All rights reserved.