Beginners - March 2009 (Page 21)

by mudd2
Need in sorting
 
I forgot the codes you need to sort a string of numbers. EX: row1 row2 row3 line1: 8 6 3 line2: 3 3 4 line3: 4 7 9 How can I sort row1 from leas...
[2 replies] Last: How about something like this? #include "stdafx.h" #include <stri... (by kempofighter)
by mith
On nested switches
 
hey guys. I'm new to this forum, but I'm a bit experienced in making the very basic programs.anyway,we have this project in our class, and I decided to do a sho...
[2 replies] Last: Well what do you mean by stop? Isn't it supposed to stop at the line ... (by kempofighter)
by q12
"Calling" everything
 
hy im q12 and im rookie in sort of programming and I NEED HEEELP. what is on my mind is a little hard to explain.I try my best. I know how to declare a varia...
[3 replies] Last: <duh>Hmm. Maybe you can check out the tutorials on cplusplus.com?</duh... (by PickleMan)
*char to char[256]
 
I have this function over here. char *fun(){ char a ="abcdefg"; return &a ; //??? } witch is supposed to return whole array like this ...
[4 replies] Last: Thanks a lot ...clears my doubt ... (by ad126)
by zydeoN
Creating program envolving password
 
Hello everyone! im new to c++. Im trying to do a program in which the user have to enter a password if he wants to enter something, for example, a folder in des...
[2 replies] Last: thank you, but i still have a problem. Ive got the errors: unknown e... (by zydeoN)
Simple homework
 
I have an assignment where I have to A metric ton is 35,27.92 ounces. Write a program that will read the weight of a package breakfast cereal in ounces and o...
[5 replies] Last: Thanks very much (very very much) but when I run it it says :3.125e-00... (by DrChill)
operator ++ for char data type
 
i saw a code, it was writen: char x ="data00.dat"; ++x ; i don't understand ++x ; operator can you help me to understand this code? thanks!!!...
[4 replies] Last: For ascii values see http://www.cplusplus.com/doc/ascii.html (by Bazzy)
quicksort/qs function runtime error
 
I am having a problem with a typo in my quicksort/qs project. 'enduser000' asked about these functions citing the same book (re: Forum/Beginners/2113). My c...
[2 replies] Last: Thank you, Bazzy I knew another person's proofread would do the tri... (by erandalln)
by omk
Pointers in a class, used in global functions.
 
Hi, Im currently trying to make a tool for reading txt files and extracting data from it into two different classes. One of them is a array of pointer to object...
[9 replies] Last: Yeah, I really need to use pointers more I guess. Thx for the help :) (by omk)
by berge
not enough to declare in main?
 
My code: #include <iostream> #include <ctime> #include <cstdlib> using namespace std; char randomChar(); int main(){ const int SIZE = 4; cons...
[5 replies] Last: What signs you get? srand sets the random seed and if you change ... (by Bazzy)
i want to return a pointer to a part of array
 
i m making strchr() function, i need to return a pointer that points somewhere in the array,my code here does not work: char *astrchr(const char *s,int c) ...
[1 reply] : Your friend is right but if you want to use subscripting the right syn... (by Bazzy)
can you please create sample program on this problem
 
Data Structure and Algorithms Finals Case Study Create a mini Student Accounting system base C++ application that will contain the following features: ...
[2 replies] Last: You're not going to laern anything if someone else makes the program f... (by awasteoflife)
Windows programming model
 
Can someone explain me in simple terms the windows programming model......
[1 reply] : http://www.google.com.ar/search?q=windows+programming+model (by helios)
by Anta
please answer this question , merci
 
i'm a beginner, please help me ! what is purpose of key words " const " and symbol " & " in 2 function? : 1/ Fraction Fraction::plus ( const Fraction & ...
[2 replies] Last: I reckon the const and static keywords are two of the most confu... (by guestgulkan)
by Duncan
Possession of custom classes
 
Hey I'm having a bother figuring out what I'm doing wrong here.. it seem so simple. Check it out: class Point { private: int x, y; public: Point(in...
[2 replies] Last: oh haha so simple thanks :D (by Duncan)
by igsen
Loop that outputs the numbers 7 to 0 in that order
 
Total beginner.I'm learning C++ thru article I've got from web. Basically I'm through with this part: //A Program that counts from 1 to 5 Inclusive. #include...
[2 replies] Last: Thanks mcleano, I figured it out. Here goes my code hope beginners lik... (by igsen)
pop_back();
 
I having trouble implementing the pop_back(); callling it from main(). I understand it's use with something that is less complex but so far its just killing me...
[10 replies] Last: It sounds like the fact that I'm using a pointer creates some issues. ... (by cascade384)
A question
 
#include<iostream> #include<cstring> using namespace std; class Record { public: typedef size_t size; Record() {bytecount = 0;} Record(size s) {byteco...
[3 replies] Last: This code wouldn't actually compile with the Visual C++ 2005 compiler.... (by RedXV)
Building array of objects
 
I'm a little new at this, forgive me if I seem obtuse. I've built a Pollution class. It looks like this. class Pollution { private: int hour, co2, h2...
[4 replies] Last: Well, you could definitely pass in a reference to the object and that ... (by RedXV)
by berge
read words from inoput, store in a file
 
Hi! How kan I write a program that reads words from the user input (cin), and stores each word as a separate line in a text file. I guess I need a cout << "w...
[3 replies] Last: you can use string::find eg: string line; getline(cin,line); if... (by Bazzy)
March 2009 Pages: 1... 1920212223... 29
  Archived months: [feb2009] [apr2009]

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