Beginners - March 2009 (Page 26)

c++ array element counting function?
 
is there a c++ array element counting function example: input array size:6 output:the array size is 6 elements/indexes(0-5)//all i need is the number 6 th...
[1 reply] : No. Arrays in C/++ don't have sizes in the sense that it cannot be obt... (by helios)
problem with arrays
 
#include<iostream.h> #include<conio.h> void replace(char ); void main() { char name ; cout<<"Name????:"; cin.getline(name,10); replace(name); ge...
[2 replies] Last: What's the problem? Code's output is :!./a.out Name????:tes... (by kevinchkin)
Recursion and Array
 
I am working on a project and it's main focus is to test my understanding of recursion. The second part, of three, asks to create a function which passes two pa...
[1 reply] : Recursion means the function calls itself. Currently, you don't have t... (by Ganellon)
"An Access Violation error"
 
Ok, so i have read about it on the web before posting this and i have changed it time and time and it still does not work. I am using Dev-C++ (as my instructor ...
[5 replies] Last: And if x and y are not manipulated within the body of the for loop, th... (by seymore15074)
by Dar13
Typing "exit" to exit program
 
Good evening everyone! I'm new to both C++ and the forums but have searched everywhere and have not found what i have needed. I need help setting up code so t...
[6 replies] Last: thanks. =) (by Dar13)
beginner question->binary tree
 
im using book of borland C++ which available in C++ by hung Jinn Kwei to learn C++ in Visual C++ 2008 Express Edition.during my compiling,the output show unexpe...
[4 replies] Last: :D i just found that i did a super lousy mistake, i finally success c... (by zeroriku)
by Space
SQLite, mutiplatform.
 
Hi, I'm programing (trying to) a program that must Open, Manage and Save a SQLite 2.1 database repeatedly in milliseconds. DB size 49KB. Programing language :...
[no replies]
returning STL object from container class method
 
I am writing a sparse matrix container class using map<row, map<col, val> > as my data. In my matrix-vector multiplication method I want to return an STL vector...
[3 replies] Last: vector<long double> x(1000,1), for instance, is okay right? Then I wi... (by kempofighter)
Writing Directly into the address of an 2D array?
 
Hey guys, I am writing a function which has the following form: void myfunction(double inputArray , double outputMatrix ) { for(int i=0; i<3; i++)...
[1 reply] : You can use pointers eg: void myfunction(double *inputArray, double... (by Bazzy)
Can You Pass Class References to Constructor
 
Greetings All, I have one class I'll call Main class and it creates and initializes all of the classes so that they are not re-created again. What I simply ...
[3 replies] Last: solved..I was not defining the class reference correctly. Peace :) (by peacerosetx)
Great Way For Begginers To Start C++!
 
If you are just starting C++ then I preffer Dev C++. Search It In Google. make sure it is the Dev C++ Resource Site! please tell me how you like Dev C++! als...
[3 replies] Last: What's wrong with just a text editor and a compiler? I like cygwin an... (by seymore15074)
Weird bug...advice please.
 
It is kind of hard to explain exactly what is going on. So I will paste my code, as well as a screen shot to better illustrate the problem. http://pastebin...
[3 replies] Last: Actually nevermind, I got it all working. I just did getline( cin,... (by GunnDawg09)
using the do-while statement
 
I want to write a program that uses a do-while satement, that reads in an integer from the keeyboard. If the integer is between the range 1-10 it makes an audib...
[7 replies] Last: cin.ignore is better than getch and system http://www.cpluspl... (by Bazzy)
by xcure
How do I output the result/answer?
 
Good morning everyone. this is my program and I cant figure out how to output the answer. #include <iostream> int main() { double numGallons; doubl...
[1 reply] : cout << "The result is: " << calcTwo; (by Bazzy)
by mudd2
Tutorial
 
Can anyone help me in making an assignment?? How about a tutor? Just until next week... please And is there a way to make a program that acts like MS excel?...
[no replies]
by masiht
return value
 
What is return value ? why do we return value for every function ? why do we return 0 in the main function ?
[3 replies] Last: The return value is the result of a function eg : (maths) f(x) = x ... (by Bazzy)
matrix class... addition in particular
 
below is my code so far for a program that dynamically declares a matrix (2-d array). What i am having trouble with is overloading the "+" operator to add 2 mat...
[3 replies] Last: matrix matrix::operator+(matrix &b) { //Use *this as 1 st m... (by Bazzy)
How to restart ur script/program ?
 
Alright so I have this program I am making. Started it just to kinda refresh some things I kinda already knew, as well as try to learn some new stuff. I started...
[4 replies] Last: You can also use an infinite loop and a break statement: while(tru... (by Bazzy)
fseek error
 
Hi, I am using fseek to expand a file.. suppose the current file size is 100bytes.. now i seek to 100 bytes.. and write 10 bytes of information that ...
[7 replies] Last: will modify the logic to use seek_end and will post what happens... (by terrordrone)
by xcure
Need assistance with the last part of my C++ HomeWork
 
Hello people. I love this site. I needed help with my homework and someone came through, even gave me a link for some tutorials from this site which, btw helped...
[5 replies] Last: we can solve your problem by looking at the problem from the object or... (by muhamed)
March 2009 Pages: 1... 242526272829
  Archived months: [feb2009] [apr2009]

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