Beginners - October 2011 (Page 44)

C++ to Python Convert
 
Can someone help me convert the following C++ code to python, please. I am fairly new to python. void main() { int i,j,cnt,l,count = {0}; char st...
[no replies]
by aasaa
Ctor + overloading =
 
hey, if I have defined * the copy constructor in my class * and also implemented my '=' operator. what will happened if: int main(){ A a1(1),a2; a2 =...
[1 reply] : The assignment operator. The copy constructor is only called when the... (by Disch)
by aasaa
overloading
 
why this code won't work? #include<iostream> //=============== Complex ============================ class Complex { friend Complex operator +(const d...
[1 reply] : Read the error carefully In your case operator+ is a global function... (by ne555)
by Floeps
Template help, like Comparable in Java
 
Hello, I'm new to C++, coming from mostly Java. I'm trying to implement a binary tree, and I want the Node class to have a key and value type, using templates. ...
[3 replies] Last: Thanks! (by Floeps)
by aasaa
overloading
 
why this code won't work? #include<iostream> //=============== Complex ============================ class Complex { friend Complex operator +(const d...
[4 replies] Last: thanks, It seems that today is not my day !! (by aasaa)
sum of series, output series...
 
I have been asked by my teacher to try out a few c++ questions on series. I would appreciate it if someone could provide me with a few questions to try out. Th...
[no replies]
by Grux
Remove extra whitespace using fstream
 
Hi, I am trying to create a program that will remove all of the extra whitespace in one file, and output the result to another file. My code thus far prints on...
[4 replies] Last: Do you just want to insert newlines or do you want to preserve the new... (by moorecm)
by dugeen
Letting exit from scope tidy up for me?
 
Is it considered good programming to do this? class A { A() { /* open file handles, allocate memory etc */ } ~A() { /* close file handles, deallocate memo...
[3 replies] Last: Right, that explains a few things. I will remember this as 'type A* is... (by dugeen)
Problem with if command
 
hello. I am beginner in C++. I wrote this code but when i execute it and enter the letter F I get the same result as if i entered D. Look at the code and hel...
[2 replies] Last: Also: if (y = 'd') should be if (y == 'd') In C++ = assigns a v... (by Galik)
how do i declare a variable in this context so that it can be used outside of this arguement and anywhere else in my program?
 
hello im having a issue with my code i want to make the intergers inside the body of this arguement be usable outside this block of code how would one go about ...
[4 replies] Last: okay so in my arguement i want a interger declaration for my_mousex, m... (by Noobscratcher)
by Modify
Finding part of the string followed by space
 
Hello, How can I actually find part of the string lets say: string abc ("1000 1111 11") I want to find number 11 and issue is that it will find number 11 ...
[no replies]
Little problem :(
 
Hello everyone, im very new to C++ and i've been learning it for like a week now, and i was wondering if anyone on this forum could help me resolve a problem, h...
[4 replies] Last: I comment system("pause>nul") because it does not need in IDE like cod... (by Dinesh subedi)
chek if array B is substring of A
 
\\i am not getting why is this not working well \\ input:string A and B \\output:tell whether B is substring of A or not #include <iostream> using namespace s...
[2 replies] Last: i don't understand where my code goes wrong.@kbw (by Shehryar Raza)
by asrat
Header file linkage
 
I have one header file named to say january.h and one source file january.cpp. (Syntax is OK) I am using code block. I kept both file in a same folder. Now w...
[no replies]
Problem - Unable to debug
 
I have created a program store user data in file. But i am only getting one error only but i am unable to debug it. Please help me I used turbo C++ compiler ...
[3 replies] Last: i am getting the following error. ) expected on the line int emp... (by dudekill123)
for loop
 
hi, my prof recently assigned us a project in which we had to use a for loop. the program would have to ask the user for a number and the for loop would then it...
[3 replies] Last: thank you very much for replying, it solved my problem :) and i apolog... (by icefalcn)
PC Rental Application.
 
Here is what I ended up with. Can I ask a couple of questions? First, why does my timer run only when I press enter. 1 Enter = 1 Second. Second, Why can'...
[no replies]
Rock, Paper, Scissors program issue...
 
I can't seem to make this work. For some reason the PlayerChoice is getting randomized so that the users input doesn't matter as the program will just randomly ...
[4 replies] Last: if you break; , you exit the switch. (by Disch)
Human Resouce[HR] System
 
** hi guys .. i nid to finish it until tomorrow morning .. the Admin USERNAME is IT2B and the PASSWORD is MANALO .. can someone help me here in my HR...
[3 replies] Last: i'll make it after i posted it . i'll do all the functions and a bette... (by nicemark)
Help with NaN function
 
Hi everyone, I am trying to write a function that can help me differenciate between a number and another character. I read about several ways to do this and I h...
[2 replies] Last: You are asking about Input Validation Basic info: http://www.cplusp... (by Duthomhas)
October 2011 Pages: 1... 4243444546... 59
  Archived months: [sep2011] [nov2011]

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