Beginners - May 2014 (Page 37)

by Chubby
Array Problem
 
Problem is my code is run forever. Can someone show me what is make my code run forever? thank you #include <iostream> #include <fstream> us...
[4 replies] Last: Vector is an array with features. If you know the behavior of arrays ... (by closed account j3Rz8vqX)
Polygon Drawing
 
hello guys. I am stuck in a part of my assignment where I have to use a function which draws a polygon. The parameters of the function are void drawpoly...
[2 replies] Last: Thanx alot buddy :D you solved my problem :) (by DaniAlves)
play sound in a looping program
 
i want make game with sound in it. i found code about play wav in c++. the program work, but that make my game not looping?? #include <iostream> ...
[no replies]
Trouble with Array and function.
 
Good afternoon, I have an assignment that I am having some trouble with, The program needs to receive data on 12 months of rainfall, then display the total ra...
[4 replies] Last: I finally saw what you were talking about, now it is working perfect. ... (by BrCplus)
Problem reading strings
 
I'm writing a program that reads a users name and stores it in a dynamically allocated array, however when reading the name, it works fine if it's a single word...
[2 replies] Last: I'm not 100%, but maybe you could replace the cin at line 24 with: ge... (by poteto)
Electric motor
 
Hi folks, I am writing a program to calculate and output Torque and power using, a multitude of values, which I can post what exactly they are if you would lik...
[11 replies] Last: Your for loop will since you calctor return value is > 0. I assume th... (by LowRider)
Calling Variable from other classes
 
How do I call a variable from one class to use it in another? The code is a bit off but basically im trying to take a variable from the class and use it in my m...
[7 replies] Last: I was coding on the fly, the correct function declaration would be: i... (by closed account j3Rz8vqX)
Broken library?
 
I'm pretty darn sure I've done something to mess up my <cstdio>. Whenever i'm including that lib it makes this insane error that it nested to deep while it o...
[14 replies] Last: C++ compiler writers have to juggle an insane lanugage syntax with mul... (by Duthomhas)
fstream
 
My question is when i inside a thing to file but the file didnt update ? But it did display on code when i run it again. #include<string> #include<fstrea...
[7 replies] Last: coder777:When i put that in there my complier say:Segmentation Fault (... (by CodingisFun)
Problem reading in Data Files
 
Hello, I am trying to read in a Data file and I am having some issues. My problem is that I need to read in a file with an unkown amount of phone numbers. For...
[1 reply] : a) i suggest instead of using standard c libraries like this: #include... (by Little Bobby Tables)
Algorithm effectiveness
 
Hello, in some situations I meet while programming I am wondering about effectiveness of algorithms/functions I use. For example I dont know if it would be bet...
[4 replies] Last: And this is understanding that I need. I mean I think Im good at math,... (by Furjoza)
by ameneh
mersenne twister with different seeds
 
I would like to implement mersenne twister for my simulation : I have different abjects and I want to have a different seeds for each of them. I would like to...
[10 replies] Last: > I would like to understand the logic behind the warm up. When cert... (by JLBorges)
programme CAN
 
Bonjour! j'ai un mini-projet sur les convertisseurs analogique logiques, je dois faire un programme qui convertit un signal sinusoidal en un signal binaire , ...
[4 replies] Last: on est un groupe de 3 , et ma partie c'est la quantification et jusqu'... (by sokaina)
by Huppa
Function program (Fahrenheit/Celsius Calc)
 
I am attempting to write a program that converts Fahrenheit temperature into Celsius and vice versa. As stated in the title, I am attempting to do so by the use...
[4 replies] Last: Delete lines 17-18. Lines 20 and 23 are fine. They will call the ... (by AbstractionAnon)
If bad command, skip rest of line
 
Hey all, I was wondering, what is the easiest way to ignore the rest of an input line if there is bad input from the first word in a string. Essentially I rea...
[6 replies] Last: Since your input is in a series of lines and each line stands alone, I... (by AbstractionAnon)
Pointer to the first struct element
 
I have two input files. One contains a menu of 20 food items and the other contains orders placed on certain days. I have declared a structure for both. The job...
[9 replies] Last: You need to do the following: 1) Allocate an array of 7 doubles (tot... (by AbstractionAnon)
by JohnyL
Problem with class declaration
 
Hi! I am using VS 2013. I have a problem with class. The compiler says: Error C2079: 'arr' uses undefined class 'Array' . How to fix it? #include <iostr...
[6 replies] Last: Now I get it. Thanks for explanation! (by JohnyL)
project help (again) :(
 
I am having trouble getting rid of 2 errors and I'm just about out of ideas. The errors read as follows: Error 1 error LNK2019: unresolved external symbol...
[6 replies] Last: Well in the example below I've not bothered implementing the other fu... (by Codermik)
by punpun
program failing during tribonacci???
 
For my assignment, I need to create a io interface routine for the tribonacci equation but it keeps causing the program to stop working and completely fails. An...
[4 replies] Last: ohhh okay i see what you're saying. sorry about that!! i need to have... (by punpun)
play music using c++
 
hey guys...this is my first question here. How can we play a sound file in c++?
[1 reply] : You don't want to reinvent a wheel. In other words your application s... (by keskiverto)
May 2014 Pages: 1... 3536373839... 55
  Archived months: [apr2014] [jun2014]

This is an archived page. To post a new message, go to the current page.