Beginners - March 2015 (Page 45)

SMS error
 
I need to be able to call the function Sensor when Button is on logic level 1 but I keep getting the same error:PAP_Vers_o_SMS_Sensor_com_Vari_veis.ino:103:4: ...
[8 replies] Last: A function must be known before you call it. Either you write the whol... (by coder777)
PLEASE HELP program only reading first line of txt file
 
I need help. I wrote this code. It takes information from a txt file and calculates pay, tax, and net pay. However, I cant get it to read more than one line. It...
[3 replies] Last: Yes, inside the braces that belongs to the while loop. infile.close()... (by coder777)
Why can I display every character in quotations with std::cout?
 
When I run this, the "\" doesn't show. How come? #include <iostream> using namespace std; int main () { cout << " /\ " <<endl; cout << " /__\ " <<endl; co...
[4 replies] Last: In C++11 you can use raw string literals to avoid escaping characters:... (by MiiNiPaa)
Need help with a couple errors.
 
Hi. I'm stuck on a greatest product code. I basically got it all working. When I print the location of my starting point I get the wrong location and my value...
[5 replies] Last: Oh sweet, thanks! :) (by brosephius)
2D arrays/greatest product
 
Hi, So I need to write one of those greatest product codes where the user enters the number of rows and columns, and they are to be filled with random numbe...
[11 replies] Last: Well thats all been sooo helpful thank you! I finally figured all that... (by brosephius)
Selection sort algorithm
 
I'm having trouble implementing the selection sort algorithm in a program. I need the program to print this: This program sorts a set of numbers. How many ...
[10 replies] Last: call PrintArray(array, track); after sorting work finished. or write... (by anup30)
Could someone help me with this problem? (1,2)
 
I have a problem where eight queens are to be placed on an 8x8 chessboard in such a way that no queens will be able to attack each other (i.e., lie along same r...
[30 replies] Last: activate C++11 support. (by anup30)
by Cingg
Infix to postfix converter
 
I write a infix to postfix converter 1st time by stack... but cant get correct ans. ( My input no include " ( ) " blacket ~) #include <iostream> #inclu...
[1 reply] : input 9 + 2 * 4 i need a output as 9 2 4 * + (by Cingg)
iPhone Password generator
 
So the code I've attached works well and fine, however my lines 25-33 is bulky and I have a feeling there's an easier way to pull this comparison off with a for...
[1 reply] : You have many redundant conditions there: if (array != ... (by cire)
Need help with this code ;/
 
//This program will be able to have the user choose from the menu and decide which equation to perform.// #include <iostream> #include <cmath> using namespac...
[2 replies] Last: This compiles okay on my system when I comment out system("pause"); .... (by dhayden)
HELP ME TO SOLVE THIS using C++
 
Exercise 18 - Factorial of a list of integers make a program to: 1. read a list of 10 integers into an array 2. compute the factorial of each integer i...
[3 replies] Last: Top post in the forum says not to post homework problems. The few tim... (by MrGoat)
HELP ME TO SOLVE THIS using C++
 
Exercise 18 - Factorial of a list of integers make a program to: 1. read a list of 10 integers into an array 2. compute the factorial of each integer i...
[5 replies] Last: Help me that to solve problem using c++ all code help me (by Justken)
Recursion function
 
Hello friends, I am having troubles with writing a recursion function, that returns a boolean, that finds the length of an integer. For example, if the intege...
[1 reply] : bump........ (by rddscalif)
New practice C++ video tutorials
 
Hello guys, I just started to post C++ practice video tutorials on https://www.youtube.com/playlist?list=PLN5L37CNYtT0Aufm1oUsMt4KoSaobA9g4. Please take you...
[1 reply] : Sorry here is the correct link; https://www.youtube.com/playlist?list=... (by stemharmony)
PLEASE HELP
 
Exercise 18 - Factorial of a list of integers make a program to: 1. read a list of 10 integers into an array 2. compute the factorial of each integer i...
[no replies]
Updating Unnecessarily (efficiency problem)
 
Yo wassup guys, I've just recently started learning C++ (I started 2 days ago, actually) and I was wondering if any of you would be willing to guide me towards ...
[5 replies] Last: First of all, usage of stream output for games is bad choice in genera... (by MiiNiPaa)
coloured texted display
 
In this game, player will be given a series of numbers ( from 1 to N ) and they have to guess the order in which they appear. Every time the player enters a se...
[no replies]
Order of elements in stucts and classes
 
I just found out, that depending on how you place elements in structures and classes they can have different size, for example: struct things1 { char ch; ...
[11 replies] Last: I've not read that post you gave me entirely yet, but after half of it... (by TheHardew)
glClearColor() problem
 
I have the following code: #include "SDL.h" #include "SDL_opengl.h" #include <iostream> int main(int argc, char* args ){ SDL_Init(SDL_INIT_EVERYTHING); ...
[no replies]
Error in class function
 
Hey i got errors when i pass into class function as argument an another class object. Like : 11 IntelliSense: declaration is incompatible with "int Enemy::Get_M...
[5 replies] Last: Code is working perfectly. without this Character class argument in in... (by NoName48)
March 2015 Pages: 1... 4344454647... 51
  Archived months: [feb2015] [apr2015]

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