Beginners - February 2014 (Page 35)

How can i comepare two strings?
 
Hi, I am making a C++ program which stores passwords and account information. It is in the console as I'm making it to practice as I am very new to C++. What I...
[3 replies] Last: Thanks guys, I used both of your answers! (by SoftMOUNT)
Assert() is not working in Code::Blocks
 
In code::blocks 12.11 the following code: #include <iostream> #include <cassert> using namespace std; int main() { int a=4; assert(a==4); retur...
[no replies]
Association Classes
 
Can please anyone give me a real, with working code, example of using an association class?
[no replies]
2D array with unknown values- multiplication table
 
I want to print out a multiplication table based on how big the user wants it to be. I also want this program to do this via functions. Right now, the cod...
[5 replies] Last: ok, so when i try to initialize the 2D array in main... int row = 1... (by pilotnate)
Parsing Command Line Parameters
 
Hello everyone, I'm looking for anyone who can explain how the following code works. This is an assignment for a data structures class that I am currently in...
[1 reply] : Just include the header, but make sure you like the results of the sou... (by Zhuge)
by kiino
Day Of Year Problem.. Constant Error Message
 
Hi, I've searched the web and read a good amount of the Class chapter in my programming book to write this code but I keep getting this error... "error C2143...
[3 replies] Last: haha wow bad proofing on my part! thanks guys!!!! (by kiino)
need help...
 
i already doing some program, but when i want to compile=ok, but after key in the result, no ouptut average..the cmd just gone...it cannot be done... anyone can...
[2 replies] Last: By using two-dimensional arrays, how i must write a program to read th... (by joepuchong)
Visual Studio 2010 Build problem
 
I am just learning to do simple things and suddenly it won't build anything. I haven't done anything I can think of that would cause this and it was working awh...
[2 replies] Last: put a breakpoint on the very first line of your main() function, and p... (by mutexe)
by buzz24
validating a string name
 
the string validation doesnt seem to work. im not sure how to fix this. void customerdetails(); bool isValidName(); int main() { customerdetails(); ...
[4 replies] Last: al-right thanks Catfish666. i guess i was getting ahead of myself a bi... (by buzz24)
how can i find all values of z that is equal to (x^2)+(y^2) = z^2
 
x,y and z are integers and each is lesser than 1000. how can i find all values of x and y (in the range of[1:1000] )such that it satisfy the equation (x^2)+(y^...
[1 reply] : http://en.wikipedia.org/wiki/Pythagorean_triple (by keskiverto)
Urgent interview related question
 
Hi all Sorry for the abrupt and very newbie nature of this question but i need help please, coming from a C# background the following (very simple) lines of co...
[3 replies] Last: Ahh i see! Many thanks Mikeyboy! (by deadlyavenger)
by jd2181
need help please.. i don't know what is wrong..
 
what is wrong with my code? supposed to have a program which would display all prime numbers from 1-100 using the while loop. Please help me. #include <stdio...
[1 reply] : The condition ((y/(y++)==0)&&(y/(y++)==1)) will never be true. The ... (by MikeyBoy)
by Cipop
Problem with decimals
 
Hy, I'm having a prob, with a program that's supposed to print values of y=2x+5, for x from -10 to 10. I know it's really simple code, but it gets me a deci...
[5 replies] Last: Great, thank you for your explanation long double main I'll just set t... (by Cipop)
Destructors
 
Guys, Sory if its a silly questionn.I have been trying to fix it for hours now.I get a weired segmentation fault. Basically, I have a Stack class, It works f...
[6 replies] Last: Is there any need to dynamically allocate that Stack object? It's cre... (by MikeyBoy)
Segmentation fault when randomizing a LLL
 
I'm trying to randomize a LLL. card_list is a LLL, and randomize is suppose to basically shuffle the contents. I'm running into a segfault when I progress p...
[1 reply] : http://www.cplusplus.com/forum/general/112111/ > Maybe previous->next... (by ne555)
Reading a text file
 
Hello all... Iam Avinash from India. I wanted to know how to extract a number from a specified line in a text file using C. I know how to read a file but coul...
[5 replies] Last: > But if a single line has more numbers delimited with space, like....... (by JLBorges)
Homework Assignments
 
I am reaching out to anyone willing to dedicate a bit of time to helping me learn C++. I realize that I can read through this "C++ All In One for Dummies" book ...
[2 replies] Last: Thank you very much for that. Very useful stuff. Much appreciated! (by timadvancedtech)
by amzz
creating a class with sqlite database..
 
I am using Qt creator ide with pure c++ coding. I need to create a class with 2 member variables A & B (also added in the table)and 3 public and private functio...
[3 replies] Last: How can i define the public functions mentioned in the question ( usin... (by amzz)
do while loop
 
I am trying to ask if a user is a boy or a girl. Everything works except the loop is infinite and I don't know what to change to make it work properly. Also I n...
[3 replies] Last: Thank you very much mate that helped out quite nicely! (by MarkyMark)
by vedel
Shift ...
 
Hello, I know that '<<' is a SHL and '>>' is a SHR. But I don't understand how it is used in : ' Int add = 1 << (shift-1); ' And then what is the meaning of...
[5 replies] Last: Okay, thank you keskiverto .. (by vedel)
February 2014 Pages: 1... 3334353637... 60
  Archived months: [jan2014] [mar2014]

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