General C++ Programming - May 2016 (Page 14)

Ignore
 
Wrong forum. Delete please.
[1 reply] : This is a C++ forum. 'Node' is the return type of the method. If the ... (by helios)
by Peril
Checking A Word Reversely
 
Hello. I was wondering how to check if the reverse of a word equals to the word inputted. But, I couldn't translate that to a code. It just won't work for m...
[19 replies] Last: Also, thank you Chervil for explaining the point I had misunderstood. ... (by Peril)
by Peril
Functions & Array Parameters.
 
Hello. I've been stuck on this question for a while... I got this question in my Assignment: Write a LetterCount function (and the main() function to test it)...
[5 replies] Last: > if (line >= 'A' && line <= 'z') This is not a great idea, favou... (by JLBorges)
can anyoune help me to check my code?
 
#include <iostream> using namespace std; int main() { int side; int row; int size; cout<< "Please enter a number"; cin >> side; ...
[1 reply] : You don't say what your code is supposed to do, so it's hard to say if... (by AbstractionAnon)
Histogram help
 
Can Someone help me with a histogram that gets its values from an array in an input file. #include <iostream> #include <fstream> #include <string> us...
[1 reply] : Please don't double post: http://www.cplusplus.com/forum/beginner/1905... (by AbstractionAnon)
Struct member with variable data type
 
I have a structure I am creating that has one data member (Parameter) that is an enumerated value. There are fifteen possible values in the Parameter enumerati...
[2 replies] Last: Thank you. I will be sure to use code tags next time. It's always n... (by jaysonprichard)
code help
 
So I am getting errors in my code. Can someone help me figure out what I am doing wrong? this are the errors I am getting: 49: error: a function-definition is n...
[5 replies] Last: Hi, If your IDE doesn't auto-magically do closing braces for you, the... (by TheIdeasMan)
Help with Arrays, Menu, and Sorting Functions
 
So, I have done projects with all of the following, and now it is my time to compile them all together... And I can't seem to do it... All I'm really looking ...
[6 replies] Last: I agree, OMG formatting: #include<iostream> #include<string> using n... (by Ready4Droid)
Please help.. too many if statements??
 
#include <iostream> #include <stdlib.h> #include <algorithm> using namespace std; int main() { int num1 = 3, num2 = 6, num3 = 1; using std::cou...
[4 replies] Last: Also, if you're compiler supports C++11 or C++14, you can pass multipl... (by Ready4Droid)
by a10e29
Advise Please 2.0 (1,2)
 
Edit: It might be a better idea to start with TheIdeasMan first post > I've moved the functionality (non gratuitously, disabled the other classes until I feel...
[35 replies] Last: Hi, We still seem to be at cross purposes here. We all (the other res... (by TheIdeasMan)
by homing
endless loop with thread
 
Hey guys, I haven't used thread for a long time and would need some help. I would like to have a endless loop: Update() { while(true){...} } I know ther...
[7 replies] Last: #include <iostream> #include <atomic> #include <thread> #include <chr... (by JLBorges)
by leonsa
Data store from file issue
 
Hi, for my project I need to take information from the text Text: NAME YEAR PRICE ID NAME2 YEAR2 PRICE2 ID2 .... .... ... ... ... it goes like that for 150...
[3 replies] Last: Use a loop of some sort (while or for) (by Little Captain)
by Jao
for loop problems
 
Hello everyone. I am new to the whole coding and programming scene and currently learning. This is the code. #include "stdafx.h"; #include <cstdlib>; #in...
[3 replies] Last: Thank you by the way. After I changed the if statement to i == 1 it wo... (by Jao)
Stack - Infix expression tree
 
I'm trying to build a tree from an infix expression that will then print out the prefix and postfix versions using separate functions (I've already written thes...
[4 replies] Last: @AbstractionAnon that's what I'm asking for help with.. I have functio... (by btoohey4)
Class and Functions help
 
Hi, for class i was given an assignment to create a program using a class called student and various methods within it. The purpose is too calculate a grade bas...
[1 reply] : Please don't double post. http://www.cplusplus.com/forum/beginner/1904... (by AbstractionAnon)
by byOmer
How to do input function in keyboard?
 
I want to input in keyboard a function. For example ; x*x+y*y . input x (example 2) and y (example 3) and this function then calculte this 2*2 + 3*3 . output 13...
[2 replies] Last: no this is wrong. it will be ; cout << "Input a function" ; // (we ... (by byOmer)
by Zyety
Please help, Not sure what im doing wrong
 
I want to use a conditional statement to create the objects of my 2 derived class depending on the user's input and i got some error. I turned off linker. STUD...
[11 replies] Last: You're welcome - glad it worked! (by MikeyBoy)
by mtali
i need to make a given project. i need consultation of expert programmer
 
I am given a project on either a circuit simulation program or an aircraft trainer both using c++ object oriented. Please help me on this. Thanks
[no replies]
pointer to function error
 
I keep getting the error below when I try to pass a function pointer as a parameter in function fx1. #include<iostream> int fx1(void(*p_funct)(int)) ...
[5 replies] Last: int fx1(int(*p_funct)(int)) { (*p_funct)(10); } is more commonly w... (by cire)
by RichaS
OLEDB Provider problem
 
I am facing a problem while upgrading one of my code from VS 6.0 to VS 2012, written in C++. This component is an ATL OLEDB provider which is consumed by the...
[no replies]
May 2016 Pages: 1... 121314151617
  Archived months: [apr2016] [jun2016]

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