Beginners - December 2008 (Page 8)

Accepting Text Responses
 
I just started C++ with Visual Basic '08 and have been messing around with it and noticed that I can't use the same code for text responses that I use for numer...
[14 replies] Last: That was it. Thanks a ton guys. I'm probably gonna mess around for a d... (by P1ssed0ff)
Trying to cause this program to execute continously
 
I have completed this program outlining mostl of the required specifications I need. However, I need to be able to run continously until the user chooses to qui...
[9 replies] Last: Fine... why would you ever not be able to use loops anyway.... boo... (by Duncan)
by wehs
Diferences while saving int value through fwrite
 
Hi Following code #include <stdio.h> int main(int argc, char** argv) { int i = 9; FILE* fp; if((fp = fopen("data.dat","w")) == NULL) { p...
[2 replies] Last: Yes, there should be "0D 0A 00 00 00". Thanks Wehs (by wehs)
comment out...
 
I understand that functionally it doesn't matter if you use \\comment or /* comment */. I believe one of them came from C (not sure though) and the other was a...
[1 reply] : /* */ is C // is C++ /* */ can span multiple lines // cannot ... (by jsmith)
_stdcall ?
 
I've found it before WinMain and WindowProc functions. What does it do?
[1 reply] : This is what is known as a (language) calling convention. The calling... (by guestgulkan)
Playing a song?
 
For a cheap gift(I have no money right now) I'm programming something for my mom that says I Love You and plays a song. I was wondering how do you play a song u...
[11 replies] Last: thanks (by willia23)
While Loops
 
I want to make a password and let the person have 3 trys, but i can't seem to get it to work. after the 3rd guess it moves on to my code after the password part...
[2 replies] Last: Well i wanted to make it so the password didn't show up only *'s MM (by GrosseVogel)
Error Checking If Statements on months and days (1,2)
 
My Problem is that my code for working out the number of seconds that have passed since 2000/01/01 once the user has typed up a date after 2000/01/01 My if sta...
[37 replies] Last: sure mags, but i dont know how helpful I can be... my addy is ninza_12... (by NannyCool)
C-Syle String won't clear
 
I built a program that asks the user to input a string of characters. It then assigns the program to that string using cin.get(x,x). It goes about doing what I...
[15 replies] Last: I was about to say I was but I realized that after I changed it I hit ... (by Caffiene Powered)
split a string at first whitespace
 
Hi can anyone help. I appreciate any help I can get. How do you split a string that you are reading from a file at the first whitespace? Do you use substring to...
[3 replies] Last: if you use file >> string it should break when a whitespace is found... (by Bazzy)
why doesn't my game work?
 
[5 replies] Last: http://www.cplusplus.com/forum/beginner/6362/ http://www.cplusplus.co... (by scythe)
sqrt with while loop
 
#include <iostream> #include <math.h> using namespace std; int main() { // Declare four variables n, i, an, and is_prime respectively. int n;...
[10 replies] Last: Well...Did I do the exercise correctly as the QUESTION of the EXERCISE... (by kenryuakuma)
by xonara
Libraries are confusing me.
 
I've looked for some info on how libraries and linkers work on wikipedia and some other sites but it's all just confusing me. For the most part I just want a li...
[4 replies] Last: OK, after reading a bit more on wikipedia I've got a good idea how it ... (by xonara)
why do i get error to random numer generator?
 
i wrote in a program srand ( time(NULL) ); trap = rand() % (lenght2-1); and i receive the following error: time cannot be used as function why? i...
[4 replies] Last: for piulitza: aramianda@yahoo.com thanx a lot!!! (by sabina)
problem with program
 
I made this program my self , it works but when it shows the result ιτ repeats ""Can't accept negative numbers or 0 " even if the numbers are correct . What's...
[1 reply] : As I said at http://www.cplusplus.com/forum/beginner/6376/ Remove the... (by Bazzy)
i want this program show 2 arrays but i doesnt
 
<code> #include <cstdlib> #include <iostream> #include <conio.h> #include <iomanip> #include <stdlib.h> #include <time.h> #include <string.h> using n...
[5 replies] Last: As i put so many questions its clear i didnt finish it (by piulitza)
problem with a mathematical program
 
I wrote my self a program but it doesn't work : #include <iostream> #include <math.h> using namespace std; int main() { float r , p , s; float P=3.1...
[4 replies] Last: You shouldn't use pow() to calculate the square (or, for that matter, ... (by exception)
mathimatical problem
 
what is the expression in c++ about a number in square for example 2*2 , how to write it 2 in the square ?
[4 replies] Last: It's old, but point being is it's using pow and a function that's not ... (by Mythios)
Calling Fortran Subroutine in C
 
Dear All I am using Microsoft visual C++ 2008 express edition. I want to call a FORTRAN 90 subroutine in my C program.this subroutine should be called in...
[1 reply] : There are three ways to approach this: 1. Translate the code to C eit... (by helios)
problem with a program
 
I made my self this program , but it doesn't work correctly , can anyone help me ? #include <iostream> using namespace std; int main() { float a,b,c,...
[2 replies] Last: I guess you want to promt the user for a value, and if that value is o... (by Scipio)
December 2008 Pages: 1... 678910... 17
  Archived months: [nov2008] [jan2009]

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