Beginners - February 2011 (Page 13)

Calendar Program
 
I'm writing a calendar program that ask for the the number of the month and the year and displays a calendar. My problem is that when it tries to print the cale...
[1 reply] : It shouldn't even compile, int DaysYear() has no return value. Fix thi... (by lrwham)
by Sieves
passing arrays
 
when i pass an array with a single dimension it goes thus: void fun(char ); int main{ ... fun(a) ...} void fun(char a ){...} and it works but when i a...
[8 replies] Last: This is true, design error on my part... oh well thanks for all the he... (by Sieves)
cygwin
 
Hello, I use cygwin to compile my cpp file. The problem is that in my code I output data to the file and I need the data to be in column format. For this to hap...
[4 replies] Last: If anyone is interested: http://www.codinghorror.com/blog/2010/01/the-... (by filipe)
Stimulated Variation of the Card Game “War”
 
Stimulated Variation of the Card Game “War” I need to create a simulation of the card game "war" except in this game it is called trump. The rules are: 1...
[5 replies] Last: i have no idea what vectors and/or deques. our instructor told us tha... (by cplusplusbeginprog)
switchnotworking
 
im in a c++ class and i cant figure out why one of my assignments doesnt work. more specifically the switch doesnt work. heres my code #include <iostream> u...
[3 replies] Last: In addition to what matsom said about tags, if you recieve compiler er... (by Danny Toledo)
linked list basic
 
#include<iostream> using namespace std; int main() { struct node{ int x; node *nxt; }; node *node1,*node2; cout<<sizeof(node1)<<"\n"; cout<<"Pleas...
[3 replies] Last: Thank you!!! (by help123)
Can't find why my 'for loop' is out of range
 
The code I'm focusing on is the code between the '//Start' and '//End' comments. I am creating a program, and I'm not seeing how the for loop could go out of...
[2 replies] Last: Next time, could you please try the code before guessing what's wrong.... (by RubyDave)
Detecting Initialized Members In C
 
Yet again, I'm back with another head-scratcher in C. This is not exactly an error question but a logical solution if you will. How can I tell if a member( ...
[5 replies] Last: I've got an idea how it works now. Thanks, Firedraco. (by closed account zb0S216C)
by amedxy
how to find size of a float
 
how to find size of a float? eg size(123.456)=6 size(12.10)=4 size(1234)=4 size(0.1212)=4
[5 replies] Last: No, it doesn't x=12.12121 6 (by amedxy)
by lalala
I am confused as to what to do next
 
So far one part of my program seems to be working. But the other part is what I am confused about. Can someone please help me out here. Like at least guide me. ...
[5 replies] Last: okay so I got everything to work now except the 5%of annual salary par... (by lalala)
Need advice on teaching my 14 year old son. What direction for a kid?
 
My son is 14 years old and for weeks / months has been asking me to teach him c++. I personally have dabbled with it a few times but I am by no means qualified...
[8 replies] Last: @Fantasy No. (by packetpirate)
Multiple Definition Of In C
 
This problem is really doing my box in. First, here's my code: struct Vertex { struct Location { float *XRes, *YRes, *ZRes; } Locat...
[10 replies] Last: It's C99 (most "pure C" out there is C89, so it's nice to qualify when... (by filipe)
by koby
Get a program to put/copy itself to the startup folder?
 
I don't know really anything about C++. I'm just making some super-easy-to-write programs and I was thinking while I'm learning more, some of the programs I mak...
[15 replies] Last: I can't even take this thread seriously lol. (by closed account zb0S216C)
Why Are These Strings Garbage (Though The Addresses Are Correct)?
 
Note in the output below that the values printed upon the return from dealPokerHand() are all "╕V┐". And as you can see, the syntax used for both the befor...
[3 replies] Last: Dear Disch and Duoas, Thanks for your thoughtful reply. I have imp... (by dbailey7)
by HMW
Saving to specific directory (GNU/Linux)
 
Hi all! I just read the tutorial on input/output with files (http://www.cplusplus.com/doc/tutorial/files/). I think I understand most of what I am reading...
[9 replies] Last: Ok, now i got it. Thanks for your patience. Here is the working versio... (by HMW)
Program crashing
 
I am writing a payroll program that sorts netpays- it compiles but crashes immediately. Do you guys have any thoughts as to why this is happening?? #inclu...
[6 replies] Last: Thanks for the help. I changed the beginning of the main block to ... (by cplusplusrookie)
by tonnot
How to use a char * buffer I read from a file.
 
I have a char * buffer read from a file. Now, How I'd like to : How can I convert the buffer to a string, to a double, to an array of doubles, etc.? Have ...
[no replies]
Select a 32 bit linker
 
Hey folks, I'm a newbie in the context of programming with a console. My operating system is Snow Leopard. To compile some systemC files I need the followi...
[2 replies] Last: Hey Computergeek01, thanks for your suggestion. I found following i... (by Seth Cohen)
Having Trouble: Basic C++ in OS X for school project
 
I am running XCode 3.0 for C++ development in a Mac environment. I'm working on a school project; here is the basics of the requirements: • Program must r...
[3 replies] Last: Happy to help :) Don't forget that you can also run your applicatio... (by Lodger)
Have no idea what to do!
 
I am a beginner ... I have nowhere to begin! Does anybody have an Idea for a program that I can write that runs from the console. I need a challenge... I a...
[13 replies] Last: I actually know a lot of languages. I know Java, C, C++, Pascal, HTM... (by appnerd)
February 2011 Pages: 1... 1112131415... 43
  Archived months: [jan2011] [mar2011]

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