Beginners - March 2012 (Page 18)

Overloaded < and > operators
 
Hi, I'm trying to overload the < and > operators to compare two objects but when I try to use them, nothing happens. // Overloaded > operator bool StudentR...
[1 reply] : example bool operator > (const AllNumbers & right) const; bool opera... (by Shinigami)
by co1ote
avoid newline in C
 
Hi, I'm trying to use scanf like this: scanf("%d%c%d", &a, &op, &b); if (op=='+') c=a+b; printf("=%d", c); My input is 2+2. So it prints "=4". It...
[3 replies] Last: Ty shysan21, but I cant use getche because it just read 1 character. I... (by co1ote)
by Ch1156
Quick Question
 
I was wondering if you could ask question about C# here? or is there a website similar to this one for C# questions and such?
[5 replies] Last: Some of us do know some C#, if you must ask here (msdn may be better) ... (by naraku9333)
Whats wrong with this code?
 
Cant get this code to compile right... im not sure why... any help would be amazing. #include <iostream> #include <iomanip> #include <string> using namespac...
[4 replies] Last: Thank you CJ. I was tired last night and didnt eve notice some of th... (by Tyriddik)
Converting from MS Visual C++ 6.0 to Visual C++ 2010 express help please?
 
I have a computer science class this semester and I'm learning c++(and excelling rapidly, 100% mark in the class so far, I'm 1st in the class but the grade 11 c...
[8 replies] Last: okay thank you, i'll give code::blocks a try. (by strangecanadian)
Problem Encrypting File
 
Problem not writing properly. PROBLEM FIXED
[2 replies] Last: I fixed it. (by Subzero030201)
by jalfor
Compiler Giving Me Wacko Errors
 
My computer is giving me some errors that make me fear for it's mental health. They all seem to follow the following pattern: /usr/include/c++/4.6/bits/stl_t...
[1 reply] : This is often cause by one of three things: failure to use include gua... (by PanGalactic)
Error C2440: Cannot convert from "node *" to "node"
 
Hello I'm trying to create a binary tree. However, everytime I try to create a node object, the compiler gives me an error. Here is the code: class node ...
[3 replies] Last: Ah yes, I got it mixed up. Thanks to both of you. (by BananaCode)
ignore white spaces while looping and remove excess whitespaces
 
so the loop goes executes about 1082 times im trying to start a new line every 71st character, and remove excess white spaces from my text file. I also want to ...
[2 replies] Last: @shysan21: That is integer division, 1/71 = 0. It would be better t... (by Lowest0ne)
Help me trace the output!
 
Here is the sample code. I was asked to trace it but i can't get everything right. So far I managed to find the output of the line 6th. Is there any easier ways...
[no replies]
by oopssy
Array and File
 
I am sorry.
[2 replies] Last: Many thanks (by oopssy)
by oopssy
nothing
 
Hello ^^
[8 replies] Last: @ Long double main : Thanks for your suggestion ^^. @ InCis B : I ha... (by oopssy)
Using a One dimensional array
 
This is my assignment. It is due at 11:59PM so I could use help fast. I have a lot of other classes so I don't have much time and I'm trying to get points to p...
[1 reply] : Here is what I have so far: #include <iostream> using namespace st... (by molecularman)
Pseudo Code
 
Greetings guys, can you please check my pseudo code for me ? this is my calculator program #include <iostream> using namespace std; int mai...
[no replies]
by idks16
scoring a blackjack hand
 
i'm making a program that scores a blackjack hand but i don't know how to make ten, jack, queen, and king to have a value of 10 when the user has one of these i...
[5 replies] Last: any luck? (by idks16)
Can you tell me why my calculator program won't compile please..
 
//-| ------------------------------------------------------------------------------- //-| COP 3014C Fundamentals of Programming //-| //-| Assignment ID: ...
[6 replies] Last: thanks man! you saved my grade. just barely got it submitted. (by byronflds)
Issue with reading till end of line (not file)
 
Hey, Guys So I'm trying to read in data till the end of line,I have written a code that KINDA does it, but it never reads in my last word, if anyone could he...
[3 replies] Last: This might help: http://stackoverflow.com/questions/236129/how-to-spli... (by Lowest0ne)
how do you normalize a vector in dx10?
 
how do you normalize a vector in dx10? Plus does dx10 allow you to create a vector via two points?
[2 replies] Last: I thought there was a DX10 function already provided, I didn't want to... (by Blessman11)
How do I fix this
 
when testing for run time errors i came upon the fact that the input was weird i think it has something to do with getline #include "stdafx.h" #include <ios...
[4 replies] Last: This maybe what you are looking for. #include <iostream> #include <... (by Subzero030201)
ifstream& ist, ofstream& ost in a function
 
i want to be able to read the file that the user inputted and format the text then output the formatted text into the output file how do i pass the input an...
[4 replies] Last: same as when it isn't. :) (by Lowest0ne)
March 2012 Pages: 1... 1617181920... 71
  Archived months: [feb2012] [apr2012]

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