Beginners - June 2016 (Page 18)

User can bypass if/else by spamming letter
 
I've finished this game, my first one. It's just a simple one, but it works perfectly fine, at least for my first game. The only problem I can't figure out ...
[2 replies] Last: Thank you for the reply and critique! While I don't fully understand w... (by MadDan2016)
Balanced Parentheses Problem
 
I actually have two issues with the program, one that is my fault and the other is just an assignment problem. The following is my code for checking an expr...
[2 replies] Last: I feel really dumb for not catching that but thank you so much! (by therpgking)
how to transfer string to character array?
 
I have to make a program where the user inputs a time in the standard format (hh:mm:ssPM) as a string, then I have to convert it to military time. I have an...
[3 replies] Last: @kemort Thank you, I ended up making a program that works but it ended... (by idknuttin)
[Error] expected unqualified-id before '{' token tell me how to solve "{" error
 
#include<iostream> #include<conio.h> using namespace std; class second; class first; { int a,b; public : void get () { cout<<"\n enter a&b"; ...
[16 replies] Last: now i understand (by prince7673)
Prime Number Code
 
Can somebody help me with the code of Prime Number. I m a beginner in c++. Help is appreciated. For my page, visit http://www.philica.com/display_article.php?ar...
[1 reply] : int i=0; counter=0; for(int i=2;i<(number/2);i++){ if(number%i==0) ... (by evy)
Print number of matching sequence in the user given input for the constant input.
 
I wrote a code to get the number of sequences occurring in the user input sequence. This is my code. It excludes the subsequence which I wish to be tested. I ...
[no replies]
what learn for a kid who is studying in 10th standard
 
A child who is studying in 10th standard, what should he learn in programming ?
[1 reply] : http://www.cplusplus.com/doc/tutorial/ You might be able to start her... (by closed account 48T7M4Gy)
vector mayor y menor
 
suma y mayo a menor #include <iostream> #include <cstring> #include <string.h> #include <set> using namespace std; struct par_ordenado{ int x; in...
[1 reply] : Hola amigo , yo no entiendo exactamente lo que su código está trat... (by shadder)
by mfawad
Converting Integers to Bitmap Color
 
Please Help...! Hi, I am trying to replace color in bmp image. I tried making unsigned char variable directly equal to some value... like unsigned char oldr=25...
[2 replies] Last: It strikes me that the OP is confused about color systems. Each color ... (by closed account 48T7M4Gy)
by LoneNF
Passing a 2D array to a function prototype
 
Hello, i am new here, and i come only in my dire need. i have a program that is supposed to read a binary file that contains a 2D array and its size. however i ...
[2 replies] Last: Yeah post all of it - well at least the relevant but runnable part.... (by closed account 48T7M4Gy)
by Kbott
function call with arrays.
 
I am working on this set of functions and I am trying to use a function call to send the array from main to the void fun. and I keep getting the following erro...
[11 replies] Last: I made the line 8 change just for 'visual compatibility'. It doesn't h... (by closed account 48T7M4Gy)
constaint pointer to non const member
 
how to do this? int MyClass::*whatever; I want whatever to be const, but the int non-const.
[1 reply] : int MyClass::* const whatever = &MyClass::some_nonstatic_member_of_ty... (by JLBorges)
t-shirt discount
 
I need some help with this code. I have inputted the code that i have so far. The local t.shirt shop sells shirts that retail for $12. Quantity discounts are ...
[16 replies] Last: Just going back to the excellent advice PrivateRyan gave you much ea... (by TheIdeasMan)
Return a string on function...
 
I think it might be a problem with my compiler. I dosn't like running this code on G++, and I want to see if I've done something wrong. The error I'm getting is...
[2 replies] Last: Well, thanks mate! Appreiciated! (by cplusguy123)
by lie601
Ramanujan's Series
 
Hello, So I'm trying to write a program that will estimate the value of an integral using Ramanujan's Series equation, but I seem to be getting stuck on someth...
[8 replies] Last: From my point of view there were no restrictions on how many and what ... (by closed account 48T7M4Gy)
Removing a specific element in an array?
 
Im writing a program that takes in an array inputted by the suer and outputs various things about them. Im writing several functions in them and im stuck on the...
[15 replies] Last: I see i was thinking about finding the position for the median (by frantheman27)
goto statement
 
Hi guys I just want to know what is the goto statement and when and why is it used,I made a small (useless) program with the goto statement and my program does ...
[4 replies] Last: Even if goto will be prohibited, it can be anyway available by this ... (by skaa)
Integer bits
 
Why is the maximum integer in c++, (when converted to binary), 25 bits long and not 16 or 32?
[1 reply] : That depends on your platform. The <climits> file contains declaratio... (by AbstractionAnon)
Program outputting 'nan'?
 
I am writing a cashier program to take the 'Item ID' from a user and figure out the price for that item, and then add that to the total. If they enter a negativ...
[1 reply] : for is similar to while. In this case: for ( ; user >= 0; total = tot... (by keskiverto)
by nbro
Understanding deeply how makefiles are interpreted
 
Hi guys! I'm trying to understand deeply how makefiles work. For example, I've the following one: CC = gcc CFLAGS = -I. DEPS = int_array.h OBJS =...
[1 reply] : https://www.gnu.org/software/make/manual/html_node/Automatic-Variables... (by keskiverto)
June 2016 Pages: 1... 1617181920... 25
  Archived months: [may2016] [jul2016]

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