Beginners - February 2011 (Page 30)

minus zero
 
#include<stdio.h> float A ,E ,D=1,ms=1; int n; int getdata(int n){ int x,y; for(x=0;x<n;x++){ for(y=0;y<n;y++){ ...
[5 replies] Last: int row_echelon(n) was a typo i corrected it before handing it in... (by soumyaxyz)
Storing values in a dynamic array
 
Hello.
[3 replies] Last: try creating a dynamic array as follows: string *pointer = new str... (by paki programmer)
Get out from nested for loops
 
Hi, for(i=0;i<10;i++) { for(j=0;j<10;j++) { if() { Now I want to exit from j loop and continue from i loop. } ...
[13 replies] Last: Congrats Airedem . :) (by anonymouscoder6)
TCHAR has not been declared
 
hi, i am just starting with C++ and my friend sent me a code. I typed the code exactly as it appeared, and it still gave me the TCHAR has not been declared ...
[9 replies] Last: http://tdragon.net/recentgcc/ for latest gcc windows port, the source... (by modoran)
How to dump Static Library (.lib) and Header file from a DLL?
 
Hi Friends.. i'm curious, is it possible to dump Static Library (.lib) and Header file from a DLL? Actually, i want to use Existing DLL (for Cryptographic o...
[3 replies] Last: There is no way to generate a header file from an arbitrary DLL. (by modoran)
accessing a website via console
 
i'm writing a console application and i need it to access a website that is formatted like a plain text file so that i can read the contents just like i were re...
[1 reply] : You can use cURL library to do that ( http://curl.haxx.se/ ) or you co... (by modoran)
Returning a pointer from initialized constructor?
 
Hi If I have the following constructor that I need to initialize: Polynomial::Polynomial (int a, int b, int c, char *z) I know how to return the intege...
[1 reply] : A constructor doesn't return anything. What are you trying to do? (by Zhuge)
Calculation problem
 
The calculation keeps coming out messed up... Can someone please explain to me what I am doing wrong.. #include <iostream> #include <iomanip> using...
[11 replies] Last: Your for loop looks strange. It looks like it is trying to loop ten ti... (by Zhuge)
Pointers and References
 
Hello everyone, I am having a VERY difficult time understanding the meaning of pointers and references. From what I understand so far, a pointer, "points" or ob...
[7 replies] Last: KernalSeiden, Thank you very much for your explanation. I was hopin... (by Graphitea)
Beginners Assignment
 
Hello I have been assigned the task of creating a C++ program for my CS221 course... It needs to calculate the electricity bill for customers, based on th...
[2 replies] Last: You are also using while() loops (incorrectly) in several locations th... (by Zhuge)
Triple Variable Count
 
Hello all. I have a question for homework purposes. Now, I am not asking anyone to do this FOR me. I need help understanding part of it. therefore, I will copy ...
[3 replies] Last: awwwwwwwwwwwwwwwwww god *hangs head in shame* note to self: don't get ... (by quirkyusername)
Question Euclids Lowest Common Demoninator
 
I have been working on this for a few days I'm 14 and trying this on my own, my dad is not a computer programmer I'm down to three errors 4 invalid functi...
[3 replies] Last: 1. One of your IF statements is capitalized 2. Using end1 instead o... (by cppmatt)
ELSE PROBLEM!
 
Okay. I'm completely new to c++. I've come across a problem I don't know how to solve. When someone makes a choice, I want the else, to just ask them the questi...
[4 replies] Last: Okay. Thanks a lot! ^^ (by plantking6)
SMFL not working
 
I tried compiling the default source code when you start a new Code::Blocks project. It has #include <SMFL/Graphics.hpp> then starts int main() W...
[1 reply] : You need to tell your compiler to look in whatever directly you instal... (by Disch)
Calculator won't compile
 
Calculator won't compile. Here is the code: (any help is would be great) #include <iostream> using namespace std; // so we dont have to use std an...
[5 replies] Last: Thank you. It now compiles, but doesnt work quite like I want it to. ... (by Disch)
by jarek
I do not get the address of a character when using &. Why?
 
Hello, When I write: int x; cout << & x ; I get what is expected i.e. the address of that particular variable. However when I write: char y; cout << &y; I get ...
[3 replies] Last: A char is a fundamental type. If you are going to blame anything...b... (by firedraco)
C2065 vector generic
 
Here's my deal... // error C2065: 'ClientConnection' : undeclared identifier std::vector<ClientConnection> m_Connections; This used to compile, but I cha...
[9 replies] Last: Thank you Branflakes! I had a small hunch that it had something to do... (by rat141312)
by Cake
Passing and writing an array of strings
 
What I am looking for help with is char Header in the code below (Note this is a short sample code). The string length is unknown until I read the structure pIn...
[no replies]
static function in a ref class
 
Hello, In a ref class, there is a function as: bool operator>(double value, CBox^ box) { return value > box->volume();} when I compile it...
[1 reply] : It is because C++/CLI requires that overloaded operators be static.... (by closed account z05DSL3A)
Stack or Queue Question
 
I have to write a program for a class I'm in and as part of my final project I must use either a stack or queue in the final program. I have decided to re-creat...
[5 replies] Last: These are some of the requirements of my project. 1. 4 distinct dat... (by SouShadow)
February 2011 Pages: 1... 2829303132... 43
  Archived months: [jan2011] [mar2011]

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