Beginners - November 2016 (Page 13)

help me finish this homework assignment
 
Write your question here. Hello. I am a very beginner to coding. My code will not compile because it says undeclared identifer at the bottom and underlined th...
[4 replies] Last: Thank you so so much!! (by rdigney)
Hanoi Tower
 
Hello everyone. I'm trying to understand the program below witch consists of hanoi tower algorythm or something like that, but i just can't figure out how to pa...
[1 reply] : http://www.cplusplus.com/articles/D2N36Up4/ It is called recursive fun... (by Happilicious)
input xy coordinates and stuff
 
What is wrong with my program? I'm trying to write a program that finds and returns the midpoint of two xy coordinates and ask the user if they wish to conti...
[1 reply] : Line 10-11: Why does Point have two x and two y values? A point shou... (by AbstractionAnon)
While loop for decision making
 
Hello guys, I'm coding a program where the student will enter their mark and the program will display their grade. For the students' ease, I want to let them ke...
[2 replies] Last: Everything is correct, just replace while loop with do while loop. 'de... (by Happilicious)
by Nakruf
Gives error but works.
 
I know I can fix this by using char arrays but why do the code give me an error when i'm using strings? #include <iostream> #include <string> #include <Win...
[1 reply] : c_str is a member function of a string, not a field. Put parentheses a... (by booradley60)
no output .. Vector.at()
 
Can u help me plz with this #include <iostream> #include <vector> using namespace std; int main() { int Ze=1; vector<int> colume; int IT...
[3 replies] Last: Oh xD .. thank you =D lmao (by zeroblank)
by ovHel
[REQUEST]Code Review
 
Hello, I've created code for a quiz game over the C++ language. It works fine and everything. However, I feel like the code could use improvement. Specifically ...
[4 replies] Last: Suggestions. Use arrays (or better vectors) and loops. Separate data f... (by Chervil)
Review and suggestions for my code
 
As this is my attempt to code a console application, and by far my longest code yet. My code is kinda messy and kinda janky to achieve the desired result. It...
[4 replies] Last: @jib Noted, thank you very much for your feedback and help, i really a... (by Happilicious)
Char to asciii
 
Hello, I have problems getting this convertion, I already did it, int (ascii) to char, but I can't reverse that. This is my code: cout<<"\nTotal Cade...
[3 replies] Last: Yep, I have to use unsigned Thanks (by martinone)
Ceasar cipher
 
So I this Ceaser cihper code that I wrote, but I would like it to only encrypt every fifth letter. So if I write, aaaaaaaaaaaaa it would become nnnnnaaaaannn. ...
[3 replies] Last: Every fifth element refers to elements with zero-based indices 5n fo... (by mbozzi)
Convert .BMP to .JPG
 
I am relatively new to C++ and I have been searching and to no avail can I find a way to convert for BMP to JPG. My source is: #include <stdio.h> #include ...
[3 replies] Last: Or perhaps even simpler: if (! ERROR_SUCCESS == std::system("mogrify ... (by mbozzi)
Count from 10 to 0 to 10
 
Write your question here. #include <iostream> #include <windows.h> using namespace std; int main() { int a=10; while(a>=0) { ...
[2 replies] Last: Thanks a lot! (by imstuux)
Unable to input plz find error in my c++ code
 
I am inputing book name, no of pages and price using structures but in 2nd time input some problem is occuring please rectify and help me... #include <i...
[1 reply] : Why do you have an array of title in your structure? Since you only h... (by jlb)
how to find out the length of an array?
 
I have a function returning a 2D array which the size dynamically created at runtime. int** getArray() now after i call this function, how do i fi...
[4 replies] Last: While it is not as user convenient as using STL containers, particular... (by closed account 48T7M4Gy)
SDL Question!!
 
The question is in image forms so please click link here to view qns https://drive.google.com/file/d/0B0g6bHoWNSw8MTZNRXFSUGxlVEU/view?usp=sharing The given...
[4 replies] Last: Thank You got it =) (by student01)
by mgala
Time difference computation not functioning properly
 
Hello, I am writing a program which relies on the calculation of two different times difference, converted to minutes, input by the user. Currently, going from ...
[2 replies] Last: Any time you find yourself writing very similar code more than once, y... (by dhayden)
by MarkUK
Error: ld returned 1 exit status
 
Hey all, still kinda new to C++ . I'm learning basics from tutorial and getting error I shouldn't be getting. I left @ where the error occurs. It says "First...
[2 replies] Last: Dude ! You saved my life ! Haha ! It didn't occur to me that the seco... (by MarkUK)
Strlen() always returns 6 or 0!
 
Hello All, I am trying to count the number of characters in a user entered string. Here is my code: #include <iostream> #include <iomanip> #include <stdio.h>...
[12 replies] Last: The problem is the memory holding the string is released, and at the m... (by liuyang)
Command Line - reading and displaying
 
Qns: Write a C++ program that reads from the command line the income and expense of four particular months. Read in the values from the command line, stor...
[2 replies] Last: Thank You =) (by student01)
Unresolved external symbol
 
Hey guys. Doing my homework and struggling to find out why this error occurs. Error LNK2019 unresolved external symbol "class std::basic_ostream<char,stru...
[2 replies] Last: Alright, looks like I actually didn't pay enough attention. operator<<... (by Hampton)
November 2016 Pages: 1... 1112131415... 44
  Archived months: [oct2016] [dec2016]

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