Beginners - April 2014 (Page 34)

by RBMenz
How to make a beep
 
I am very new to coding. C++ is my first language and I've been learning for a few weeks now. I am trying to output a beeping noise and I've read about \a, \7...
[3 replies] Last: http://www.google.com/search?q=arduino+use+speaker+programming (by helios)
by jm94
Writing a function
 
Hi, i need help answering a question from a past paper. How do i write a function called "foo", that accepts a 1-dimensional array of double its size as an un...
[4 replies] Last: Read a good tutorial on returning by reference / pointer (pass back po... (by JockX)
setw(); HELP.
 
how do I make the output of the " | " outs in one vertical line, as you can see, it prints something like this... 5 |9130 5.2 |11130.1 5.4 |13465.4 ......
[4 replies] Last: I don't know about tutorials on iomanipulators, but this start here: h... (by JockX)
Question about cout
 
So I have a question just to see if it is possible. I assume it is. I am using Visual Studio and this is a console application. Below is just a portion of t...
[2 replies] Last: Write a function and wrap all the opening file and error handling beha... (by JockX)
by dean93
HELP with simple code needed
 
I having problems getting the correct answer. forceB =400,lengthAC=8,lengthAD=6 when I check I get the correct answer for ForceDC and Ay but when I solve for sh...
[4 replies] Last: I'm working with an MFC application so that code doesn't work, do you ... (by dean93)
by venros
TicTacToe-Linked List Winning Conditions
 
Hi guys, Im new to linked list so bear with this code. I'm stuck on the winning conditions, and the one I have currently will simply not work if I get x in pos...
[6 replies] Last: CodeGoggles, that was a left over code, Its supposed to change player ... (by venros)
Writing a Card Game program errors
 
I am trying to write a program for the card game Old Maid, but I am getting some errors which I don't know how to fix. My main function isn't complete yet, but ...
[4 replies] Last: Thanks! That took care of the compiler problem. And thank you for the ... (by cjn5143)
Node Linked
 
Thx
[2 replies] Last: You'll want to make a function to insert a head for your linked list o... (by closed account 2UD8vCM9)
Overloading << & >> for an object
 
Microsoft Visual Studio is telling me, with a red squiggly under operator, "Error: too many parameters for this operator function." I looked up how to overload ...
[5 replies] Last: Problem solved! Thank you! (by JRimmer)
Sorting Algorithm
 
How do you implement a code that tests if the sort (insertion, bubble, selection) is stable? For example, 1. I have an array of ints (4, 5, 6, 5, 4, 6) ...
[4 replies] Last: using std::multimap, place each value into the map along with it's cor... (by Smac89)
a fatal error
 
so i wrote this program and its comming up with this for an error LINK : fatal error LNK1168: cannot open \\eit-fc-ifsc\userdata\oxkyongmccl\My Documents\Visua...
[2 replies] Last: yeah I did. I got it figured out though thank you. :) (by owenkmc)
counting duplicate array need help
 
Hi, I am learning computer science this semester, and having trouble with my homework. I think I am heading the right way. but it keeps giving me infinite loop...
[11 replies] Last: http://www.cplusplus.com/reference/map/map/ (by LB)
Arrow Membership Operator
 
The line pfish->kind = "guppy" produces an error statement: "invalid array assignment." Why does this happen when I'm assigning the address of the first char el...
[3 replies] Last: char kind = "guppy"; is an initialization. char kind ; kind = "gupp... (by LB)
Infix to Postfix (can't figure out my errors)
 
Hello, I've searched through the Infix to Postfix threads and I wasn't able to find my mistake. Hoping I can get some perspective from someone. Thanks in adva...
[no replies]
Can getline (cin) store more than one variable?
 
For example: #include <iostream> #include <string> using namespace std; int main() { //Variables string first_name; string last_nam...
[6 replies] Last: You should never worry about efficiency. Always use the most elegant p... (by LB)
need a word to output in an outfile
 
In this one program that i need to write for class, i need to take either 1 or 0 and have it turn into yes or no respectively. ifstream infile; of st...
[no replies]
A function that increments
 
How would I write a function that increments something like a total of cars and the adds 2.00 to a cash total. #include <iostream> #include<iomanip> usi...
[3 replies] Last: your payingCar function could do something like, amount+=2.00 and tota... (by pepstein)
by Subo93
files
 
when I enter itemcode and item and press enter it only outputs the "Enter itemcode,item and price"twice at once. Can anyone fix the error..? thanks.. ...
[1 reply] : That's not possible, your for loop can only run 2 times in total. (by LB)
Flags - flags and setf (1,2,3)
 
//Hello guys!!! //First, how should you translate flags into a understanble language? They could call them like iosettings or iotools, right? Why "they" call "...
[59 replies] Last: https://www.youtube.com/watch?v=l8wmvP0vrVM (by closed account jvqpDjzh)
wordcount using functions? please help!!
 
Hi. i am a beginner at C++ and i need help with this program. i am trying to count specific words in a function, i think i am close at solving the problem , but...
[13 replies] Last: oh ok, thanks for the help anyways. (by JulyZerg)
April 2014 Pages: 1... 3233343536... 67
  Archived months: [mar2014] [may2014]

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