Beginners - July 2011 (Page 26)

functions calling functions
 
Heres my situation: Main can call either function A or function B. Regardless of which one is chosen, I need them both to be able to call function C. How d...
[2 replies] Last: Great! It worked, thanks. (by jeffsg605)
weird error when calling function in other class?
 
Hi, With this code in class1: class2::myFunction(); I hoped to call a function in class 2: void class2::myFunction() { printf("myFunction"); } ...
[2 replies] Last: Make that "myFunction()" a static member, meaning you can call its met... (by Turbine)
my_point
 
#include <iostream> #include <math.h> using namespace std; class my_point { public: my_point(); my _point (int,int); void print()const; ...
[1 reply] : Why not just add n1 to the yCoord and n2 to the xCoord? (by Zhuge)
by gold
Negating problems
 
I read the part about the negate function on this website and since most of it i don't understand how to read i need a little help understanding what's wrong wi...
[6 replies] Last: @gold I think your confusion stems from trying to use a function objec... (by closed account DSLq5Di1)
by wtf
How do you flush the fprintf() file stream?
 
I have a file * that won't save anything thats fprintfed to it inside a while loop apparently because I don't close the file * until after the while loop and I ...
[2 replies] Last: No. Thanks. (by wtf)
Quick not declared in scope error
 
I am sure I am just overlooking something simple but I can't figure it out. Here is the code: #ifndef __UPDATER_H__ #define __UPDATER_H__ #include "mark...
[3 replies] Last: And delete line 51. Never include source files. (by moorecm)
Which IDE to use?
 
HISTORY i have a windows 7 partition and a linux mint partition on my hard drive, with the exception of switching back and forth from ubuntu to mint (cause im...
[9 replies] Last: on both Windows and Ubuntu Linux i use Code::Blocks. It's free and upd... (by lfnunley)
File restarts
 
I'm having a problem with this program that reads a text document from start to finish, and then needs to repeat it. Only problem is, I don't know how to make i...
[3 replies] Last: Thanks guys! Problem solved ^_^ (by Shay9999)
pointers help
 
This code is giving me an error.I am new to pointers.Which part of the string will the pointer tell the memory address ofand why is this code wrong. #include<i...
[3 replies] Last: Maese is right. What you need is a pointer to an array. You can declar... (by closed account zb0S216C)
Grouping Data Ppints
 
Hello, I am wondering how to "group" together data. This is my scenario: I have a program that generates many values. I need to be able to graph these with ...
[3 replies] Last: I don't know what your code does, but if you have the things you need ... (by hamsterman)
by spypro
controlling input
 
how to i limit the input to 1-9 only and when i enter a-z or A-Z it will prevent the programming from converting the input? #include<stdio.h> #include<stdlib....
[4 replies] Last: If input fails, scanf will return EOF When an integer is expected and... (by hamsterman)
Postfix operator overloading
 
Hi, I was going across a tutorial on http://newdata.box.sk/bx/c/htm/ch10.htm And I got this program as an example to demonstrate operator overloading : 1: ...
[12 replies] Last: if you overload an unary operator with no arguments, compiler does pre... (by muratagenc)
Segmentation fault
 
Hi, I know this problem is easy, but I can't figure it out by myself. I'm trying to generate 100 random numbers and then plot a histogram. For some reason, whe...
[4 replies] Last: Thank you, ne555! I realized I should declare the size of the array, ... (by tatrantea)
by sally
Open source Platform
 
I am a new one to the developer site would anyone like to tell me what does the term means open source platform. Because I have heard from someone that you can ...
[2 replies] Last: a platform can be; 1. hardware 2. operating system 3. development envi... (by muratagenc)
Miles,Inches,meters,feet conversion
 
This is what i have to do: Output each of the sub totals individually. Then output the grand total Units Value Meters Miles 3 miles xxx.xx Yards 105 ya...
[2 replies] Last: I'll give it a try with this thank you (by hatsumi141)
CONVERSION? HELP ME PLZ!!!
 
This is what i have to do: Output each of the sub totals individually. Then output the grand total Units Value Meters Miles 3 miles xxx.xx Yards 105...
[1 reply] : See your other thread with the similar topic post. (by Audie)
Doubt about overloaded functions and return type
 
I'm reading the documentation on this site, wich is absolutely useful, but there's a line that makes no sense to me: Notice that a function cannot be overloade...
[2 replies] Last: aaahhh... ok, got it i thought it was like "At least one of its parame... (by ricvail)
adress to decimal number
 
Hi i have a question, how can I convert adress of some variable to a decimal number? only for fun, I want to know that number :D thanks
[2 replies] Last: thanks :) (by julof26)
Learning Win32 Apps
 
Hey, I've been working with console apps for awhile now and would like to move on to Win32 Apps. Anyone know of a good guide/book that covers this?
[4 replies] Last: http://www.amazon.com/gp/product/B003A2C2B0/ref=kinw_myk_ro_title I w... (by mcrist)
by Leo94
understanding problem
 
Hello, I don't understand one thing in the following program,and I decided to ask you. #include <iostream> using namespace std; #define PI 3.14159 #define...
[2 replies] Last: Think of the this way. Below, I've replicated an output buffer. Notice... (by closed account zb0S216C)
July 2011 Pages: 1... 2425262728... 54
  Archived months: [jun2011] [aug2011]

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