Beginners - January 2014 (Page 17)

by wickys
Can't even manage this simple average function.
 
I don't know why but this doesn't work. #include <iostream> #include <string> using name...
[1 reply] : you can't make a local function inside another function double avg(d... (by rich1)
by Enies
AR Model programming
 
Dear user of le forum! Im am trying to implement an Autoregression model and estimating the para...
[4 replies] Last: Im so glad you took the time to help me out. I will program this now, ... (by Enies)
Problem with files
 
File does not work.Does not record information.Please help! Compile program functions for: -Enter...
[1 reply] : Please, use C++ file handling. http://www.cplusplus.com/doc/tutorial/f... (by iQChange)
fstream project 3
 
The question more conceptual type it works but the result is not what i expect shouldn't the outpu...
[3 replies] Last: You'll want a loop to read/write if you want to read/write the whole ... (by Chervil)
C++ Mastermind Help
 
Teacher gave us a project that I just cannot understand. Our task is to write a program for the game...
[7 replies] Last: If you want the computer to create a color arrangement for you to gues... (by Manga)
Move Semantics & Temporary Objects with Rvalue References
 
I just started reading The C++ Standard Library. It introduces move semantics and instructs you to g...
[2 replies] Last: > It introduces move semantics and instructs you to get introduce to t... (by JLBorges)
Boost graph library constructor
 
Hello, I am trying to construct a filtered graph in Boost Graph Library. The main steps of my code ...
[4 replies] Last: Thank you for your reply. How about using copy_graph? copy_graph(fG,... (by michelec)
Using array in function
 
Hi, I have made a program that takes name as input(char)and then reverses the letters and displays i...
[2 replies] Last: i am inputting one character at a time, it was in my assignment so I h... (by ichigox55)
by Alby94
Problem with main's arguments
 
This doesn't work from by shell. #include <iostream> #include <fstream> using namespace std;...
[4 replies] Last: Problem solved!!! Thanks to all! the problem has been resolved when I ... (by Alby94)
by Alby94
Main arguments
 
Writing name_file.txt from the shell, the program does not open the file .. #include <iostream...
[13 replies] Last: Problem solved!!! Thanks to all! the problem has been resolved when I ... (by Alby94)
Help with arrays/chars
 
Writing a code for my class and I've been stuck on this for a few days and makes no sense to me/my t...
[1 reply] : Not clear if you're trying to use the standard container array or no... (by AbstractionAnon)
by JSLN
Question : Conversions
 
While loop not working. Please suggest #include<stdio.h> #define p printf #define s scanf...
[2 replies] Last: Line 15 should pass the address of ch: s("%d",&ch); ... (by AbstractionAnon)
by JSLN
Circular linked list
 
My while loop is not working. Please suggest #include<iostream> using namespace std; st...
[2 replies] Last: As LB pointed out, your list is not getting built correctly. After ad... (by abhishekm71)
what's the matter with using private via methods in this case?
 
I wrote a derived class, see the code first plz :) class baseclass { ... int **body;//which...
[5 replies] Last: @ OP: What's the error you are getting? Are you maybe segfaulting beca... (by Computergeek01)
getch(). When I press two key at the same time, error...
 
I'm program on a game which need to move something, I learnt that getch() function can solve a movin...
[2 replies] Last: The console stream was not designed for this kind of input. What you s... (by Computergeek01)
dynamic memory allocation in functions
 
I had function call hci_host_data_pkt_gen (0x03, &data_ll_hci_rx , &hci_host_data_pkt_arr ) But ...
[2 replies] Last: I checked for dest_location and source_location Actually the problem ... (by amitk3553)
by AGZZ21
Listing prime numbers?
 
For one of my school projects I have to make a function that can basically list the prime numbers of...
[3 replies] Last: you for loop int dividers = 2; // your number will have at least... (by rich1)
This program has stopped working..
 
Hey guys! I hit a slight problem. While I don't get any error on compiling this code, when running t...
[2 replies] Last: I managed to find the problem, I was declaring an array as arr2 and a... (by brreakerr)
Vectors Issue!!
 
Hi, I'm writing a program where I have to use a vector to store the name of visitors to a hospital. ...
[3 replies] Last: I usually search a vector like this: auto myIter = std::find(myVec.b... (by Jaybob66)
by AGZZ21
Function that changes strings to all Capital letters with input?
 
I need to write a function that takes an input string and changes the string to all capital letters....
[2 replies] Last: Basically you want to loop through the string and if it is lower case ... (by giblit)
January 2014 Pages: 1... 1516171819... 44
  Archived months: [dec2013] [feb2014]

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