Beginners - March 2009 (Page 8)

by Gaylle
i cant get this program to work
 
hi everyone. i hope y'all r doin great today. i saw this prob somewhere and tried to solve it but being such a rookie, my nested if statements just wont work. c...
[2 replies] Last: By the way, use it like: geometry or geometry <filename_of_fi... (by R0N)
by zydeoN
Loops program error
 
Hi, i've done a simple program that has 2 variables (x and y) and displays their multiplication and keep adding one to x. When x = 5, it stops. #include <io...
[6 replies] Last: yes, its easier... (by zydeoN)
Why do I get a strange output some of the time?
 
I am new to programming and have been having a problem with my program. It is supposed to convert a date into day of the year (1\31 is the 31st day, 2\1 is the...
[2 replies] Last: That worked. Thanks for your help. (by nospeake)
my password program...
 
i wrote a password program and at one point i compare a user prompted password to a password in a file to see if they match. every thing works but the "prompted...
[5 replies] Last: if i do how can i keep the "starring" effect for when you enter a pass... (by kyle11778)
Whitespace
 
Could anyone explain why that when I compile this it doesnt form a newline? Am I missing something that i have? Cause I thought that endl or /n meant newline...
[6 replies] Last: Believe me, it's a mistake that just about everybody has made at some ... (by jdd)
Sending data to an array
 
First of all, I am a C++ beginner, so please keep your responses VERY basic. I am working on a project that calls a dataset, reads each value, and then dete...
[1 reply] : I suppose you can best use two array's of vectors for this. #inc... (by R0N)
C++ Coursework Issues
 
Hi people. I've been set some C++ coursework as part of my degree course, but I am new to C++ programming. I have to write a program, which uses functions...
[10 replies] Last: Thanks for the help guys, it really means a lot, my coding has improve... (by Spawn Of Yallop)
Creating a Circular Maze Graph in c++
 
I can think of many non-efficient ways to do this, but I would really like some help on how to get going on this the right way because right now I am so lost.
[3 replies] Last: When you say 'graph data structure', are you referring to a typical ve... (by jRaskell)
Recursivity tutorial
 
Hey all. I'm slowly chugging through the tutorials on this website and I hit a snag at the factorial calculator: // factorial calculator #include <iostrea...
[4 replies] Last: Check this tutorial: http://simpleprogrammingtutorials.com/tutorials/c... (by kdenisk)
some questions...
 
How do we give colour to the text? How do we set color to the background?
[2 replies] Last: thank you.... (by Harlequin)
Executing another program from a program
 
Hi. I'm a beginner at C++ programming and I'm working on a project. I want to execute another program(e.g.program2.exe) in a new window from a program(e.g.progr...
[2 replies] Last: It works perfectly. Thanks! =) (by fr33d0m111)
by luki
problem using 2tan
 
Hi everyone, I am trying to use a coordinate formula called haversine formula for my project to find distance between two points on earth. The 2tan function ...
[2 replies] Last: thanks for the help, greatly appreciated. (by luki)
by si en
string as array
 
hi everyone . i am newbie in CPP . i have a problem for my program . i try to use getline in order to detect string from user . but i wanna use it as arra...
[4 replies] Last: http://www.cplusplus.com/reference/stl/vector/ Read up :) (by firedraco)
by masiht
data structure
 
Hello ! Can any one please tell me how is data structure useful. for example #include<iostream> using namespace std; struct product { int weight; fl...
[5 replies] Last: I'm not quite sure what you mean. I was just explaining a possible use... (by RedXV)
by Prissy
sth about excutable string?
 
#include <stdio.h> int main(int a) { char* x = "bB_Z#^B_Z#h1AI.BMB5#VB2>2:B>>=6#RB@1.>>L12#NB6N:>BN#JFHL1@D6#"; while(a = *x / 4) a -= 8, printf("\n%*s" +...
[3 replies] Last: Got it . Thank u so much~ (by Prissy)
Object Error!
 
Ok, I don't know why I did get this Obj error! This is the AppCalcularPi.cpp //Were main() is. #include "CalcularPi.h" #include "aplicacion.h" #inc...
[4 replies] Last: Ok, U R AWESOME! it was error number 2.... -_-'! I forgot to sco... (by PSPMAN90)
how to solve this task
 
WAP to print: 1 2 3 4 5 6 7 8 9 10 in C. The number of rows(n) is input by the user. I have tried the code but m not gettin da requi...
[4 replies] Last: It says C++ and stuff, but most people don't care if you need help on ... (by firedraco)
flushing input buffer
 
I'm finishing up the last two functions for my myString class, operator>> and getline(). The problem occurs when I use >> to read in a word. if I do myStr...
[2 replies] Last: It works Thanks (by grcunning)
how to solve this problem
 
absolute beginner. using microsoft visual studio. all i want to do is type in 'A' and enter, and for words to beginning with 'A' such as 'Assist' to pop u...
[2 replies] Last: This code should/would generate an error: char mystring['A']; mys... (by eker676)
Custom bit widths
 
How do i create basic datatypes with custom bit widths? Example: I need a 20 bit signed integer. I am modeling hardware that can have custom bit widths. ...
[3 replies] Last: a bit field struct bit_field{ unsigned field : 20; // 20 bit ... (by outsid3r)
March 2009 Pages: 1... 678910... 29
  Archived months: [feb2009] [apr2009]

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