c tag

1304 questions


1 answers
104 views
0
C Language Sequencing Error Question

// C language#include <stdio.h>#include <stdlib.h>#include <time.h>int main(){ int ArrRoom[10] = {0,}; srand(time(NULL)); For (inti = 0; i < 10; i++) // Enter a random number from...

2 years ago

1 answers
29 views
0
Crealloc() question.

#include <stdio.h>#include <stdlib.h>#include <memory.h>#include <string.h>#include <time.h>int main(){ unsigned char *test; int i; test = (unsigned char*)malloc(5); for(...

2 years ago

1 answers
43 views
0
Problems with using Telnet in Mac OS

I'm trying to run the server to LinuxIf I connect remotely, it looks like a picture, but I can't connectSSH is allowed remotely, but it is still not possible to access it through telnetIf there is any...

2 years ago

1 answers
30 views
0
Is there a way to force the program to end in a function other than main in C/C++?

For example, void Queue::push(int _data) { if (isFull()) { cout << Queue is Full. You can't push the data. Exiting program..; //Forced to end here! } else { ~~ }Like above, in the main functio...

c c++
2 years ago

1 answers
91 views
0
How do I deliver all the factors I received for

If you have any idea what to do to hand over the factors you received to other functions in a function that receives multiple factors using...void format_string(char *msg, ...);void debug_print(int db...

2 years ago

1 answers
60 views
0
How many pointers can be used in one variable?

It's the same as the title.How many pointers can be used in one variable?int ****************a;Can I put on an infinite number of stickers?

2 years ago

1 answers
47 views
0
How to share a single Web view on multiple view controllers

The app I make is based on the Tabbar controller, and I want to make 3 tabs share one web view.When you tap the second and third tabs, you load different pages into the same web view.I don't know how ...

2 years ago

1 answers
95 views
0
Is there any way to prevent "deferred conversion from string constant to 'char*'" from appearing on GCC?

I recently upgraded to gcc4.3, and the following warning appears after that.I think this happened by writing char* where you need to write const char*. My code is really long. (Almost 500 files)Cannot...


1 answers
72 views
0
How do I paste a const/literal string?

message = strcat(TEXT , var);message2 = strcat(strcat(TEXT , foo), strcat( TEXT , bar));I'm trying to put a string after a fixed stringIt keeps saying Segmentation Fault.How do I paste a const/litera...

2 years ago

1 answers
82 views
0
The color cannot be printed as desired by OpenGL.

Hello, I am a student studying OpenGL alone. It's nothing but OpenGL right nowI'm creating an object using an array of vertices, but I can't get those two sides colored like in the picture.GLfloat ver...

2 years ago
« - 86 - »

© 2024 OneMinuteCode. All rights reserved.