15,550 Topics

Member Avatar for
Member Avatar for MiloTN

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 …

Member Avatar for Ancient Dragon
0
377
Member Avatar for jan1024188

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 …

Member Avatar for jan1024188
0
239
Member Avatar for jan1024188

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 …

Member Avatar for jan1024188
0
91
Member Avatar for olams

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 …

Member Avatar for Dani
0
124
Member Avatar for lats

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) …

Member Avatar for Ancient Dragon
0
132
Member Avatar for jk_bscomp

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 …

Member Avatar for Ancient Dragon
0
104
Member Avatar for Rob111

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 …

Member Avatar for Rob111
0
271
Member Avatar for srinath.sec

how to allocate memory for a two dimensional array dynamically please need code for that one

Member Avatar for John A
0
86
Member Avatar for rollingstones

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 …

Member Avatar for rollingstones
0
117
Member Avatar for naya22

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; …

Member Avatar for naya22
-1
115
Member Avatar for jrivera

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> …

Member Avatar for vijayan121
0
84
Member Avatar for kazuyaz

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 …

Member Avatar for kazuyaz
0
309
Member Avatar for elvla2

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.

Member Avatar for elvla2
0
76
Member Avatar for Mac.Z

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 …

Member Avatar for Mac.Z
0
263
Member Avatar for mcole50

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; // …

Member Avatar for mcole50
0
93
Member Avatar for wujianwei

can anyone provide me with the subtraction bwtween two huge integers?:'( I totally don't have any idea of solving the problem>>. Please...

Member Avatar for ~s.o.s~
0
34
Member Avatar for Munsoned

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 …

Member Avatar for ft3ssgeek
0
91
Member Avatar for vuthcam

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 …

Member Avatar for WaltP
0
148
Member Avatar for jrivera

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 …

Member Avatar for jrivera
0
90
Member Avatar for civil1

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 …

Member Avatar for iamthwee
0
91
Member Avatar for abhinav.sharma

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 …

Member Avatar for abhinav.sharma
0
109
Member Avatar for jerryseinfeld

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 …

Member Avatar for Ancient Dragon
0
219
Member Avatar for addicted
Member Avatar for diegojoven

[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 …

Member Avatar for WaltP
0
99
Member Avatar for rapperhuj

why strcmp doesn't work of comparing all the characters (line, elments) in the database. what should i do?? :'(:'(:'(:pretty::pretty::pretty:

Member Avatar for Ancient Dragon
0
45
Member Avatar for fatboysudsy

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: …

Member Avatar for WaltP
0
96
Member Avatar for sundarN

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.

Member Avatar for Lerner
0
60
Member Avatar for sundarN

Hi I want to list all files and directories under a given directory in C. Thanks in advance.:S

Member Avatar for Ancient Dragon
0
39
Member Avatar for saroonah

[COLOR=red][B]good day everyone [/B][/COLOR] [COLOR=red][B]i have a smart question and it is my homework i did not know how to start and what the ideas [/B][/COLOR] [COLOR=red][B]Can you help ????[/B][/COLOR] [COLOR=red][/COLOR] [COLOR=red][/COLOR] [COLOR=red][B]Write a linear-time algorithm that sorts [/B][/COLOR][COLOR=red][B]n distinct integers, each of which is between 1 and [/B][/COLOR][COLOR=red][B]500[/B][/COLOR][COLOR=red][B]. Hint: …

Member Avatar for Infarction
0
88
Member Avatar for ozwego

So I'm designing a Dictionary for one of my classes and I'm having quite a bit of trouble when I try to return a Position, which is just a pointer to a pair<string, Element>. I can't quite figure it out -- I suspect its something I did with my actual …

Member Avatar for ozwego
0
97

The End.