Beginners - January 2014 (Page 29)

So it starts here
 
hello guys, i'm cookiess(not my real name :p). i come from bosnia. i'm going to be 16 soon and i want to learn c++ i currently know a little to medium about ...
[5 replies] Last: Hay Cookiess, I'm 15, and I have gained knowledge in over a dozen lang... (by James Parsons)
by mrkim
BUBBLE UP ALGORITHM
 
how can i convert this bubble up algorithm into code? help guys! index <-0 last_compare_at <-n-1 temp <-0 loop exitif (index>last_compare_at) i...
[1 reply] : First step is to understand the algorithm. Do you? (by Peter87)
Pointers/Dynamic Arrays Issue
 
I'm currently delving into my first venture with pointers and dynamic arrays, and I am creating a gradebook program for my class, and it requires the use of dyn...
[8 replies] Last: inputScores() is returning the pointer to the calling code, so you'r... (by MikeyBoy)
entering information
 
hi, I want to know that is it possible to ask a user to enter a value or no. and store it in the variable without echoing it on the screen. cout<<"enter...
[2 replies] Last: a modified version from http://www.cplusplus.com/forum/general/12256/ ... (by nvrmnd)
by nvrmnd
tcsetattr not restoring echo
 
The function above for linux doesn't work #if defined( _WIN32 ) #include <windows.h> #elif defined( __gnu_linux__ ) #include <termios.h> #include...
[6 replies] Last: Oh, i see, i was actually thinking the opposite way here is my final ... (by nvrmnd)
Is there a way to detect ENTER key press at "cin"
 
Hi, I am trying to write a program where I have to take 2 numbers as inputs from user. They are say m and n. I want to calculate m to the power n. And if use...
[4 replies] Last: Thank you for your inputs ValliusDax, mobotus and cire. I got it worki... (by patkipramod)
"Identifier not found" error within a member function
 
Hi, I am still learning to build a user-defined class and use some member functions to generate a report for students' final, midtern, and homework grades. The ...
[4 replies] Last: OP, note: it only needs to know about the methods, i.e. their protot... (by mutexe)
Variable and array declaration related query
 
Hi all, I am trying to write a program to evaluate V=P(1+r)^n Simple program to do this is done but now I am trying to print a table also with all the valu...
[4 replies] Last: Thank you Dammned and totum. Yes I am really new at C++ and at times ... (by patkipramod)
Not a namespace?
 
This is my code. I need help because I am getting errors in the using namespace part. It only recognises std as a namespace. I am using Code::Blocks IDE and GNU...
[2 replies] Last: Thanks! I fixed it! Now I have another problem, it wont find my google... (by Code Apperentice)
GUI in C++
 
Hi All... I've good command in C++ till OOP, just wanted to know that is there any way to make GUI applications with C++ programming ?? Thanks in Advance
[9 replies] Last: do QT framework works only with C++ language ?? Yes. You'll ne... (by TwilightSpectre)
Input not being passed to function back to main.
 
This is test function for a bigger program I'm working on. For some reason it always skips straight to the else block in the string_test function as if I didn...
[3 replies] Last: Like I already mentioned, take a look at the else condition in your st... (by closed account NyqLy60M)
Get line and assigning to variables
 
So I just was wondering how i can read from a file, get the line, assign it to a variable, then go to the next line get it and assign it to another variable. He...
[3 replies] Last: If you actually want the same behavior as the original loop, put all t... (by Zhuge)
by azura
Function with return values
 
Can someone help me with this code. I don't understand the error in this code. Thanks in advance. :) #include<iostream.h> #include<conio.h> using namespace...
[6 replies] Last: Hi Catherine, You probably don't want to do integer division either, ... (by TheIdeasMan)
Counting Characters
 
i put the comments: -first one -second one inside my code to point to my questions. at first and second one I try to compare the char (not int) 1 and the char...
[2 replies] Last: i see, i will look into using vectors then. and i just now noticed t... (by Raisane)
How to copy strings from file into array of pointers
 
I am trying to copy string Line BY Line from text file into array of pointers. lets say file has only two lines for example. This is an apple. This is anoth...
[1 reply] : First, let's go line-by-line to see what is wrong: #include <iostrea... (by yulingo)
by itayz
Unscrambler - DIFFICULT!
 
Hello ! I know this isn't the most clear post but I would really appericiate your help on this; So, I'm trying to create an unscrambler in the most simple wa...
[5 replies] Last: Count letters in a word #include <iostream> #include <string> int ma... (by Stewbond)
by Alby94
Class vector
 
The program's output: 0000000000; #include <iostream> #include <vector> using namespace std; int main() { vector <float> v(10); float nu...
[3 replies] Last: thanks, problem solved =) (by Alby94)
by Alby94
inheritance class vector
 
The error is "expected class-name before '{' token"; #include <iostream> #include <vector> using namespace std; class array : public vector { ...
[4 replies] Last: thanks 1000000000 to all!!! =) (by Alby94)
Can´t the faulty logic in this code
 
Hello there. I´m trying to perform a sum from 50 to 100 using while . With the following code I´m getting the result 3825, but it is supposed to be 3750. ...
[2 replies] Last: Oh yes, the 3750 value I got from faulty logic. It is supposed to be 5... (by infojunkie)
I made some getch like functions for you :)
 
Hello Guys i made some functions that let you instantly read characters and keyboard keys.The functions are: -readchar(Gets the character that you pressed (doe...
[no replies]
January 2014 Pages: 1... 2728293031... 44
  Archived months: [dec2013] [feb2014]

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