General C++ Programming - May 2018 (Page 6)

Programming Arduino hardware with c++
 
Hello today i bought an arduino kit and i want to know if is any form to program it with the c++ language
[2 replies] Last: Or, more accurately, no, you can't program an Arduino with C++. The Ar... (by helios)
Implement a Map using Hash Tables, program keeps crashing.
 
Hello, I'm trying to create a function that returns true or false if a key is inside a map. My code keeps crashing at line 11 for some reason. My private var...
[2 replies] Last: Hey, I took your advice and it gave me the out of bounds exception. Gu... (by agelakute)
Linked List
 
Hi so this is my code, 1.After I input the elements then use 000 to exit, it also takes "000" as an element, which I dont need. 2.When it reach search, i...
[3 replies] Last: insertstart and insertend: if you insert into an empty list then must ... (by dhayden)
by yurmom
Need help with this
 
this is what I am supposed to do and what its supposed to look like: Write 3 functions: a) Function fill2DArray will fill each element in a 2D array with a r...
[1 reply] : First, please use code tags when posting code. See http://www.cplusplu... (by keskiverto)
by Heymid
How are strings printed without calling an operator function?
 
I'm wondering how a string variable "x" can be printed out by just typing "x", without any parentheses in the end. I understand that int and char etc. can be pr...
[2 replies] Last: You're right. The << operator function calls a function to print the s... (by Heymid)
c++ structs/ vector/array
 
I have no idea how to do this program and need it done from scratch. program directions link: https://doc-14-90-apps-viewer.googleusercontent.com/viewer/s...
[1 reply] : The links gives an 403 Error(forbidden). Better to post the assignment... (by Thomas1965)
I need help with this homework!
 
Hey guys, I have a project which I've been trying to do, but I don't know how to do it. Can you please help me a little? -Album database: Create a program t...
[5 replies] Last: #include <cctype> #include <iostream> #include <iomanip> #include <str... (by davidllerenav)
C++ Snippets
 
/*C++ Program that contains four user defined function(s) addition(), subtraction(), division(), multiplication(). Develop a calculator as follows: • In mai...
[2 replies] Last: @Osmx99, Unless you have a question, please don't post your trash here... (by tpb)
by lidder
Airport Simulation.. keep displaying wrong results
 
// so my program keep displaying wrong results. // the problem is that it keep displaying only one airplane took off in every simulation. no matter what I inp...
[5 replies] Last: Here is the output from the program above: The amount of time needed... (by dhayden)
by wafty
C++
 
i want to thses .cpp files and .h header file put in one .cpp file without using separate file only one main.cpp for the example i want to put all these file...
[2 replies] Last: Is it possible? Yes. You'll have definitions and declarations impleme... (by keskiverto)
Detect if two rectangles overlap (objects collide)
 
Hi, I need to detect if two rectangles overlap. The first rectangle is an object, and the second one is an obstacle. 0, 0 coordinates is the bottom left corner...
[9 replies] Last: return (RectAX1 < RectBX2 && RectAX2 > RectBX1 && RectAY1 > RectBY2 ... (by dhayden)
Please Help, Sorting Program
 
I've created this program and it is wrong. It is written for this assignment. (Sorting) Read a set of numerical grades from the keyboard into an array named gr...
[1 reply] : Please use code tags when posting code. See http://www.cplusplus.com/a... (by keskiverto)
by jaituk
I NEED HELP WITH THIS FUNCTION PLEASE
 
This is a function in the program I'm working with: void hacerReserva(int **av, int fil, int col) { int f,c, dni; cout << "Dar Fila y Asiento:?"; cin ...
[3 replies] Last: Great!! Thank you very much (by jaituk)
by emayu
Transform for loop into while loop
 
Hello! I am trying to resolve a sudoku and i have got this code that is working well. I would like to transform all the for loop into a while loop, I'm trying f...
[1 reply] : I would like to transform all the for loop into a while loop Why?... (by helios)
Computer Science Forum Grand Opening
 
Hey Everyone, I've created a Forum dedicated to Computer Science. It would be great if everybody were to post and ask questions relating to Computer S...
[no replies]
Zipcode
 
I'm having problems with the output of my zip code. I want it to be 32 characters long. The string I have put in for the beginning of the output won't appear. A...
[1 reply] : Why does your function bc always return "" regardless of the input. A... (by Thomas1965)
Roman numeral addition
 
#include<stdio.h> #include<string.h> int digit(char); void decimal2roman(int num){ int decimal = {1000,900,500,400,100,90,50,40,10,9,5,4,1}...
[3 replies] Last: you have used wrong int num of base values you have to find the number... (by shivkumar12)
Different Outputs for C++ Project (used atoi and atof)
 
Here is my input file: Plain Egg 1.45 Bacon and Egg 2.45 Muffin 0.99 French Toast 1.99 Fruit Basket 2.49 Cereal 0.69 Coffee 0.50 Tea 0.75 ...
[3 replies] Last: (Except on the initial post) you can use the format menu to the right:... (by lastchance)
by vkalam
issue with fscanf
 
Hi, please help with below program. it is just reading a file and printing it. while reading the file i am copying last two fields into character arrays. - aft...
[6 replies] Last: Ok here is a dumb question - my current bit of non-working code is ver... (by CharlesPhillips)
test program
 
Hello, can someone help me? Trying to figure something out and I can't see it. I'm getting error: no 'void Account::setannualInterestRate(double)' member fun...
[1 reply] : you declared void setAnnualInterestRate(); which takes no arguments... (by ne555)
May 2018 Pages: 1... 45678... 11
  Archived months: [apr2018] [jun2018]

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