Beginners - April 2009 (Page 11)

by omk
Copying pointers.
 
Ok, Im not sure if Im going to explain myself properly but I will try mybest :P My question is: Can you copy a pointer? I mean, not copying the data, but cop...
[3 replies] Last: when you say array2 = array1 ; , it means 'the second pointer variab... (by arun1390)
by jayt
how to create a file
 
I made a program to create a file but when I go to the given drive I dont find the file. I made this. #include<iostream> #include<fstream> usi...
[6 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ (by kevinchkin)
by Peyton
Strange array problem
 
Hi there, I have a strange problem with the following code: #include <iostream> using namespace std; int main() { const int arraySize = 19; ...
[6 replies] Last: Sorry, you are wright. I just looked and saw a variable and out of ist... (by andrei c)
by Brutal
how to use user input for filename?
 
I am trying to have the user input a filename and then open that file? I cannot seem to figure it out. Is this anything close to what it is suppose to be? Ha...
[2 replies] Last: Thanks a ton I have it working now =] (by Brutal)
by arshak
copying files
 
Hi everyone!!! I wanna write a program, that copies a file from one location to another (for example copies D:\\file.txt to C:\\Folder1). Could u write the cod...
[3 replies] Last: C++ is very good for reading and writing files, as far as the standard... (by andrei c)
Removing beggning of the string
 
I've got big char array which contains text from somewhere else, e.g: name Uriziel How can I remove "name " from this array?
[2 replies] Last: Hi Uriziel! Bazzy is right.You should use strings for char variables ... (by andrei c)
C++ .exe/.app
 
Ok so this will probably make me sound like the biggest noob in this forum BUT its a beginners forum right? So my question was, if for example, I wanted to make...
[10 replies] Last: http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html (by eker676)
Random chance
 
Hi there, i started learning C++ 3 days ago and i am really excited.I wrote this small code and i wanna know if there is a way to Declare a certain value for th...
[1 reply] : What do you mean? Your code doesn't even use those variables, i mean '... (by andrei c)
string to array of chars
 
I have a program that reads and writes inventory info to a .dat file. The main routine uses strings, but in the class they are to be converted into an array ...
[1 reply] : Hi josea321! It seems that you missused the strncpy function.That fun... (by andrei c)
by omk
Keeping data made inside a function, outside the function.
 
I had this great idea for controlling data inside the project we have gotten as a school assignement by adding/modifying data inside a global function, but keep...
[5 replies] Last: Dont' know if this helps, but if you where to pass data into a functio... (by andrei c)
Passing a pointer to a function (1,2)
 
I've made a function to set up a array of modules and then a separate function to print out these modules how would i go about passing the pointer to the array ...
[21 replies] Last: No it doesnt like that for some reason either these were that errors... (by McEtcha)
Creating a database using structures
 
Hello, I have to create a database which contains records of people. My code is below: #include "stdafx.h" #include<iostream.h> //include input/o...
[2 replies] Last: ok i made some changes from line 154 this is what i added: while... (by sharkie9)
by sobi
Writing a program in C that parses a text file into words
 
Trying to write a program that parses a text file into words and counts the number of occurrences of each word. It is to allow for up to 100 different words and...
[1 reply] : How far have you gotten on your own? What part do you need help with? (by PanGalactic)
Compiling game for class (not a homework request)
 
Hi all, I've been assigned some homework (I know but keep reading) which requires me to alter a little game written by my instructor. unfortunately I cant co...
[3 replies] Last: You should probably start building yourself a Makefile to automate the... (by PanGalactic)
by Jyy
Counting the chars?
 
Hello, I tried to make a code that turns the letters of a word, in a compact way (so not with extra functions). Dere is my code: #include <iostream> #...
[3 replies] Last: Why use " char hoi ; " rather than " std::string hoi; "?... (by PanGalactic)
I need source of C++ exercises
 
Hi every1. I am currently learning c++, and i seriously think i need to write code in order to really get a grasp with the syntax and concepts of the language...
[2 replies] Last: Here's another: http://www.cprogramming.com/challenge.html For expe... (by mcleano)
by omk
toupper with pointers?
 
Ive read several topics on the inet now that claims that the following should work: Definition: void read( char* in1, char* in2 ){ cout << "\nYour choice...
[7 replies] Last: Yeah, it helped. :) I ended up reading into a string inside the fun... (by omk)
by jeysel
Prime vs Composite Number
 
I want help about this problem; input a number: 6 the output will be 1 >> PRIME 2 >> PRIME 3 >> PRIME 4 >> COMPOSITE 5 >> PRIME 6 >> COMPOSITE ...
[6 replies] Last: thanks for the help guys. I have solve this problem. thanks very much. (by jeysel)
by jeysel
Finding the largest Prime
 
Hey guys, i need help about finding the largest prime. Example:when i Input a number: 100 the output will be:The largest Prime number is 97. Press any key...
[11 replies] Last: tnx for the advice. I have solve it..thanks guys.. (by jeysel)
Problem with carriege return '\r'
 
Hello, I have very strange problem with printing data in console using '\r'. I would like to show current time of a football match in my program and i would lik...
[2 replies] Last: Hello, thank you for your answer. I tried your suggestion, but it stil... (by nieziemski)
April 2009 Pages: 1... 910111213... 28
  Archived months: [mar2009] [may2009]

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