15,551 Topics

Member Avatar for
Member Avatar for shashigowda

hii, it may b very simple or very basic thing but iam confused in this case...any one can explain usage of single & double quotes in **echo** statement <?php $x = "test"; echo '$x';//produces $x as a output echo "$x"; //produces test as a output ?>

Member Avatar for cereal
0
264
Member Avatar for negru

I have problems with the following program which is long to post at once so I will explain what are the problems step by step. 1. Define two structs that represents books and a bookstore as following: typedef struct { char id[14]; char title[16]; int availableNumOfBooksWithSameTitle; }BOOK; typedef struct { …

Member Avatar for rproffitt
0
308
Member Avatar for negru

Write a program that will print all highly prime numbers from the input interval <a,b>. Prime number is highly prime if deletion of every digit from right is a prime. Example: 239 is highly prime because 239,23,2 are primes. Could someone point out what are logic errors in the following …

Member Avatar for negru
0
329
Member Avatar for chrisschristou

hello friends sorry for posting this basic question here but i can't figure it out why my variable "tasse" is getting 8 or (the value of variabale i) in this code below. #include <stdio.h> int main(){ int leght = 15; int tasse =0; int random; int array[15]={1,5,4,7,8,5,1,0,9,7,0,0,5,4,10}; int i,j; for(i=0; …

Member Avatar for toxicandy
0
251
Member Avatar for Labdabeta

Hello, I am having a bit of an issue with my networking addition to my game engine. The engine uses SDL to provide an event-driven programming environment. I tried adding networking functionality, but it doesn't seem to work. Here is the relevant code: //includes #if defined(_WIN32) #include <winsock2.h> typedef int …

0
169
Member Avatar for negru

Create doubly linked list that has the following information about **books**: **book_id, book_name, author_id, book_price**. Sort list in ascending order by **book_price** using bubble sort algorithm. Delete all books with the smallest and the largest price. How to modify the following program such that the sorting is done using bubble …

0
164
Member Avatar for chrisschristou

Hello friends i just have one question i want to make my own android OS customized version or even one day make entire own OS, so i wanted to know for the android OS i must learn JAVA ? or c/++ ??

Member Avatar for rproffitt
0
229
Member Avatar for givemethemac

So my next problem is what mac is right and reliable for me? I will be using my mac for: - Writing word/pages docs - Programming in C++ , Objective-c , Java and more - Game development - Powerpoint/keynote presentations - A little bit of PhotoShop - Music and personal …

Member Avatar for fallout4player
0
508
Member Avatar for clife

Hi , Below is the code for printing even/odd numbers alternatively.But some how i am not able to achieve the result. I have seen a version with while loop http://www.bogotobogo.com/cplusplus/quiz_multithreading.php working perfect. But i would like to use one thread for printing one value instead of same thread running in …

Member Avatar for clife
0
192
Member Avatar for COKEDUDE

My understanding of code blocks is that it uses gcc. So I am curious why gcc allows you to have a function called itoa, but code blocks does not let you have a function called itoa. Does anyone know?

Member Avatar for rproffitt
0
225
Member Avatar for glao

Hello, I have this code: #include<stdio.h> int q = 10; void fun(int *p){ *p = 15; p = &q; printf("%d ",*p); } int main(){ int r = 30; int *p = &r; fun(p); printf("%d", *p); return 0; } which returns `10 15` I can't understand why it doesn't return `10 …

Member Avatar for glao
0
228
Member Avatar for Tomas_3

Hello guys, I am Toni Hacker, i browsed through this forum and I saw you guys really talk more about programming. i wanna make an operating system but i need a team. please its gonna be an open project. I need your advice and help. anybody care to help

Member Avatar for Raul Perez
0
309
Member Avatar for rproffitt

One of the best tips I learned long ago was to turn on all warnings and error messages from the compiler or development system. Yet last week, once again a big system was being worked on and the bug was tracked down to *uninitialized variable*. Now this isn't specific to …

Member Avatar for Raul Perez
0
296
Member Avatar for overwraith

I am trying to build a program for transferring files to an arduino project with an attached sd card. I have some code, it does some interesting stuff, but it's not quite what I want it to do. What I need it to do is to be able to transfer …

Member Avatar for rproffitt
0
821
Member Avatar for Kunyepa

**I'm having difficulty translating C code that loops through an array of grades. The C code is as follows:** int A, B, C, D, F; // declare grade counters int i; // declare loop counter int N ; // Number of scores to analyze A=0; B=0; C=0; D=0; F=0; // …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for Joshua_14

Enter 10 student grades and print the total number of passing and failing grades entered

Member Avatar for David W
0
209
Member Avatar for المهندز

iam asking about chimical equations how can i programme it to the computer how can i make the computer understand that c+o2=co2 or naoh + hcl =nacl+h2o i mean how he understand that acid +alkail= water +salt

Member Avatar for rubberman
0
264
Member Avatar for chrisschristou

hello i just get started with java so i have a question where the difference from c/c++ and the famous lovely java begin, the function or better method, so in c/c++ we can make a function prototype on top the main and then define it later like this int myfunctionprototype(int …

Member Avatar for JamesCherrill
0
1K
Member Avatar for mistryrak440

Most of the email autoresponder provides various types of services, but a customazie autoresponder needed for my cpa business, i am try to make a autoresponder with server scripting language (PHP) , but i dont know how its possiable or not?

Member Avatar for jkon
0
190
Member Avatar for Luckychap

A simple graphical year calendar. Compiler: Turbo C In main current year is set manually, for more generic way use date function to get current year.

Member Avatar for santlaha
0
362
Member Avatar for COKEDUDE

I always get confused with while when I need to use multiple condition. I believe this is correct. 1 and 1 = 1 1 and 0 = 0 1 or 1 = 1 1 or 0 = 1 Is there something special I need to do with while loops? If …

Member Avatar for David W
0
184
Member Avatar for danibootstrap

Hello, I am getting a linked error when I changed file name to cpp. 1>main.obj : error LNK2019: unresolved external symbol "void __cdecl func_name(double * *,int,int,int,double * *,double * *,double * *,double * *)" I am using objects in my new code but this function which was there earlier is …

Member Avatar for rubberman
0
293
Member Avatar for COKEDUDE

Is this the correct way to print char*? *I know c has the value I want because of the print statement below it. The o is not giving the value that I expect. char out[50]; char *o = out; int i = 118; *o++ = c; printf("o is %d (%c)\n", …

Member Avatar for tinstaafl
0
164
Member Avatar for COKEDUDE

I am trying to get the first value of a null initialed array of string.I have tried every method I can think of with no luck. I either get warning, errors, or a segmentation fault. Whats the correct way to print the null value and use it in the if …

Member Avatar for tinstaafl
0
464
Member Avatar for COKEDUDE

In this example in the malloc() what does the UL do? #include <stdio.h> /* perror */ #include <errno.h> /* errno */ #include <stdlib.h> /* malloc, free, exit */ int main(void) { /* Pointer to char, requesting dynamic allocation of 2,000,000,000 * storage elements (declared as an integer constant of type …

Member Avatar for Soft_1
0
185
Member Avatar for COKEDUDE

I have seen a few different ways of doing malloc error checking? Is one way better than the other? Are some exit codes better than others? Is using fprintf with stderr better than using a printf statement? Is using a return instead of an exit better? ptr=(int*)malloc(n*sizeof(int)); //memory allocated using …

Member Avatar for Soft_1
0
739
Member Avatar for aalekh

I was trying to write a code for: read in N numbers from a file FILE1 into an array(dynamic) then sort those numbers then search for numbers (1 per line, given in FILE2) in the array. #include <stdio.h> #include <stdlib.h> #include<math.h> #include<string.h> int main(int argc, char* argv[]) { FILE *fp1=fopen("myFile1.txt", …

Member Avatar for rubberman
0
2K
Member Avatar for negru
Member Avatar for David W
0
178
Member Avatar for COKEDUDE

I need some ideas for dealing with array of strings. **ptr** contains my array of strings. The goal here is to combine certain strings when the conditions of the for loop are met. The problem is I need remove the strings that get combined with another string so I don't …

Member Avatar for David W
0
199
Member Avatar for negru

Write a program that will print two closest pair integers in an array (if there are more than one pair with the same distance, then print all pairs). //Example: 6 -3 8 0 5 //The closest numbers: 5 6 -> difference is 1 In the following program I am using …

Member Avatar for rubberman
1
875

The End.