Beginners - February 2013 (Page 13)

by M159LE
Still struggling - lines in a file
Hi! I still don't know how to get/read single characters and an amount separately. This is what I have in a file: 46780976 3750.40 W 250.00 D 1200.00 W ...
Feb 24, 2013 at 4:35pm
[9 replies] Last: Hi, I am also working on this same question and am attempting to use... (by Rascal)
by Sandz
Check my code for me please
Hi, please take a look at my program. I am supposed to create a Auction program, but I'm not very familiar with Arguments and I'm having error running my progra...
Feb 24, 2013 at 3:30pm
[6 replies] Last: At line 6: if (toupper(sen) == 'E') exit (0); Th... (by AbstractionAnon)
by yhu420
error: case label not within a switch statement
Hello everyone, I just have an error in my switch. I checked online for an answer, but I didn't find one :(. Here is the code: int choixOperation(0); c...
Feb 24, 2013 at 3:00pm
[4 replies] Last: How stupid I am! How could I forget them! Thank you anyway ;) (by yhu420)
by poojab
c++
what is token
Feb 24, 2013 at 2:55pm
[3 replies] Last: token is individual units in program. keywords,constants,strings,oper... (by sandhyamohite)
by Renov
Find Prime Number
int main() { int n; cout << "Enter the value of n: "; cin >> n; bool* prime = new bool [n+1]; for (int i = 1; i <= n; i++) { prime = true; for (int...
Feb 24, 2013 at 2:51pm
[6 replies] Last: Thank vlad, I finish it Thank you so much~~ (by Renov)
header file
what is structure of header file <stdio.h>?
Feb 24, 2013 at 2:49pm
[2 replies] Last: structure? as in how the code is laid out or an actual c struct? (by Script Coder)
Template Syntax troubles
So, I wrote a class that dynamically creates Arrays. Now I'm supposed to turn it into a template, so that it deals with not just int arrays, but also char an...
Feb 24, 2013 at 2:46pm
[2 replies] Last: Ahh, thank you very much. I implemented the changes you showed me, an... (by INeedAHero)
class
what is main contents of class?what can be define in the class>
Feb 24, 2013 at 2:27pm
[1 reply] : This site has an excellant tutorial on classes. Try it. http://www.c... (by AbstractionAnon)
by Sandz
Return a string function
Hi, I need help to understand more about a function which uses a string. eg. string getprice(double& double) where the 2 arguments are initial price and numbe...
Feb 24, 2013 at 2:08pm
[3 replies] Last: > How do I return a string to the function? How do I return a string ... (by JLBorges)
by Gunnir
Very simple modification of Methods
{Apologies for any incorrect language and syntax when describing this, i'm a complete novice at c++!} I want to modify a method which i've defined as a vector, ...
Feb 24, 2013 at 1:08pm
[5 replies] Last: ahhhhhh of course i'm not, its a void function, thanks! (by Gunnir)
what does it mean "flushing the stream"
i read in some book this "Note that \n is not quite the same as endl. endl will output a newline and flush the stream, while \n will output the newline without...
Feb 24, 2013 at 12:42pm
[2 replies] Last: thank Framework that explained it. (by hitmanben2)
by Sandz
Expected a declaration error
Sample of my code. What's wrong with my program? Where is the error? Please help. Thank you. void Acct (); { for (int i=0; i<50;i++) { if(Table .cheque ...
Feb 24, 2013 at 11:43am
[15 replies] Last: Thank you so much Chervil. :) (by Sandz)
errors
getting red line under sqrt and atan in c++ 2010 f_mag= sqrt((fx)^2)+((fy)^2); theta=atan((fx)/(fy));
Feb 24, 2013 at 11:22am
[4 replies] Last: This topic continues from this one: http://www.cplusplus.com/forum/b... (by TheIdeasMan)
wrong output?!
so i have almost a complete program solved how to check if so that it wont say AB = ABC because of the null terminator but after trying to change the char to AB...
Feb 24, 2013 at 11:07am
[1 reply] : int myStrCmp(const char text , const char abc ) { int x = 0; ... (by toum)
vexing with vectors!
hi there, been on this for hours now and i just can't seem to populate my vector with pointers to another class object. can anyone see where i am going wrong pl...
Feb 24, 2013 at 10:48am
[1 reply] : mTeam.push_back(&thisPlayer); (by toum)
by DELB
Code Help
for(i = 0; i <= 5; ++i) { for(j = i + 1; j <= 6; j++) { int temp; if(numb > numb ) { temp = numb ; numb = numb ; numb ...
Feb 24, 2013 at 10:28am
[4 replies] Last: There are 7 elements in the array, therefore the index of the last one... (by toum)
Elegantly iterating multiple arguments into an array
void fillSomeArray(int a, int b, int c, int d, int e) { for (int i = 0; i < 5; i++) { *((*array) + i) = //insert something here } }...
Feb 24, 2013 at 9:46am
[1 reply] : I would go with variable argument lists. Plus, you may want to include... (by TheGrayWolf)
computer graphics
how BRESENHAMS LINE DRAWING CAN BE USED FOR CIRCLE GENERATION.
Feb 24, 2013 at 9:02am
[1 reply] : What don't you understand? (by Script Coder)
Can line clipping algorithm be used for polygon clipping
Can line clipping algorithm be used for polygon clipping
Feb 24, 2013 at 7:22am
[no replies]
10. Can line clipping algorithm be used for polygon clipping?
Can line clipping algorithm be used for polygon clipping?
Feb 24, 2013 at 7:20am
[1 reply] : yas.............. (by prem waghmode)
February 2013 Pages: 1... 1112131415... 67
  Archived months: [jan2013] [mar2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.