Beginners - May 2009 (Page 13)

file manipulation
 
1.I would like to take primitive line commands. 2. Then I would like to store them as text in a data file. 3. Then I would like to retrieve the commands from ...
[2 replies] Last: You are looking for an interpreter. Check out Tcl http://www.tcl.... (by Duthomhas)
Array problem
 
Hey everybody, Here's the problem. I'm trying to create my own file finding function that would be multi-platform (or at least just for Unix/Linux, and Windo...
[1 reply] : You are going about it the hard way. Use opendir (), readdir (), an... (by Duthomhas)
by jayt
any ideas about recursion ?
 
I have a test on recursion and I have been studying it.I want to test myself.So can anyone give me any basic program so I can make it or ask me something (only ...
[14 replies] Last: a nice recursion example--not as challenging as the binary search invo... (by Joe101)
by ibama
Another array problem
 
I'm supposed to use an array to print out the highest funds raised, lowest funds raised, and also the average of the funds raised, but I have no idea how to do ...
[11 replies] Last: sorry people. Newbie here. Okay don't have a cow, man. (by ibama)
by jayt
template question
 
Hello Friends, I want to ask , Can we use template functions without using any class ? If yes , how ? thank you !
[5 replies] Last: yeh helios ! I got it Thanks (by jayt)
Passing dynimic matrix to a function
 
Hi, mates! I tried many ways to write it, but no success :(. for example : cin>>N; int A ; Can matrix A be passed to a function anyway? when we dont kno...
[10 replies] Last: You are right, on line 88 there is a stupid mistake. I dont know if l... (by MrProfit)
i Hope i did this right
 
I am writing my code in c++. i am not sure if i did this right : Write a complete class implementation (no main function necessary) according to the followin...
[2 replies] Last: 2. should be friend bool operator==( const Worker& w1, const Worke... (by jsmith)
polymorphism example (beginners)
 
Thanks Bazzy and many others that help me to start understanding "polymorphism". Below is a kind of skeleton to help join many things. The idea is a base cl...
[3 replies] Last: I would rename Swap() to something else then. swap has a specific mea... (by jsmith)
File Manipulation in C++, is what I have so far ok?
 
Here is my code, I'm trying to allow the user to input a path to a text file. It reads it, stores it, allows the user to input more data INTO the stored file, a...
[1 reply] : You never stored anything -- you only read each line and echoed it t... (by Duthomhas)
by mac7
Dynamic array of arrays
 
Hello people, like the title says, I need to know how to create a series of dynamic arrays using pointers, the user should decide how many arrays to be crea...
[5 replies] Last: Thanks a ton Duoas, But I don't see the dynamic part of the arrays ... (by mac7)
variable int with other type of value
 
hey guys, I'm new at c++ programming and i have a few question but this one is killin me. look a sample code i created to show what i want to do cout << esc...
[2 replies] Last: What does "escolhaJog" mean? (by Hammurabi)
Troublesome output placement
 
I have the entire program down, but I'm having a small problem with the output. The program is asking for two numbers to be inputted while separated by a space,...
[4 replies] Last: Thank you, I appreciate the help. (by Comrade)
Advice on Histogram
 
Hi There I would like some advice on my code to produce histogram for marks...Just looking for guidance if I am on the right track... #include <iostrea...
[1 reply] : I would say ... no. You are using old-style headers. Do this instea... (by Hammurabi)
by ddamq
Problems with char array and atoi function
 
Hello all I'm having a small problem, who tends to get bigger and bigger, as I cannot go past it. The situation is as follows. I have a char array like th...
[1 reply] : #include<iostream> #include <stdlib.h> int main() { char* r... (by closed account z05DSL3A)
by Bv202
Vector question
 
Hi, Is there any way to add multiple elements to a vector at once? Like you can do: int arrayname = {element1, element2, element3}; Is this possible w...
[3 replies] Last: vector<> has an insert() method that takes two iterators which define ... (by jsmith)
"space character"
 
I define char A ; , then write .... cin>>A; cout<<A; Why if i write, for example, abcd efghi as an input for A, then it will show abcd ? ...
[2 replies] Last: For user input, you should be using getline () with string s. #i... (by Duthomhas)
i need suggestions in c !!!
 
Hello! I have a homework doing a game (checkers). It likes chess. when i begin to write the source code, i face to a big problem. the game can be played ...
[4 replies] Last: thanks for your replies.. I have finished the game. I prefer to use... (by karalius)
by Joe101
Please point in right direction
 
Why does the code below only cout the addresses? --- int* pointerTest(){ int z ; for(int i=0;i < 10 ; i++) z =i*10; return z; ...
[2 replies] Last: Disch, thank you yet again. (by Joe101)
copy an instance of a Stack class?
 
Hello, I am trying to write a program that manipulates a stack containing integers. I have written al the usual: Push, Pop, Print, etc.. My last operator is ...
[1 reply] : Your stack is a stack of ints held in a fixed array. You can do a bit... (by kbw)
by kfex
cc1 error fixed on dev C++ for vista
 
It fixs the error you get when you compile with resources and icons for vista users Heres what you need to do 1. start dev c++ up 2. click on tools in t...
[no replies]
May 2009 Pages: 1... 1112131415... 21
  Archived months: [apr2009] [jun2009]

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