Beginners - March 2009 (Page 13)

Assertion Failure with cout and class methods!
 
Hello, I'm having a problem with a programming project of mine. To keep it short and simple, one of my functions in my OWN custom class called vector (it's what...
[4 replies] Last: Ah, it worked. Thank you (darn subtle syntax...)! (by Sparx401)
by masiht
do while problem
 
I am working on a program , the do while part is not functioning .Can anyone please tell me what is wrong with the following code. the error it shows is synt...
[9 replies] Last: That program compiles just fine for me. There's nothing wrong with ... (by Disch)
by bul268
Program is not working correctly
 
This program i have written shows incorrect results.Pls guide me the correct way... #include <cstdlib> #include <iostream> using namespace std; int ma...
[3 replies] Last: thanks a ton Bazzy! your suggestion worked :-). (by bul268)
Using TypeDef
 
I am to be writing a program for class but kind of stuck at the beginning.. i have.. p3.cpp which includes these two: Media3.h List3.h List3.h include...
[2 replies] Last: OH! forgot about that.. thanks :D it worked :) (by vexstorm)
by masiht
.h files
 
Can anyone tell me what is .h files please ? and give me an example that contain .h file as header file.
[2 replies] Last: Thank you I read that. Can you please give an example of a program th... (by masiht)
(SOLVED) Scored World Jumble - Again Game loop
 
Hello everyone, I have written a code for a scored word jumble, however my "play again" option isn't working the way I want it to. Fact is, when the playe...
[7 replies] Last: Never mind, I reviewed my code and it actually does work. It simpl... (by err0r1212)
for loop
 
hi i start to learn c++. there is a lab asking write a program to add between 1 to 20 using a for loop. Check that the program ontained the right answer by...
[3 replies] Last: You can use an accumulator in a for loop like this # include <iostr... (by Xenophilius)
read binary file one line at a time
 
hello, Newbie trying to teach myself c++. I am trying to read from a binary file written by fortran. I have two issues that make me want to read line by line...
[2 replies] Last: Thanks much, firedraco. that worked - I can see my header lines. Unf... (by eoskeny)
by wretch
gcc/linking to: myfunc.cpp vs. myfunc.c
 
/* hello.cpp */ #include <stdio.h> extern void myfunc(); int main() { myfunc(); return 0; } /* myfunc.c, or myfunc.cpp */ #include <stdio.h> vo...
[4 replies] Last: I always thought once you get to the link stage, C and C++ are both as... (by wretch)
What is happening with this class
 
I don't understand this line of code: Button::Button(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(270, 150)) ...
[3 replies] Last: Now would be a good time to recommend Effective C++ by Scott Meyers. ... (by seymore15074)
by Grimm
Void Function
 
Hello there, I have been working on a little piece of code that is part of some work for my C++ course in university. Now I am not going to lie, I suck at C++ ...
[8 replies] Last: Check your project folder and make sure you don't have any other .cpp ... (by Return 0)
Class function malfunctioning
 
Hey, Been fiddling with this class called "name_pairs". It has two vectors, one holds names and the other the accompanying age. Here is the code: ...
[7 replies] Last: Right, the problem has to do with mixing getline and operator>>. I'm ... (by chungolongo)
Am I looping wrong??
 
I've been working on this code for the last day. Although it works, I need a clue on how I can get the loop to keep repeating....any suggestions. Code Below...
[6 replies] Last: Both loops work great!! Thanks again. (by grayslove)
program output assistance
 
I have made a game in C++ as part of a project in my high school C++ class and now I'm just messing with it and making it look good. I have ascii art in it n...
[4 replies] Last: yea so i remember that after you mentioned it only im having an issue ... (by polarisdrivr)
Error C2064
 
Hi there. As you probably will see, I'm new, and my english is not the best... But, getting to my problem right away, I'm stuck in a compiling error C2064, in a...
[2 replies] Last: A million thanks!!! I'm amazed how I read many tutorials and problems ... (by Alkaselzer)
by masiht
Programing question
 
Hello, Can anyone please give me an example of a program which runs for ever unless the user enters q or Q ?
[6 replies] Last: thanks jaydr ! your example has helped me alot . thanks again ! (by masiht)
by masiht
How to convert switch statements to if-else
 
Hello , I have been trying to make a complicated program.First I tried switch statements but that didn't work then I tried to change it to if else , but I coul...
[1 reply] : Please use [ code][/ code] tags when posting code if ( x=='m' ||... (by Bazzy)
how do i break an int down to its individual digits?
 
This is just a small part of a bigger problem i got to solve. suppose I got a int 126. Because it is a whole number, it cannot be split into bits can it? If i ...
[4 replies] Last: Also note that that approach can be generalized to support other bases... (by seymore15074)
Changing Color of command box
 
I just discovered you could use system ("color 2") to change the text color and background color of the command box and I was wondering If you could have the us...
[5 replies] Last: Ok thank you again (by Enserric)
I'm not sure what my syntax error is.
 
I have my program all written out and I'm pretty sure it works. I think that I have some syntax error that I just can't see, because it will compile, but it cl...
[1 reply] : There is no syntax error, the program is simply not doing what you pro... (by jdd)
March 2009 Pages: 1... 1112131415... 29
  Archived months: [feb2009] [apr2009]

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