Beginners - March 2015 (Page 9)

by SCB3
Random numbers in a array (1,2)
 
so in a minesweeper game, I am trying to set the mines on the array to be random, but this function just crashes the compiler now minesweeper is set as min...
[23 replies] Last: THANK YOU! Now I can focus on the rest, I need to output a number whe... (by SCB3)
Dev C++
 
I want sort 2D array with Dev C++. Please help me!
[1 reply] : Dont Double Post (a third time and I'll remove you're threads). I answ... (by TarikNeaj)
how to sort MULTIDIMENSIAL ARRAY. help me please!
 
how to sort multidimensional array. For example 4 5 4 6 7 1 0 7 5 3 11 4 2 9 15 3 0 1 0 7 4 6
[1 reply] : http://lmgtfy.com/?q=Multidimensional+array+c%2B%2B+sort Edit: This g... (by TarikNeaj)
Problems understanding base and derived class connection
 
So i was having this question "What members of a class can be accessed from a class derived from it?" I thought that it depends on how we use this base class ( ...
[15 replies] Last: Ohh that must be it, i'm using 2013 version :) Hey but i'm feeling a... (by etrusks)
by oseri
Different definitions of inline functions ?
 
If a inline function declaration is provided in the header file then every translation unit should contain this function's declaration and they should be the sa...
[2 replies] Last: what happens if the definitions are different amongst translation uni... (by MiiNiPaa)
by prhray
Can't identify what is wrong with my code.
 
I wrote this code to check whether the user-entered integer is prime. If not, the program is to display the integer's factorization as a product of primes in as...
[6 replies] Last: Thanks. Problem solved. (by prhray)
xtlqi.cpp problem
 
Hello. I'm trying to write a code, which would first generate a random matrix and then find its eigenfunctions and eigenvalues using routines tlqi and tred2. Ho...
[2 replies] Last: Thanks, I figured it out already though. My programming knowledge is r... (by Katka01)
Please help ! :(
 
Error at cout<<duplicate(x, y, z); error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable co...
[2 replies] Last: OHHHH I GET U ! (by babyybabyy)
what is wrong with the code?
 
It builds the code but when i run it, it just crashes it says "the stack around the variable 'names' was corrupted" #include <iostream> #include <fst...
[2 replies] Last: const char CDTitle = 50; char names ; //Variable names contains 50 el... (by MiiNiPaa)
Do-while and for loops for guessing game
 
My code is running correctly, only I'm not sure why I'm having to press "ENTER" when the user gets the answer wrong and loops back around for the same hint. I ...
[1 reply] : Remove line 59 and 60 and your code will work as intended. If you n... (by SoConfused)
Problem with 'for' loop in a function
 
Hi, for some reason this program won't compile. There appears to be something wrong with my 'for' loop in the void revCopyArray function. Could someone please t...
[4 replies] Last: Got it. Thanks for your help! (by closed account N1Co216C)
Problems with Payroll Program
 
I can't figure out what I'm doing wrong with this program. I'm required to ask the user to input hourly rate and numbers of hours worked and it should calculate...
[1 reply] : You must have gotten the instructions wrong. If you are only allowed ... (by fg109)
Hey peoples, just a quick question/statement
 
Write your question here. Okay people, I'm just gonna level with you here. This is one of the worst things I've had to go through since jumping off a building,...
[3 replies] Last: Not thenewboston. That site is terrible. Get or use a book to learn t... (by winStudent)
what operator to use?
 
i am having trouble figuring out how to get the last part of my output. i already figured out how to count the individual integer digits and use modulus to sum ...
[6 replies] Last: Are you sure that worked for you? That digitcount function does the... (by fg109)
by skilly
Property behavior through proxy object
 
Hello, all! I just started learnin' myself C++ this week and coming from Python, there are a lot of concepts that are similar, but certainly a lot that are d...
[2 replies] Last: TarikNeaj, Thanks for the reply! I am using the "template<>" part th... (by skilly)
Outputting numbers issue
 
I am having some issues finalising a program which outputs either prime numbers or perfect numbers, depending on what the user desires. The limits are between 2...
[3 replies] Last: A rough idea is to check if all its factors sum up to the number itsel... (by Aceix)
Car Instrument Simulator
 
I keep getting errors on the following programming challenge, any help would be greatly appreciated. Instructions of the assignment: Design a set of clas...
[11 replies] Last: I understand that, but I'm a little confused on how to work between cl... (by riceballs)
by slp99
Generate Random Numbers
 
Hello Everyone, I am new to C++, this is my first class ever. I have a homework assignment to write the below code. I am stuck because I need it to look like: ...
[7 replies] Last: You can do a counter if you wish. int counter = 1; for(10 times) ... (by It3rat0r)
Array Help/Guidance?
 
Write a program that sorts a given integer array in descending order. Hello new here and trying to do an array.
[3 replies] Last: uhm. If you want it 1 2 3 You just add endl instead of ' '; cou... (by TarikNeaj)
by HG319
Using a stack
 
I am having trouble with the code. I was wondering is anyone can see where I am going wrong. I need to check if the string has the same amount of K's and J's...
[4 replies] Last: thanks, the function returned one so I know it worked (by HG319)
March 2015 Pages: 1... 7891011... 51
  Archived months: [feb2015] [apr2015]

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