Beginners - December 2016 (Page 5)

C++ microcontroller/processor selection
 
Write your question here. I am having trouble selecting a microcontroller/processor from http://www.kynix.com/Product/Cate/35.html for a robotics project in C+...
[2 replies] Last: So one additional concern is the presence of a C++ compiler and a stan... (by mbozzi)
checking for 2 values of the 6 and adding discount
 
So I've just completed the shop part of my code. However, I would like to add a system such that if they chose options 1 and 2 for their choices then they would...
[6 replies] Last: Hello Andy, Sorry but I still do not quite understand whay it means b... (by javiertzr01)
how many "0"
 
how can i find how many digits "0" end record number N!(factorial N) in K-ary number system. for example if N=10000 and K=10 answer is 2499, if N=123456789 and...
[5 replies] Last: https://www.e-olymp.com/en/contests/2573/problems/20551 i cant find t... (by biwkina)
Kinect in C++
 
Hi guys I must run get depth matrix from kinect v1.8, I can do it in matlab but because I am workking on SLAM I need to have faster process, where I should? ...
[no replies]
improper assignment of values to struct members
 
Hi, I want to get info on employee code,name, age, salary from the user and store it into a struct. main() { struct person { char empcode ; cha...
[3 replies] Last: I also tried declaring empcode as a string...but it showed error whil... (by AbstractionAnon)
by arbint
Client input check
 
I have the template to get user input in a console application, I found out that this acually allow this to happen: int age = GetUserInput<int>("please tell...
[3 replies] Last: Regex (http://www.cplusplus.com/reference/regex/) can also be used as ... (by gunnerfunner)
by krego
Big number implementation - access violation reading location
 
Hello guys, I'm working on implementation on big integer and meanwhile i found an error in my code which gives me sleepless nights because I'm not really sur...
[6 replies] Last: > Does the operator += (and *=, -=, /=) need to return *this? yes, tha... (by ne555)
return value type does not match function type error
 
I created a typedef struct "modalidades", and i want to be able to save and load it from a text file, but theres this error when returning the value from my ler...
[4 replies] Last: Thank you very much, everything is working perfectly now and I underst... (by gatinha123)
Checking for multiple values
 
I'm practising my C++ by creating a virtual shop that sells items that would get you a discount if you were to pick 2 of the 6 items which are above $15. Howeve...
[4 replies] Last: Yup, this helped my understanding in arrays more and how to check the ... (by javiertzr01)
readind arrays from an input file ans storeing the the valve in an out put fole
 
Write your question here. Please, hep me answer, this question. Write a C++ program to read in two dimension arrays A and B from a file and store their sum...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ (by closed account 48T7M4Gy)
How does this function work
 
Hello all, how does this function work? especially in the second {} Thanks. int *sortAsc(int *p, int n) { int i, j; for (i = 0; i<n; i++) for (j...
[3 replies] Last: Thank you guys for the explanations. theArray = temp; //write over... (by Kevin S)
Function and pointer questions
 
I have two questions please about the code below. 1. Why is the function declared at the beginning and then structured later after main, why not structure it a...
[2 replies] Last: Thank you very much! (by Kevin S)
by VX0726
Store Number Digits Into an Array
 
For my homework, I have to input some values and display the values. I won't display the full codes because I only need help with one part where I want to verif...
[4 replies] Last: Wow, thanks! Truly you are handy, Andy :) Thanks, VX (by VX0726)
by josej
Creating Shapes with functions
 
There's something wrong with the functions I beleive, the error it gives me is in the switch function where I put the DrawRactangle and DrawTriangle, it says "e...
[5 replies] Last: You could also add a good-bye statement before line 86, something like... (by VX0726)
Int Not Returning Expected Number
 
So I am writing a program that takes user input and stores it as an integer inside of a class. for some reason right now the program is returning 1974509108 whe...
[4 replies] Last: I thank you all for your help :). This fixed the issue I was having. I... (by Bloodypizza17)
Complex numbers problem
 
How to call moduo in my class ? #include <iostream> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <iostream> #include <cmath> ...
[1 reply] : How to call moduo in my class ? moduo is a class method, how do you ... (by gunnerfunner)
by Efalir
For and If loop
 
Hi, How can i record the value tdlock_start and tdlock_end just just after the if (datavector <co) ? double co=0.2, tdlock_start=0, tdlock_end=1e20, tloc...
[1 reply] : You could write it to a log file. (by koothkeeper)
Vector vs Array
 
I have been teaching myself C++ using Stroustrup's PPP book. I was a complete beginner, but now I'm a third of the way through the book. A lot of the exercise...
[5 replies] Last: The statement that "vectors are slow" is too broad a generalisation. F... (by Chervil)
Sorting a list, vector<struct>
 
Hi, I'm trying to alphabetically sort a vector of structures based on the last name(if the last name matches sort on first name). But when I do this I get like...
[9 replies] Last: #include <iostream> #include <algorithm> #include <vector> #include <... (by lastchance)
by fixed
Why is my code so slow?
 
I'm working on a exercise, which has a time to compile limit. Im not looking for any other way to solve this problem, but an explanation. Why is this code so sl...
[3 replies] Last: Though I think Peter87 is right, within the timed section is a cout st... (by Chervil)
December 2016 Pages: 1... 34567... 28
  Archived months: [nov2016] [jan2017]

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