Beginners - December 2015 (Page 28)

Printing out objects in an array
 
I have to write a code for an assignment that requires me to write an array in main that will hold the objects in my class and print them out. I know that I nee...
[4 replies] Last: As JayZom pointed out, an array of Rovers is just like an array of a... (by AbstractionAnon)
Strange output
 
I just wanted to make a program which takes input from the user, puts it in a character array and then just prints the co-ordinates where there are Xs, pretty s...
[6 replies] Last: Thanks for all the help guys! (by jgg2002)
how make easy programe
 
Hi. Freinds, i'm new in c++ languges, please help me making my first programe, please help me how make i a simple and easy programe, i use Notepad++ and Dev c...
[3 replies] Last: kemort and Mutexe thinks for help me, Kemort Brother Visual Studio so... (by Abdul Qayoom)
by prgnub
Classes, objects, constructors, enums, code is down, not compiling
 
Good evening, This is a homework assignment. I understand these concepts in theory, but I'm having a hard time combining them into something that works. I am ...
[4 replies] Last: I cant see your code now, you've removed the lines that had the error.... (by Jaybob66)
Help With Template
 
I just learned it, it kinda confuses me, and i have an error: Entry point must be defined ( using visual studio 2015 community ) Give me suggestions and please...
[7 replies] Last: Hi, Thomas1965 's advice applies throughout your program, you need... (by TheIdeasMan)
Question about global variable in recursive function
 
Hi everyone, I don't quite understand the difference in output for the following program when I declare "char ch" as a global / local variable: //purpose: t...
[1 reply] : If ch is global it contains the very last input character which is t... (by coder777)
C++ ERROR.
 
Hello, when I run my program I got this error and my visual studios crashes or it asks to "Break, continue or ignore". This is the error : First-chance excepti...
[8 replies] Last: It does worry me that the number 1301 should have appeared at all, sin... (by Chervil)
getline and input/output operastors info
 
Hi everyone, Just a question. When I use getline function, I get an entire line. But after that function execution where does position point to? Before \n or a...
[1 reply] : But after that function execution where does position point to? Befor... (by coder777)
symmetric difference program does not work
 
The code I attach below is for getting symmetric difference by using two sets. When I use two sets with the same size, it seems working, but when I use two sets...
[2 replies] Last: Yeah its output missed the last element if the size of arrays is not t... (by leeli0830)
Please help with project assignment!!!
 
Sorry I just need to edited it.
[3 replies] Last: Moving filewords out of the loop would be a start. As for stopping re... (by Albatross)
String Arrays will not work
 
I've been having trouble using string arrays. After some experimenting, I've brought it down to the simplest possible code which should work. #include<ios...
[1 reply] : Arrays are indexed starting from zero string names ; creates an a... (by JayhawkZombie)
How can I continue my question until the user enter the valid input?
 
Hello, I am writing a code in c++ and I need to ask the user to enter the number between 0-4 0= quit 1-4=do something so at first I use do and while ...
[10 replies] Last: 'const' means essentially 'read-only' to protect against/avoid the ite... (by closed account 48T7M4Gy)
by bebeca
Generating Random Numbers
 
I know how to generate random numbers from 0-100 and such. But how would I generate a random number from 50 to 100?
[1 reply] : #include <iostream> #include <random> #include <ctime> int random_va... (by JLBorges)
How can I fix the infinite loop for input incorrect .txt file
 
Hello, I am making a project and this part where I need to ask the user to input the .txt file name and read each words to array. but before that when I enter t...
[no replies]
by thor36
Cannot build C++ libraries in MinGW (1,2)
 
Greetings, I have a problem building a library from sourceforge for use in a C++ program. I am trying to use MinGW32-make on a Win 7 machine. The library ...
[31 replies] Last: I see, it really is a lot of details. And surely I won't learn all the... (by thor36)
Reading Structs from a binary file
 
Hello everyone, I am doing an assignment where I need to implement queues as linked lists. So far the linked lists part is going well but the next part is to ad...
[13 replies] Last: That's the way alalakaw, let us know how you get on. (by closed account 48T7M4Gy)
by dhs2
Switching from ascending to descending
 
I am supposed to reverse the array from ascending order to descending, but everything I tried has not worked. I know it is just a quick fix, but I can't find it...
[1 reply] : You can try STL reverse: http://www.cplusplus.com/reference/algorithm/... (by TheHardew)
by Nyarxu
Opening Text Files
 
Hey guys, In this program so far a user can input text they want on a text file. Two main issues with this: 1. When a user makes a file name i need it to aut...
[1 reply] : Add .txt to the filename. (by kbw)
Wrong output?
 
Hello I made this program. Everything runs but on my programming lab it says the contents of your standard output is incorrect. Here's the expected result. Mine...
[13 replies] Last: I finally figured it out. Finally finished it. (by Serge1005)
-fpermissive
 
Hi, I have just done my Caesar's Cipher and it says that there is an error; In function 'int main()': name lookup of 'i' changed for ISO 'for' scoping [-fperm...
[2 replies] Last: Hi, The i on line 41 was not declared. The i on line 22 only lasts ... (by TheIdeasMan)
December 2015 Pages: 1... 2627282930... 43
  Archived months: [nov2015] [jan2016]

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