Beginners - October 2015 (Page 41)

need help with constructor
 
getting error conversion from'std::vector<std::basic_string<char> ' to non-scalar type 'std::string {aka std::basic_string<char>}' requested #trying to pass a ...
[5 replies] Last: working on these functions right now SoS() ; The default constructo... (by xCriminialKingx)
Help With Simple Program
 
I need to create a simple program that takes a phrase and scrambles the letters all up and or unscrambles them. I need to use simple functions and have pretty m...
[2 replies] Last: Well this assignment uses automatic submission and grading and the hea... (by hpardo11)
Help me (1,2)
 
How can i make a function that open cmd.exe with something in it? #include <iostream> #include <windows.h> using namespace std; int main() { system(...
[20 replies] Last: But can you make it to backspace (by RazvanJackson)
C program to check if in array are prime numbers
 
Hello i want to build program to check if numbers in array are prime my code is #include <stdio.h> int is_prime(int number) { int i; for (i=2; i<number;...
[1 reply] : You probably want to add special handling for inputs less than 2. (by LB)
Please help
 
I was trying to make a project with no help where ai can choose a letter or number broadcast and if I choose number I can type in e.g: 17373837364 and that is s...
[3 replies] Last: thanks for the help... worked on my I pad... but when I run the fixed ... (by Generalbiiff)
how do i count the number of values entered
 
write a program that reads ten integer numbers and outputs the number of inputs which are greater than 50, equal to 50, and less than 50. the program should als...
[1 reply] : You don't need to store the 10 values at all. Use a looping structure ... (by LB)
How can I count the length of the word by strlen
 
I'm the beginner and I'm learning C++ .My teacher order me to make a program to find the longest name and I can't do it help me .(When I ask my teacher he alwa...
[3 replies] Last: I think (by DrawerC)
by franc0
aaaa
 
aaa
[1 reply] : The code you have shown uses both Java syntax and C++ syntax. Are you ... (by LB)
by yehozz
Arrays with functions
 
I am trying to complete this program, but i cant get it to work. So i should create this function with the following head "float medel(int v , int n)" so the...
[9 replies] Last: Ooooh i got it now, Thank you so much! (by yehozz)
how to retrieve the value from the original integer
 
how to retrieve the value from the original integer. Thought process: Probably better to use a dynamic 2D array for this, will fix later. I created two diffe...
[1 reply] : You forgot to ask a question. Questions end with question marks "?". (by LB)
Passing STL vectors of type object
 
Hey forums. I'm attempting to pass a std::vector<object> memory address to a method and then assign that adress to a std::vector<object>* pointer in the cl...
[1 reply] : I'm not sure why you even need pointers at all here - why not use refe... (by LB)
Assignment Operator Copies negative values instead of actual values
 
I'm writing the overload for the assignment operator for an object that has a pointer to an int array inside of it. The assignment operator does not work 100% o...
[2 replies] Last: If this == &other, then loop breaks : other.scoreArray is lost on line... (by MiiNiPaa)
Recursive tictactoe game help
 
My goal right now is to create a bool function which tells me if winning a tictactoe game is possible(assuming you're vs the worst possible AI.) Basically if th...
[3 replies] Last: I see. It will still go thru the possible ways to will and check if it... (by kbw)
pointer and arrays, while loop doesn't run?
 
I'm practicing pointer and arrays. In the first source code the while loop works and in the second source the while loop does not work. I don't understand why ...
[1 reply] : That is because in your second code after the third for loop pTesxt no... (by CodeBlob)
Tic toch game C++ project without using arrays
 
i am trying to break the loop when is Game over or When 3 place is match. example: X|X|X ------- 0|0| ------ | | Gam...
[no replies]
Why a float in a double?
 
I'm curious why this line of code possible. double var1 = 23.0f; In comparing var1 to a normal float with the same value of 23.0 will test to be equal, but ...
[2 replies] Last: Yes, integers with an absolute value below 2^24 are represented exactl... (by helios)
Having trouble finding the correct average
 
Write your question here. I am trying to write a program that uses a running sum inside of a loop to find and display the average pay for a number of employees...
[2 replies] Last: I cant believe I overlooked that.... Works perfect now. Thank You (by ryanmac75)
generating random numbers in arrays
 
Hi, I am a total beginner here. I am trying to write a program where I have to generate a 6x6 arrays (36 in all) , and then automatically generate a random inte...
[1 reply] : your main function does not have a body: int main() {} Note that ... (by Gamer2015)
by s8050
Changing console font size in windows xp
 
Hi, I badly wanna control the font size in my console applications; I almost searched/tried everything to no avail. all I found are some functions like SetCons...
[1 reply] : I think the problem with this idea is that the console is not directly... (by newbieg)
problem in making program using loop
 
Actually i am trying to make a quiz program using do while loop.what i want to know is that how could i make the loop exit after repeating simply three times.If...
[3 replies] Last: thanks for reply integralfx and CodeBlob. That solved my problem.Many ... (by kartik17)
October 2015 Pages: 1... 3940414243... 57
  Archived months: [sep2015] [nov2015]

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