Beginners - February 2011 (Page 25)

overloading questiosn
 
class Fixing { friend void friendFixing(Fixing &f); private: int kelvin; public: Fixing(int v) {kelvin = v;} void operator=(const Fixing &right); ...
[1 reply] : When you call the operator there... a ::kelvin = 10. a ::kelvin = ... (by Albatross)
IDE for C++ programming
 
Hello everybody, I am new to C++ and my background is electronics, I would like to use C++ for my electronic projects (computer interface controlled programmi...
[7 replies] Last: Use Visual C++ 2010 Express if you want to do Windows Forms. You can ... (by programmer47)
I need a compiler ?
 
i am very new in C++ and i need a free compiler ?
[7 replies] Last: What operating system are you using? [quote=Computergeek01]Your spe... (by Moschops)
"Press any key to continue..."
 
Hi, I'm new to C++ and I noticed that after the program is finished running it will display the phrase, "Press any key to continue..." I was simply wondering if...
[11 replies] Last: @markXD07: You are technically correct, it's proper to have the main f... (by Computergeek01)
by jtbm
Loops
 
Hi, im new to C++. I wrote this code to count from 1 to 9999 using loops, problem is that it only counts upto 8999. Any help would be greatly appreciated ...
[3 replies] Last: Managed to fix it #include <iostream> #include <windows.h> #incl... (by jtbm)
shorter code
 
Hello. main(a){while(scanf("%d",&a)^-1)printf("%d\n",a*a+a>>1);} My code have 58 symbols. Is somebody who can to find a shorter code? I know that in C c...
[5 replies] Last: transforms input numbers through the function │x 2 +x│ f... (by Duthomhas)
C++ Coding on Displaying
 
I am trying to get the program to display empID - unionCode so the user can input certain data and then I also want the program to display regularPay-netPay wit...
[3 replies] Last: If I understood the question right, you would only need cin if you wan... (by hikethru08)
by Faff
Stop printing when meet Space or endl?
 
Hello :) Am trying to make a program which opens a txt file, searches a word and displays a single word behind it. Got me the folowing txt file as test bla ...
[12 replies] Last: @hamsterman: it worked :) , sry seems like the txt file contained name... (by Faff)
about overloading
 
dimension dimension::operator++(void) ++inches; return*this; void main(void) { dimension one(4,5); dimension two = ++one //both object = 4 feet 6 inch...
[1 reply] : the change in your ++ operator doesn't make any difference ( notice th... (by Bazzy)
by Klen
Visual C++ 2008: No CurrentSettings.vssettings File
 
I downloaded Visual C++ 2008 from the Microsoft site and registered it but it says it cannot find the file 'CurrentSettings.vssettings'. Why doesn't it come wit...
[no replies]
New line plus Wont Display?
 
Revised it once more and I am almost finished, the thing is that it displays everything from regularPay - netPay on the same line? How do I change that? Also, i...
[2 replies] Last: cout<< "overtimePay is "<< overtimePay<< "\n"; or cout<... (by Danny Toledo)
Function Template and string literals
 
I have a bit of a problem and I hope you guys are able to help. I have a function template that inserts a value into an array. Works fine if the value that's be...
[8 replies] Last: It isn't an error. It's just supposed to point to data[n-1]. I suppos... (by Omeganight32)
can't find error.
 
#include<stdio.h> int getNum(int i){ static int person ; printf("Enter Pancake count for person %d: ", i+1); scanf("%d", &person ); return person ; ...
[2 replies] Last: thanks a lot. lol that was embarrassing... SOLVED (by asrockw7)
linked list question
 
Hi, I have a class that looks like class A { int count; A *next; } class B { int num; A *head; } void B::add(A a) { A *pt = head; i...
[3 replies] Last: After playing with it some more, I found out what the issue was. Just... (by rhymejerky)
overloading
 
class Fixing { friend void friendFixing(Fixing &f); private: int kelvin; public: Fixing(int v) {kelvin = v;} void operator=(const Fixing &right); ...
[1 reply] : If you don't change your variables, how do you expect for them to chan... (by ne555)
Checking Names of Program Arguments
 
When a user runs my program from the command line, I need the 5th argument to be either "yes" or "no." So ./program foo bar baz quux yes or ./p...
[2 replies] Last: That worked. Thanks! (by alanthreonus)
Replacing text in file
 
Hey, I'm attempting to write a simplish program for an assignment. The goal of the program is to change text in a file. We are learning string functions an...
[3 replies] Last: Okay got it thanks! (by CaseMonster)
errors????????
 
hi i "borrowed" this code from someone else. i just saw it and liked it so i am trying to add onto it like i want but this first part is killin me i have been t...
[12 replies] Last: o okey-dokey (by cainen172)
A problem with this lottery chance calculator?
 
I'm not sure if I'm doing my calculations correct in this, and the book doesn't give an example run, so I was wondering if anyone would mind checking it and tel...
[4 replies] Last: Ah, okay, thank you for the help. I didn't think about the loop stuff... (by Kieth89)
flatfile as output only.?!
 
Hello everyone, i could really use some help in understanding how to write a program in a flat file? I am having a hard time what is the purpose of the flat ...
[2 replies] Last: thanks for the help it was useful. ( hamsterman (1600)) (by detroit)
February 2011 Pages: 1... 2324252627... 43
  Archived months: [jan2011] [mar2011]

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