15,551 Topics
| |
I have just started doing a little C programming and, looking here and there, I have noticed a lot of people prefers to use <iostream.h> library (and related commands "cout" and "cin") instead of using <stdio.h> library (and related commands "printf" and "scanf") What are the advantages and/or disadvantages (if … | |
I would like some help regarding multithreading... i want to know what exactly happens when i start a new thread... i.e how it affects the variables etc. in the program... one query i have is what happens if i start 2 threads starting with the same function.. will their running … | |
May please one of you explain me what the hell are these sucking error messages and how can they be fixed that the sucking DevCPP compiler generates out for no reason which I have been trying to solve for two entire days? [Linker error] undefined reference to `wglCreateContext@4' [Linker error] … | |
Think of typing a password. You type your password but what you see is merely a asterisk sign. If you use `getch()`, no problem! Put the problem is that I can't use the getch. See the code: struct Func { char password[9]; char name[34]; char code[8]; }element; do{ gotoxy(21,6); printf("****************************************"); … | |
Hi, These i am getting calls for opening in Telecommuncations domain. what exactly is this. They are looking for Programmers in C lang. with telecom domain. Can any body plz tell what is that exactly and what i need to know in C lang. I am working on Linux environment … | |
I would appreciate some input if you don't mind. Can someone please explain to me why converting a base class pointer to a derived class pointer is considered dangerous by the compiler. | |
this is a code for the binary search program in c language.now the program is not showing any error but when i run this program then the output is like: enter the total numbers:6 enter the array elements: 5 4 7 1 3 2 the sorted numbers are:1 2 3 … | |
I am pretty much done a shell program I have to write for my operating systems class. The only problem is that I can't seem to figure out how to make this function work. It is supposed to separate out a list of tryable paths that is from the getenv("PATH") … | |
I have an idea for a game project. i have started to write out the outlien of the game and i have me and another person starting to work on the modeling and skinning of the needed models. This pays nothing but i thought that someone might like to join … | |
Dear Friends i want help about the Simulate a Linux/UNIX shell, called MASH (for MiniAture SHell) in the C. plz read the the my problem and send the best solution of my problem as soon as possible. Objectives: After the completion of this assignment you’ll be able to: Simulate a … | |
Hi all, I am trying to malloc some memory and then pass the address of the first array into another function however I keep getting the same error (see thread name). [CODE]Error:error C2664: cannot convert parameter 1 from 'float **__w64 ' to 'float *[/CODE] Here is a short version of … | |
hi everyone, this is first time i am writing in DaniWeb community.. i never did this earlier because i always find someone with a similar problem to me on this site but this one is an unique one... i am working on a plugin of quark express 6.0 in codewarrior8.3 … | |
Hello all. Essentially what I need to do is what is described in the topic, in the context of using winsock's recv() function. I've made some code that does what recv() does to strings so that I could find a solution without dealing with the rest of the socket code. … | |
hey i need help understanding recursions :s could someone give me an example of a recursion and help with steps on how to change it to a for loop? for example for(int i; i <= 10; i++) how would i change this into a for loop? thanx in advance mina … | |
[B]This message is long, just focas on the bold parts which their aint that much, dont mind the smilies Plz help me solve the compile error[/B] [B]An overview of my program[/B] The program takes the results from a html form(questionaire) than either updates the files with the results or adds … | |
Hi everyone, I need help writing a program.. I have no idea how to start off ...can you please help me...I am very lost :sad: Thank you soo much if you can help because I am extremely confused. A parking garage charges a $2.00 minimum fee to park for up … | |
i am writing a program.. in that i am needed to represent an array using pointers only..(its a constraint i ve to work with).. the prob i am facing can be shown by this small program.. pls help me rectify with [code]#include <stdio.h> #include <conio.h> void main() { char a[4],*b; … | |
[B]To the following program I need to:[/B] Homework 2.b /* crypto.c. Program that encrypts a letter by shifting the value by k*/ #include <stdio.h> #define BASE 65 #define RANGE 26 main() { char originalLetter; char encryptedLetter; int k; printf("Input a Capital letter:\n"); scanf("%c", &originalLetter); printf("Input an integer that is less … | |
I have another queation, why this program won't sort my numbers from the smallest to the biggest?? #include<stdio.h> main() { float temp, num1, num2, num3, num4; printf("Input 4 numbers:\n"); scanf("%f%f%f%f", &num1, &num2, &num3, &num4); if(num1>num2) { temp=num1; num1=num2; num2=temp; } if(num2>num3) { temp=num2; num2=num3; num3=temp; } if(num3>num4) { temp=num3; num3=num4; … | |
hello, :eek: hey guys do anyone know code for locking folder on 98 & xp help me pls :o | |
hi im kind of confused about how to change a for loop into a while loop and how to change a recursive into a for loop and for loop into a recursive, i read books and searched online but it all seems confusing could somebody please simplify it for me? … | |
Hey Anyone has any idea how to convert from any data type to strings.. so that i may use the winsock send functions for sending data.. as only strings can be sent in that.. i need to send structures .. so have to convert them.. | |
[B]Hi My name is krishnan I am working no a project called autodiscovery so I need a C code to access remote machine so that I can find out the system informatinon of the remote machine[/B] | |
Hi, Assume that we want to define a set of template function separately & then use them in other files, by calling their header. 1. Shoud we put function body (both define & declare) in header file as well. My current code works this way. But when I put those … | |
Use the CPU trace generator to generate jobs (or process) traces and simulate the following algorithms 1. Shortest remaining time next (aka Shortest Job First with pre-emption, aka SJF, shortest next burst time). 2. Round-Robin with user set-able time quantum (the time quantum should be a userset-able command line parameter. … | |
I've used linked lists before. Does anybody have a resource or url address on how to write a linked stack? I need to create a stack with a menu using int and char variables. Thanks. | |
Hi, I'm new to the forum and need some help writing my first 'complicated' program. I have trouble writing to an existing file. I want to write to an Excel file I already created and edited exclusively for the program I wrote, but when I write the data it destroys … | |
Hello, I want to create a very simple program to test threading. Example [code] int main () { char option = 'a'; int run = 1; while ( option != 'x' ) { option = getch (); /* some code that changes run */ /* thread ? */ } } … | |
Anybody out there with example source code that might demonstrate the keeping of the program button off of the taskbar with "CreateWindowEx" or the alternative method of creating a hidden window and making it the owner of the primary window. :?: | |
Hello, I've been working on a security based software from which I got the idea from another program. Here are the details: Upon load of the software a 4 digit string is given (I.E: 1kfh). Then you're prompt for a password. To find your password you would use a Memory … |
The End.