Beginners - April 2008 (Page 9)

number place value
 
is there a way to make it so i can have a switch change the number 127 into one two seven in that order and to recognize which place a number(such as 1s 10s 100...
[8 replies] Last: thanks dudes (by gregv21)
by Kvakac
append characters to string
 
Hi I want to create a for loop, that would compare two sets numbers in each iteration and return either 1 if the first number is bigger then the second or 0 if...
[16 replies] Last: I've uninstalled the 2008 pro trial and downloaded 2008 express editio... (by Kvakac)
by jaredd
Word arrays
 
I did c and c++ years ago in school, and then moved on. I recentaly decided to get back into visual c++ and ive been runnign along smooth until I started tryin...
[1 reply] : Never mind I found the problem. Did not know I needed to #include <st... (by jaredd)
Creating a table using VC++
 
I have created a simple program for one of the applications I'm working on, but what is more important here is the how the program output is represented. The re...
[no replies]
Result is always TRUE!
 
Hello. I'm abit of a newbie at C++ programming. I'm trying to create a simple program, that can just multiply x and y, that you enter. But when I run ...
[10 replies] Last: I did that, but still get alot of errors. :S (by Gramdtante)
input error!
 
Hello to everyone! I isolated the proble in the following code: #include<iostream> #include<string> using namespace std; struct dadospessoais{ int sta...
[5 replies] Last: Another possibility is to use a combination of cin.sync() and cin.clea... (by rpgfan3233)
small problem
 
I just started C++, and i've asked help before on a different code. Thanks for the people who helped me. most of the text is finnish. But now i need help...
[2 replies] Last: Thank you really much =) You saved my day! (by Themonk)
program won't allow new user input entries after 1st run loops back
 
Please input the code i'm providing below into your compiler so you can see the issue i'm speaking of, as it's sort of hard to just explain without seeing it. F...
[3 replies] Last: thanks for all the help, much appreciated, cleared alot of my confusio... (by Rynomite04)
How do I check for the end of the file?
 
If I am reading numbers from a file, how do I check to see if there are more numbers to input? or how do i set the program to stop reading after there are no mo...
[2 replies] Last: To add a bit of explanation to ropez reply, an instance of a file stre... (by Faldrax)
Dynamic Memory Allocation
 
I want to create a multi-dimensional array in runtime in as simple way as possible. so, i tried the following way... int *rows; //then i can always create ...
[5 replies] Last: >> can we specify the rows and cols as dynamic values rather than some... (by DrDogg)
by evilc
Virtual functions but no virtual variables in classes? (1,2)
 
Hi, I am new to C++, picking it up to dabble in some windows mobile programming. I am using the excellent documentation on this site, and I have come up agai...
[22 replies] Last: You could try @: http://forums.microsoft.com/MSDN/ShowForum.aspx?Foru... (by closed account z05DSL3A)
query on extracting and do a match for strings
 
hi people i need help to do an extraction of string from a file and then check the string against another string to see if they match and increment a counter fo...
[1 reply] : Basically, I would open a stream to one file, then use getline() to ge... (by firedraco)
New To C++
 
Well as the title says, I'm pretty new to C++. Earlier I felt like I was actually starting to understand it so I decided to go ahead and try to make a rather si...
[4 replies] Last: #include <iostream> #include <string> //<-- much easier then using... (by firedraco)
Just one question now!
 
Can I turn all of this into one function? #include <iostream> #include <vector> #include <algorithm> #include <ctime> #include <windows.h> #include <...
[2 replies] Last: Thank you very much! You helped tremendously. I can see where the fuct... (by katielynnsdad)
Passing pointers to allocate memory
 
Hi guys, Really basic question, but I'm having problems as I'm trying to build my first linked list. My problem occurs when i want to allocate memory for a n...
[1 reply] : You want a reference to a pointer... T GenerateNode(T*& newNode) ... (by DrDogg)
BLACKJACK
 
Hi ive been trying to write this blackjack game and i got stuck what im trying to do is make it so i can bet after each roll but im confused on how to do so..he...
[1 reply] : Well, the game you are making is actually called 'craps.' Anyway, you... (by firedraco)
Boolean functions
 
I'm confused as to how call a function. I know I'm doing it wrong, but I can't find anything that describes how to call it. I want main to call isInvalid to det...
[1 reply] : You need to have the function return the result bool isInvalid ... (by Faldrax)
where do files save when using ofstream?
 
I am trying to learn how to output to a file using ofstream, and after the program exits i cannot find the file. It's supposed to create a new file and then wri...
[2 replies] Last: Assuming you're using relative paths, it's placed relative to the curr... (by ropez)
I fugured it out myself finally after 3 days lol
 
For anyone who looked at my code and thought I might of just been stupid or something, here is what I got to work for me and what I was trying to do with it. ...
[no replies]
confused about functions
 
here is my code, and my problem is how am i gonna display the division name with its sales number, and other thing is how can i be sure that sales are positive...
[no replies]
April 2008 Pages: 1... 7891011... 18
  Archived months: [mar2008] [may2008]

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