Beginners (Page 50)

Copying an array into another array but in reverse
I have another program to write where i need to copy the contents of one array into a brand new arra...
[4 replies] Last: I see that makes sense. I appreciate you helping me with all this! You... (by kingkush)
by agda
Why doesnt this program Work?
Write your question here. #include <iostream> #include <string> #include <time.h> using ...
[3 replies] Last: #include <iostream> #include <cstdlib> // YOU NEED THIS #include <s... (by CodeWriter)
How do i let the user determine the size of an array?
I am trying to write a program where the user can determine how large to make the array but i keep r...
[8 replies] Last: using std::cout and std::cin are more specific and clearer than u... (by vickoza)
Hangman - trouble with strings
I have just begun programming, and I thought I would try my hand at making a very basic game of Hang...
[1 reply] : strcmp compares strings (char*). And it looks like you are trying to p... (by MiiNiPaa)
Questions about a pre-defined piece of code
I hope my question fits the forum and, if it does not, please let me know and I will kindly look for...
[2 replies] Last: (1) is an constructor with an initialisation list (the preferred way t... (by mutexe)
Why does this program work?
The program in question is the following: string text = {"one", "two", "three"}; string...
[9 replies] Last: Assumes rather than knows. "C-string" is a convention that a char* p... (by keskiverto)
Multidimesional vector constructor question
Why doe this work and the next one cause an error? #include <vector> #include <iostream> using ...
[9 replies] Last: in the second constructor in the post above, the parenthesis represen... (by MiiNiPaa)
Scope Handling Ideas
Hello, I'm writing my own file format (for a small personal project). I've looked at many different ...
[2 replies] Last: Thanks for the idea about stacks. I can't believe that I forgot about ... (by MaxterTheTurtle)
Assigning iterator and integer in same statement
Why can't you declare and assign an integer with an iterator using the comma operator? #include...
[2 replies] Last: You're right. You can only declare one variable in the for statement, ... (by shawnlau)
Size of char array decided by user input?
I want to declare a char array with not initial size. Later I will prompt the user to enter in a sen...
[15 replies] Last: 2. Just the string (using index-based instead or iterator-based access... (by andywestken)
Program returns weird output
#include <iostream> #include <cstdlib> #include <cstdio> using namespace std; int bodyP...
[1 reply] : at line 123, TPri = i-6 gives the same index every time round the lo... (by Jaybob66)
by mzzz
how to explain this phenomenon
hi, every one , i am from china, here is a question about how variables be allocated on memory. m...
[2 replies] Last: > My question is why not *pc is 0xd2 and *(pc + 1) is 0xce? ... or a... (by JLBorges)
Homework Assignment - Using array of structs with binary files
After two days of working on this, I have to raise the white flag. The problem says to create an arr...
[6 replies] Last: Thanks so much MiiNiPaa. I appreciate your it working. (by D0CHollywood)
by MrAnts
How to check if array[0] is ""
Hi I am coding a terminator for my cmd.exe, if the userinput is "" or "\n" which means the user pres...
[5 replies] Last: But you still need to make your array bigger: if you say to getline th... (by MiiNiPaa)
HELP! Data structures
Hello, so i need quick help with putting stuff in order. i have a text file: 6 v k 250 m k 280 v...
[6 replies] Last: if(A .kaina>A .kaina) { std::swap(A , A ... (by coder777)
How to increase range in C++?
Hello, everyone. I thought a lot about increasing the range of integer manually (The long long int ...
[2 replies] Last: Thanks, I'll see what I can learn... Maybe I need to use string to hol... (by PSYCHAMERON)
Blackjack-Strategy tables
I think I've found a neat way to give my BJ game computer players different strategies without a lot...
[1 reply] : What is your problem? It seems to work? (by coder777)
Magic Square Program
What am i doing wrong? Why is it not reading in correctly? I get a negative value. Write a progra...
[3 replies] Last: So you have checked that the actual text file is spelled that way? We... (by CodeWriter)
Help with finding length of an array
Hey guys/gals, I'm trying to find the length of an array. The code that I have written up thus ...
[4 replies] Last: Yes, it would be a good idea to keep counter denoting how much element... (by MiiNiPaa)
by eons93
Combat simulator game problem II
And for once its not an error question. Right now i've run into a problem. As you can see, when the ...
[3 replies] Last: Something like this, perhaps: #include <iostream> #include <vector> ... (by JLBorges)
Pages: 1... 4849505152... 61
  Archived months: [jun2015]

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