15,552 Topics
| |
Please answer the following and post your code 1. You were tasked to build a module that calculates and prints the area of a rectangle, perimeter of a rectangle, and volume of a rectangle: Here's the header. calculate.h: void pr(float, float); void ar(float, float); void volume(float, float, float); Create the … | |
Hello For example I have a winapi GUI program called blabla.exe I have another winapi GUI program called TYCK.exe. Now how to make blabla.exe run in TYCK.exe?? I was using[CODE]system("blabla.exe");[/CODE], but this is not portable and it goes through cms, what I dont realy like. Is there any other way … | |
Hey there^^ Just a quick sort out hopefully, ive been hacking at this for a good while and cant figure out whats wrong for thie life of me! I have a program that uses calculates the maximum deflection of a beam under load (with some assumptions were allowed); and im … | |
I use Visual Studio 2005, and when I build to debug it compiles fine (with only two warnings). When I buid to realise I get this: [code]------ Build started: Project: TYCK, Configuration: Release Win32 ------ Compiling... main.cpp .\main.cpp(19) : warning C4244: 'initializing' : conversion from 'INT_PTR' to 'int', possible loss … | |
I realised I cannot run Win32 programs compiled with Visual Studio 2005 on any other computer. When I try running my programs on a computer where no VS2005 is installed I get an error: [CODE] This application has failed to start because the application configuration is incorrect. Reinstalling the application … | |
Hello, We just started studying classes right now, we are studying classes. Unfortunately, my teacher is not very helpful. I was given a study guide for my midterm and one of the questions there was to create a half adder. I already did the .h part and i believe it … | |
hi friends, This is my very 1st message on this site. Can someone please help me out in designing a small function in c programming to accept decimal value as hex value, i mean lets say if user inputs a decimal value say 49, the processor should read(and futher processes) … | |
Could someone give me the syntax on how to add files in a working copy in subversion using the add command.As of now i am using import command to import folders in my working copy but this is exclusive for folders only not for file and I want is to … | |
Hello, I need help with Lee algorithm. Just a quick reminder of what it is: Start at a point, assign the cost of 0 to that point, and expand vertically and horizontally until target is hit. See below: ______3 ____3 2 3 __3 2 1 2 3 3 2 1 … | |
how to allocate memory for a two dimensional array dynamically please need code for that one | |
Guys I have to subit my lab record tommorow.....i just have some programs left which iam not able to do.:'( 1. Write a program to print the pascal triangle 2. Write a program to concatenate two strings without using teh library functions, by pointers 3. WAP to compare two strings … | |
Hi. Well, I got my subscription program right (thanks for all of the help, everyone!):) [CODE] #include <iostream> #include <iomanip> //Needed for the showpoint and setprecison command #include <fstream> //Needed to use files #include <string> //Needed to use string variable #include <conio> using namespace std; int main() { char choice; … | |
I have a questions where I need to overload the + operator for vectors so that I can add two vectors together. The question I have is on how and where to write the code. what is the definition of the + operator for STL vectors? template<typename T, typename Allocator> … | |
hi, does anyone knows if is there a way to make getchar non blocking? I'm using curses and I'm on linux platform. With a thread version of the same program I have solved my problems with getch and with the timeout function but now the program doesn't work properly and … | |
I'm going nuts i need to do a program that will count words, vowels and consonants and special character, i'm just a beginner and my teacher is killing me with this. | |
Hello, let's say the user enters a value in this format xx:xx:xx where xx is an integer, how can I assign each xx to integer vars? I though of everything I know.. can't use getline(),getchar() bcuz they accept characters only, can't use cin either.. thought of storing the xx:xx:xx on … | |
I need help someone im trying to delete the blanks of this array of strings stored in str[i] loop but cant copy wihtout delete spaces please help some one.. thanks [code=c] void deblank(char str[MAX_STR], char result[MAX_STR]) { int num; //variable to hold value for string length int i, j; // … | |
can anyone provide me with the subtraction bwtween two huge integers?:'( I totally don't have any idea of solving the problem>>. Please... | |
Hello, I need to print a menu, displaying the available choices as characters, no problem. I need to store that character into a variable, then check to make sure that character isn't Q or q, no problem. However, if the user enters anything other than a, b, c, d, or … | |
Would you mind helping me to solve the following problem!! I have a file [B]wires.inp. [/B]it is existing in c:\\ctemp\\vuth\\wires.inp. When i tried to open it : FILE *fwiresInp; fwiresInp=fopen("c:\\ctemp\\vuth\\wires.inp","r"); Error existed!!! it means that i cannot open the file above. Could u suggest me some solutions?? Is it because … | |
I have a homework question in STL. The question asks to write an implementation of STL algorithm replace_copy_if(). My question is NOT regarding how do I code this, but more importantly what exactly does it mean? In other words, is it the same as just creating a function and not … | |
i have assignment to submit on this monday. i don't understand what the question is,can anyone help me? [B]Projectile Motion [/B]You will recall the tutorial problem in which you computed the height of a projectile that was launched "straight up". In this case the height after [I]t [/I]seconds is given … | |
I ask this question because I want to try out some probability theories and I want to get as close as possible to randomness. What my instinct tells me is that we cannot fabricate any function that is perfectly random, because we are in the first place defining an algorithm … | |
Hi everyone... again me... My new project is harder :) project wants to you how many records do you want to enter (easy part) surname name years doctor and illness. then asks to you 3 choices. 1- ascend surname 2- ascend doc 3- descend year ... and I guess I … | |
[I]<< split from [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=35463&highlight=count+how+many+times"]here[/URL] >>[/I] how can i make this code to display how meany times a number appears in the array.. example... if there are 5 number 3 it will display this with asterisks.. 3 ***** and so on for each number... here is my code... i almost have … | |
why strcmp doesn't work of comparing all the characters (line, elments) in the database. what should i do?? :'(:'(:'(:pretty::pretty::pretty: | |
Hi all, Am fairly new to the programming world, but am kind of struggling along. I have written a piece of code for a client program with has given me some errors that i just can't see when compiling. The errors listed are : client.c: In function `main': client.c:118: error: … | |
Hi all, consider the following xyxy9=ABC:ADC:uio xyoy10=DEF:DCF:uip ........................... .............................. 100 lines I want to compare the strings ABC and ADC........similarly DEF and DCF..... if they are equal then no operation is done else they are written in a single array thanks in advance. | |
Hi I want to list all files and directories under a given directory in C. Thanks in advance.:S |
The End.