19,876 Topics

Member Avatar for
Member Avatar for cocopium

Need help with Caesar Cipher. Usually I am aboe to figure the things out with just a small pointer.... but this one escapes me. I need to create a Caesar Cipher. **It must have an array. ** **I must be very simple.**(don't want to use that code where A = …

Member Avatar for Unimportant
0
193
Member Avatar for shadyreal

A bit of background information: Im running Windows Server 2008 R2 Standard, on a virtual server. The program is a service with a service installer. The service has a couple of performance counters to show the data performance. To be able to do this I need to create a category(I …

0
82
Member Avatar for Learningvinit

What is the behavioral difference between signal(SIGCHLD,SIG_IGN) and signal(SIGCHLD,SIG_DFL)? If we replace signal(SIGCHLD,SIG_IGN) with signal(SIGCHLD,SIG_DFL), What can be the impact? Will it craete a Zombie process?

Member Avatar for L7Sqr
0
221
Member Avatar for hassanalisalama

c prog that take int x and pass it to thread to return x+10 i tried to free()mem i allocate in prog using malloc // problem i get this error Aborted (core dumped) #include <pthread.h> #include <stdio.h> #include <stdlib.h> void *fun(void *TX); int main() { int x =50; void *exitstat; …

Member Avatar for deceptikon
0
764
Member Avatar for nitin1

can you please tell me how rand () is implemented ? i know it is library implementaion dependent. but still can you tell me the way in which it is mostly implemented ? i have searched on google, but didn't get anything which make me clear about my question. i …

Member Avatar for deceptikon
0
134
Member Avatar for Suraj_1
Member Avatar for mesbahuk

I'm currently working in a java to c# conversion project. In one part I got this Java code snippet. public CustomType someMethod(Message msg) throws IOException { byte[] data = msg.toString().getBytes(); } to my understanding, data contains the byte representation of the string *msg.toString()* But when I try to write it …

Member Avatar for mesbahuk
0
266
Member Avatar for rahuulbp

I need to write a C program in the LINUX such that First Condition: from morning 8 am to evening 6 pm and also if the number of packets in the network which is being counted by the Tshark in the terminal window is greater than 500 then Switch will …

Member Avatar for L7Sqr
0
160
Member Avatar for cocopium

Hi. I need help with a program. It is a simple program where it looks for a sequence of numbers (between 1000 and 9999) where the sum of 4 sequential numbers to the 4th power = a 4 digit number comprised of those 4 original numbers. (I know... see example). …

Member Avatar for cocopium
0
245
Member Avatar for Abhinisha
Member Avatar for Dashien

Hello All; I'm not a student nor is this a project I am beginning a programming project of my own and redoing some of my personal lessons to refresh my understanding of C# and I couldn't believe how rusty I am until I hit this issue...... using System; using System.Windows.Forms; …

Member Avatar for deceptikon
0
264
Member Avatar for Lp_baez

If the program is being run the "cin>>answerBoss;" runs just fine but right after that input the program skips the next input that reads "cin>>overTime;" I can't figure out what is causing this to happen.

Member Avatar for Nutster
0
253
Member Avatar for fadlegas

i. Average sales for each staff ii. Average sales for each quarter iii. Average sales for a year iv. Total sales for each staff v. Total sales for each quarter vi. Total sales for a year The sales performance is given in Table 1. Table 1. Staff ID Quarter1 Quarter2 …

Member Avatar for deceptikon
0
103
Member Avatar for hackoman96

how to categrise pictures according to picture colour and texture using c++???

Member Avatar for mike_2000_17
0
170
Member Avatar for BeyvKoYy

Make a program that will compute the eight inputted quizzes of the student where QT =q1+q2+q3+q4+q5+q6+q7+q8 divide by 8 2. Write a prgram that ask the user to enter the radius of a circle and then computer for its area where AREA = Pi x R2 3. Create a program …

Member Avatar for deceptikon
-1
183
Member Avatar for TEJESH_1

after installing the turbo c.there is slow movement.when i m typing the result is showing after few secondswhat shal i do? please help me.

Member Avatar for misi
-1
123
Member Avatar for hackoman96
Member Avatar for shadyreal

I need help with the usage of Perfromance Monitor, but the code that I tried to go with did not work. I ended up with this Sysmon( System Monitor ) and added it in a Windows Form Application. I need to learn how to track performance. Does anyone know how …

Member Avatar for shadyreal
0
272
Member Avatar for David_16

Hello, my name is David, and I want to create a program that will take an audio file, generate the WMP visualizations, apply some modifications, and save it to an AVI file. How can I do that? Thanks in advance (-:

Member Avatar for David_16
0
264
Member Avatar for hackoman96
Member Avatar for hackoman96
0
122
Member Avatar for nitin1

code 1: void fun(const int **); int main() { int **p; fun(p); } code 2: void fun(const int **); int main() { const int **p; fun(p); } code 1 is compile error and 2 is not. can you explain why ? as per my knowledge, we can convert a non-const …

Member Avatar for nitin1
0
158
Member Avatar for th3k1d

I am currently learning c++ on my Mac started with eclipse and playing with Qt some recently. I am wanting to switch over to Linux. I was wondering what is the recommend Linux destro that c++ programmers are using. I will need to do some GUI programming. So I guess …

Member Avatar for mike_2000_17
0
244
Member Avatar for soche123

Printing the maximum numbers after user's input using Array? guys I'm struggling with this program. here's what I wrote but it's not working.. #include <iostream> #include <conio.h> using namespace std; int main() { int maxArray[10]; int maxValue=0; for(int j=0; j<4; j++) { cout<<"Enter a number: "; cin>>maxArray[j]; if(maxArray[j]>maxValue) { maxValue=maxArray[j]; …

Member Avatar for rubberman
0
232
Member Avatar for piczim

I have done a VERY simple currency converter which runs in the command prompt. is it possible to some how get this to work as a windows program. I would like to be able to save it and send it to my friends. I would also like to be able …

Member Avatar for rubberman
0
186
Member Avatar for VikashS_

Greetings everyone, I am just starting out with C and I am stuck with a question in my book. It says the following: x=1; y=1; if(n>0) x=x+1; y=y-1; printf("%d%d"x,y); What will be the values of x and y if n assumes a value of a) 1 and b) 0. Now …

Member Avatar for VikashS_
0
136
Member Avatar for piczim

I would liketo know how to set the number of decimal places in the below code to 2. #include <stdio.h> #include <math.h> #include <string.h> int main() { int a =2; int b =4; int c =6; int d =8; int currencyOption; printf("\n *********************************************"); printf("\n *********************************************"); printf("\n ** Enter the number …

Member Avatar for ddanbe
0
171
Member Avatar for nitin1

va_arg (ap,int(*)()) here, ap is the va_list type variable and it is started with va_start() already. the place where i have read this said that this is wrong and you have to typedef it first , then you can extract the pointer to a function from the va_arg(). why is …

Member Avatar for nitin1
0
192
Member Avatar for johnray31

Hi guys, can anybody explain to me with a example why we people emphasize to pass double pointer in a function instead a single pointer when we want to fill some variable inside that function. or what are thge advantage of double pointers in c over single pointer?

Member Avatar for Bharat_1
0
16K
Member Avatar for pooh1234qwerty

#include<stdio.h> #define CH char*; int main(){ CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } here the o/p is 4 1. why isnt b also of type char*..??

Member Avatar for JasonHippy
0
178
Member Avatar for pooh1234qwerty

#include<stdio.h> int main(){ float f1=14.375; float f2=14.385; if(f1==14.375) printf("Yes1\n"); else printf("No1\n"); if(f2==14.385) printf("Yes2\n"); else printf("No2\n"); return 0; } the output of this prog is Yes1 No2 but i had expected Yes1 Yes2 plz explain me the output...??

Member Avatar for nullptr
0
141
Member Avatar for nitin1

#include<stdio.h> main() { int a=258; int *num=&a; printf("%d %d",*((char *)num),*((char *)num+1)); } does the output depends on little endian or big endian structure of machine on which i am running this ? thanks.

Member Avatar for nitin1
0
149
Member Avatar for Aleksa_1

Hello:) Well this is my source code, but unfortunately it doesn't as it should. It should insert string s2 into s1 beggining from position p. For example if s1="green apple", s2="orange", p=3, output looks like this: greorange en aplle, and it should be in one line. I would appreciate very …

Member Avatar for Ancient Dragon
0
257
Member Avatar for Vsan

I need to create a program that does this v A permutation is one of several possible ways in which you can order or arrange a group of things. Write a program that displays a new random permutation of the integers 0 to 9 at the request of its user. …

Member Avatar for pbj.codez
-1
156
Member Avatar for nitin1

code 1: #include<stdio.h> int main(void) { int a; a= 1,2,3; int b = a++; printf("%d",b); return 0; } code 2 : #include<stdio.h> int main(void) { int a; a= (1,2,3); int b = a++; printf("%d",b); return 0; } Can you please explain why that bracket is making ouput changed ? i …

Member Avatar for pooh1234qwerty
0
138
Member Avatar for Rahul47

I was just writing a program for armstrong number till a given range. Something wrong with this code ? #include<stdio.h> #include<conio.h> void main() { int num,range,temp; int rem,sum=0; printf("Enter upper range: "); scanf("%d", &range); // Checking is a number is armstrong of not. printf("Armstrong are:"); for(num=10; num<=range; num++) { temp=num; …

Member Avatar for Rahul47
-1
199
Member Avatar for Ahsaas

I'm writing some code to serialize some data and write the serialize data to a file on disk. Currently data is in void* buffer and then trying to serialize using tpl with TPL_MEM so that later it can be write to file. But I am not very sure that how …

Member Avatar for Ancient Dragon
0
172
Member Avatar for johang_80

Hello, I am currently trying to develop a window form application whose content is added dynamically. What I am trying to do here is to display a number of panels with different sources across the screen horizontally. I am getting the data from a DB and depending on the number …

Member Avatar for ddanbe
0
437
Member Avatar for saurabh.mehta.33234

#include<stdio.h> void main() { int n=5; if(n==5?printf("Hallo"):printf("Hai"),printf("Bye")); } The output of the above code is HalloBye..But I am not able to debug it..I know that ternary has precedence over comma operator but i am stuck at which operand will go with which operator..Can someone please help

Member Avatar for Moschops
-1
238
Member Avatar for JoeD1

Can some help me with my Default: It is printing the error message but at end of message is giving a decimal value for the char sign. How do I stop this from happening? #include <stdio.h> char sign; int x, y; int main() { printf("Choose:\n"); printf("a) Addition\n"); printf("b) Subtraction\n"); printf("c) …

Member Avatar for JoeD1
0
165
Member Avatar for usamaasghar.asghar

Hi every body! you are enjoying. I have a problem that if a person writes in his code: "system("shutdown -s")" in his program and if I run .exe file, my computer shutdowns. How would I dodge this trick?

Member Avatar for pritaeas
0
190
Member Avatar for nitin1

i know how numerical values are represented in memory. like +3, -3, 0, 1 , 3321 and like this. can you tell me how float, double are represented in memory ? like 3.220, -9876.87 ? i mean how bits are presented in memory ? like for singed number 32th bit …

Member Avatar for rubberman
0
205
Member Avatar for Sunil_6
Member Avatar for Ancient Dragon
0
75
Member Avatar for John Linux

In a past prac. exam for an algorithm course I'm doing is the challenge below, and their are no solutions but it seems like a really interesting one to solve. Can someone please help and point me in the right direction, I would like to try this on my own, …

Member Avatar for Sergio_1
0
513
Member Avatar for ppotter3

Hello! My name is Page, and I am still in the process of becoming a more seasoned programmer. I am trying to get a .txt file with first names in it to be sorted after I read the file and input it to a array from a function. Now I …

Member Avatar for jawad.ikram
0
3K
Member Avatar for anitha av

hello...i am doing a project on connecting c language with sql. but i am unable to write the program in c language by using the sql code for connectivity. plz advise me as how to learn to write the c program using sql.

Member Avatar for sai subhashini
0
127
Member Avatar for fafa70

hi. i have written a program in c and also a makefile for it but i have a repetitive error: /usr/bin/ld:4.txt: file format not recognized; treating as linker script /usr/bin/ld:4.txt:1: syntax error here is makefile code: CC=gcc test2 : test2.c $(CC) test2.c 4.txt 5.txt 6.txt -I -lpthread -lrt -o test2

Member Avatar for deceptikon
0
3K
Member Avatar for VilePlecenta

This is strange, I looked it up and by default C# should pass parameters by value but I've always had them get passed by pointer. ie [ICODE] public class foo { public foo() { derp = 123456; } public int derp; } public static void dontcare(foo z) { z.derp = …

Member Avatar for zadkielmodelre
0
225
Member Avatar for cocopium

I have been trying VERY hard on this one and I cannot figure it out (I get the logic-- but not how to apply it in a COMPUTER). Here it is (please read the whole thing before answering): This is C programming (not C++) I need to design a program …

Member Avatar for cocopium
0
504
Member Avatar for mahesh113

Hi All, Could you please clear my doubt why this second catch block is called when exception is thrown only once. #include <iostream> using namespace std; class E { public: const char* error; E(const char* arg): error(arg) {} }; class B { public: B() {}; ~B(){cout<<"~B() called"<<endl;} }; class D: …

Member Avatar for deceptikon
0
350
Member Avatar for sumisimmy

i have to make a software product on food an billing system in C language..plz help me..

Member Avatar for sumisimmy
-1
120

The End.