I cannot get it... I am kind of newbie in OOP
Type: Posts; User: c_lady
I cannot get it... I am kind of newbie in OOP
I think this impossible! Since I need to debug (build) my program successfully before i give an input text etc. So how come my debugger will be involved when the program already has created...
How to invoke my debugger? I use xCode ... any suggestion?
Hi guys!
Lets say I have the below program (K&R, 1.9), which simply does:
while (there's another line)
if (it's longer than the previous longest)
(save it)
(save...
#include <stdio.h>
main()
{
char *colors[3][10] = {'\0'};
printf("\nEnter 3 colors seperated by spaces: ");
scanf("%s %s %s", colors[0], colors[1], colors[2]);
printf("\nYour entered: ");...
Hi guys!
I need to understand why this program, gives this error (although it compiles and does the job well)
#include <stdio.h>
main()
{
char *myString = "Mike";
I trust everyone in this forum ;) starting first from tabstop and continuing by you laserlight...
Even in C++?
3. Why we're not performing typecasting in this situation, as?
name = (int *) malloc(80 * sizeof(*name));
Thanks, tabstop!
hi friends,
I am reading this book: Amazon.com: C Programming for the Absolute Beginner (For the Absolute Beginner (Series).) (9781931841528): Michael Vine: Books
And to be on right track I...
Do you mean something like this?
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *name;
name = (char *) malloc(80*sizeof(char));
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *name;
name = (char *) malloc(80*sizeof(char));
if ( name != NULL ) {
printf("\nEnter your name: ");
gets(name);...
printf("\n%d", *iPtr+4); // this will increment a[0] temporary
guys I am asking how to increment as I do above but this is temporary and I would like my incrementation to not be temporary!!!
...
#include<stdio.h>
main(){
int a[5]={5,50,100,150};
int *iPtr;
iPtr=a;
printf("\n%d", ++*iPtr); // this will increment a[0] but not temporary
printf("\n%d", *iPtr+4); // this will increment...
ok... but this means C programming language has one library? C standard library - Wikipedia, the free encyclopedia or? who are other types of libraries of C
please explain... thanks
I am not looking you to explain the problem with coding... but just let me know what is the problem of cycle detection in linked lists. I read many docs (wikipedia etc.) I cannot understand :(
sorry I meant 12 :)
ok if i have this structure
struct person{
char name[9];
};
I am reading this and got curious!
Data structure alignment - Wikipedia, the free encyclopedia
do you think if the struct has +1 variable, the struct will ALWAYS allocate 2 more bytes + of course...
Hi guys!
I have cmalloc as directive
#include <cmalloc>
but I cannot compile-it from bash it says:
error: cmalloc: No such file or directory
can you tell me how to compile it with:
Header file - Wikipedia, the free encyclopedia
Search: "One drawback of this method is that the prototype must be present in all files that use the function. Another drawback is that if the return...
Do you have any idea how to implement bubble sort without using arrays?
Thanks a lot!
if I have a command-line argument such as:
./KR<alice.txt -x -n course
and if my main function is:
main(int argc, char *argv[])
how many arguments (argc) I have?
I need some support...