Beginners - July 2011 (Page 16)

Structures
 
I am trying to run a debug on this program but i just can't solve the errors.This is basic program of structure using with pointers and functions! bx1.cpp ...
[4 replies] Last: this solved the problem.and i begin to understand what a header is use... (by crawler)
by wtf
The following code does not compile.
 
The following code does not compile. template <class T> struct node { T it; node *next; }; template <class t> class act { node next...
[2 replies] Last: heheh thanks, just thought of that too. (by wtf)
what does the void keyword do?
 
Hi everyone, I'm new to C++ programming, I'm sure I'll be asking many, many, MANY questions regarding this language, and would really appreciate your support! ...
[1 reply] : void literally means nothing. It is usually used as a function or meth... (by Intrexa)
by Toxn
String + ReadProcessMemory = Access Violation?
 
I'm trying to understand why this code gives me an access violation. string GetZone(HANDLE phandle) { string zoneName; ReadProcessMemory(phandle,(voi...
[2 replies] Last: Ty for your help! (by Toxn)
Programming simple user commands
 
Hi, I am a begginner at c++ programming and have been trying to create a simple texted based game, nothing too fancy. I have made a few other programs such as "...
[4 replies] Last: A character stores a single character. char example1 = 'x'; //that i... (by Intrexa)
by kalu
code not taking 2nd character input
 
My code below is supposed to take 3 inputs, first 2 characters and 3rd floating. It just takes first input and ignores the 2nd. Here is the output I get. Ent...
[4 replies] Last: You are inspiring for a wanna be coder. Thanks again Wazzak. (by kalu)
smallest and largest
 
out of 3 numbers, how would you write out code that defines which is smallest...and which is largest? #include <iostream> using namespace std; int main () { ...
[3 replies] Last: if(n1 < n2 || n3) I'm 100% sure that is not what you want to do, mor... (by Intrexa)
nid help to do subtract
 
#include <stdio.h> void main() { int I, N=0; float number,sum=0, number1; printf("How many numbers do you want to add:"); scanf("%d",&N); N=N-1; for (...
[4 replies] Last: THANKS!!!!!!! <3 (by Frozendog11)
HELP WITH C++
 
hello there, i have complete the code and it looks pretty good, the only problem I am having is time..if you can please guide me what i did wrong. thanks ...
[2 replies] Last: Thanks sloppy, so it seems like that problem was that I had hours @ 20... (by john369)
Why wont this code work right
 
My program totals the rate someone will be paid, based on hours and pay rate. Then I had to add a way for it to read the information from a file and enter the...
[2 replies] Last: Nisheeth, the only problem with that is that he didn't close the code ... (by packetpirate)
How to make win32 app on visual c++?
 
Hi. I am not programmer, but i've learned something at university lessons.. we used Visual C++ express edition. so i can write simple programms.. Here is an ...
[4 replies] Last: no suggestion? (by Accessdenied)
File handling problem - modifying record
 
I have to make a file (or a database I should say)in which I can read,write,append ---I can do these things easily. The problem is that how I can rewrite at ...
[3 replies] Last: i think you are missing seekp() statement that moves record pointer to... (by Sakshi Rajput)
Trying to make calculator type program
 
Can someone please tell me how to fix this? I'm trying to make a calculator that can divide, add, and subtract, but I get an error on line 16 I believe, saying ...
[10 replies] Last: Do you know about string parsing? you could use that for it. EDIT: I ... (by Nisheeth)
Help with C++ void function program
 
Here is the assignment: a. The program has no functions. Modify the program so that it uses only void functions. You need: 1. one function to get the data fro...
[4 replies] Last: 1>Canvas.obj : error LNK2019: unresolved external symbol "void __cdec... (by Warnis)
Protected atribute inheritance
 
Hy guys,I got a problem like this: I have an atribute(protected) in the father class. But it isn`t visible at the child class. Crazy, isn`t ? Any soluti...
[1 reply] : That does sound crazy! Are you able to reproduce the problem in a comp... (by closed account DSLq5Di1)
Arguments in the Main function
 
I have seen arguments in the main function. But I couldn't find reference about them . Could anyone explain me why there are arguments, and what do they do?
[4 replies] Last: Thanks, That is far easier to understand than the one in Wikipedia. Th... (by Nisheeth)
For loop - Last statement skipped, how execute?
 
I'm working my way through the tutorials and I came across one of the examples using the "for-loop". Goofing around with some code, I made a simple program sim...
[3 replies] Last: Awesome, thanks. Ya, I defined n and i outside the loop and left ... (by VXASUXV)
Overwhelming
 
Hi so I've been programming for a about a year and a half now (first year was very casual, just kinda played with it here and there) but I have now read an intr...
[1 reply] : Heh, STL is the Standard Template Library - i.e What you have been usi... (by vlad61)
by ID HDP
While loops in If statements
 
Hello, I am new to the forums! Is it possible to have "while loops" in "if statements"? I tried searching for the solution online but I couldn't find the an...
[2 replies] Last: Of course - in fact the basic building blocks of programming are usual... (by vlad61)
by adesh
iostream class
 
I just came to know that all the files i.e iostream , fstream are basically classes . Then how do we directly use the functions defined in them , Why...
[8 replies] Last: thanks webJose , you cleared all my doubts , thanks a lot everyone (by adesh)
July 2011 Pages: 1... 1415161718... 54
  Archived months: [jun2011] [aug2011]

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