Beginners (Page 4)

cout and cin
 
hi guys I'm just wondering unlike streams that are objects such as ifstream and ofstream how come we...
[4 replies] Last: ohh ok cout and cin are already objects created belonging to istream a... (by adam2016)
by Bopaki
Book2.cpp:187: error: expected primary-expression before '{' token
 
I have extracted this one line in my program that gives the error above I do not know what is the m...
[2 replies] Last: [quote=Peter87]If you have such a compiler you will get another error ... (by Chervil)
Index sorting within loop
 
I am supposed to write a program that let the user enter the amount of students => enter the height ...
[2 replies] Last: @jonnin thank you so much, i really appreciate your help! (by jayiswho)
Can't Debug Need some guidance [Do-While Loop]
 
Write a C++ function that get two numbers from the user and displays the result of first number rais...
[4 replies] Last: Thank you Guys but I had figured out a long time ago before you guys p... (by ammar629)
Tic Tac Toe Using Tree-Based AI (Minimax)
 
Hi guys, I am doing an assignment that requires me to use tree nodes and minimax algorithm to make...
[1 reply] : enum Mark { X, O, N }; // N == empty Mark enum Status {WON, LOST, DR... (by nuderobmonkey)
I'd like to get some help with splitting my main function into different main functions and pass array data to functions.
 
So basically, the main is only supposed to have the file input output. but the lowest, highest, sum ...
[6 replies] Last: Read http://www.cplusplus.com/doc/tutorial/arrays/ (by keskiverto)
Repeating older question
 
Ive asked this question before although now I know a little more. So to restate what I asked. This...
[5 replies] Last: Thanks Yolanda for the help. I'm still on C++14 so dont know if that w... (by donda97)
Dynamically Allocated an Array of Classes
 
I am trying to write a test file that dynamically allocates an array that i use to call the parent a...
[2 replies] Last: Thank you so much! I had something like that before but I couldn't get... (by briscoeeee)
Why doesn't my assignment operator overload work properly?
 
I am trying to create a String class like so: class String{public: string s; String& operator=(...
[2 replies] Last: Hi Dave, I am not sure your problem is with your class code. It app... (by JayBari)
Searching CString for certain phrase
 
I'm trying to write a function, findHaHa(), that searches the cstring the user input and returns whe...
[7 replies] Last: Repeater, thank you so much! (by alexa7707)
by yukine
Implicit conversion loses integer precision: 'long' to 'int'
 
hi! I was trying to make a prime number test and this warning came out. I surfed the web and found ...
[3 replies] Last: I will help you to see it: long n; long a; ..CHOP ... (by jonnin)
Open file and read from a file in Functions
 
Hi, I'm working on a menu where option 1 is ask user for a file name, and option 2 is read from a fi...
[6 replies] Last: Yep Chervil's is definitely the way to go. Using references for fstrea... (by Ganado)
converting a coloured image to a black/white
 
Hi guys, I want to write a program that it takes a colour image and converts it to a black/white im...
[2 replies] Last: *greyscale* single byte image conversion is simple, simply average the... (by jonnin)
finding in string
 
I want to find the position of str in str2 if it exists and say a number that shows where it starts....
[1 reply] : I don't know what your code is trying to print, but find() return the ... (by kbw)
find and space
 
I want the user to enter a word and a sentence then I want my program to find the word in that text ...
[3 replies] Last: #include <iostream> #include <string> #include <cctyp... (by lastchance)
Go back to a certain part of the code.
 
I'm trying to create a program where you have the option to calculate 5 different things, and I'm st...
[5 replies] Last: @Repeater Thanks a lot ! That was exactly what I was looking for ! (by D3V1LL0)
by skt232
how to stop loop and only loop specific info
 
Write your question here. switch (option2) { case 1: ...
[1 reply] : PLEASE USE CODE TAGS SURROUNDING YOUR CODE: [co de] [/co de] Yo... (by Ganado)
help me
 
fuction x(); in main can not declare...plsz help me ? #include<iostream> using namespace std; ...
[6 replies] Last: Hello phongvants123, Now that you understand better this should make ... (by Handy Andy)
Ncurses backspace problem
 
Hello, i'm having problem with Ncurses and backspace. In an input loop, while space cancel a char,...
[3 replies] Last: What is the type of ch? It should be int. (by Peter87)
What is the bug here?
 
Write a C++ function that get two numbers from the user and displays the result of first number rais...
[3 replies] Last: Ty (by ammar629)
Pages: 123456... 55
  Archived months: [sep2017]

Cannot post in this page. To post a new message, go to the first page.