Beginners - March 2012 (Page 20)

by myoni
error: stray '\357' in program
 
why I'm getting these errors ? prog.c:1: error: stray '\357' in program prog.c:1: error: stray '\273' in program prog.c:1: error: stray '\277' in program...
[9 replies] Last: There's no way for us to tell you which line is bad prog.c: 1 : erro... (by LB)
by gian20
add var1 and var2[help please]
 
Hello, I am trying to add this: (VS 2005 C++) cmdline.append(PINGSITE and "blogger.com"); in VB .NET the code will be like this: PINGSITE & " blogger.com...
[1 reply] : PINGSITE + " blogger.com" (by Athar)
setting range to variables
 
Hi, anyone know how to limit a user input? e.g #include <iostream> using namespace std; int main() { int userInput; /*i want the user inpu...
[11 replies] Last: woots...many reply o0. sometimes even though cin.bad or fail is used. ... (by stayput212)
by atjm88
cvInitFont, cvPutText, cvRectangle
 
Hi everyone, I'm new in OpenCV, after go through some of the program, I having problem here...I have some confusion after search the following program from Inte...
[1 reply] : 1. Is this CvFont* font from eBook means pointer of the name? 2. Why ... (by chipp)
Calculating e in C
 
I was trying to rewrite a problem in my textbook using a loop. The book demonstrates e = 1 + 1/1! + ... 1/n!. I set up something similar with a for loop but th...
[4 replies] Last: Thanks for the help everyone, I got what I was going for using an addi... (by don e doos it)
Why is my search not finding the word?
 
Okay this is the example. It's with integers unsigned int seed; //a random seed int num; //to hold an int value arrayListType<int> list(100); /...
[4 replies] Last: When you use "cin >> word" it skips all leading whitespace. (by cire)
graphics!
 
Hi! I've made some graphics with allegro so far, but I want to create the game from scratch. Could I somehow create a graphic library myself?
[1 reply] : If you've looked at the box that your video card came in, it will say ... (by Stewbond)
Pointers and arrays
 
SubassemblyType::SubassemblyType(char *city) { ident=city; state=START; } for(int i=0; i<nobjects;i++) { fin >> city; components = new Subass...
[no replies]
SFML(displaying a varible)
 
I apologize in advance, as i know this isnt the SFML forum, but Ive seen a good amount of forum goers that have knowledge of SFML. How would i display a varible...
[3 replies] Last: It works just like cout, only it puts things in a string rather than t... (by Disch)
file handling
 
I need help... this is the problem =write a program that will create a file that contains product number, product name and price and will output the most expen...
[no replies]
i need help with my program
 
i need to create c++class to store temperature. class should store temperature(magnitude) and scale (celsius, fahrenheit)class should have constructors as well ...
[1 reply] : http://www.cplusplus.com/forum/general/65306/ (by Need4Sleep)
How to use pointers to add an object to an array?
 
http://www.cplusplus.com/forum/general/65303/
[no replies]
Unknown symbols when reading file and saving words to an array (iostream)
 
So the task is finding palindromes (symetrical words) from a text file and outputing them to another file. Text can be read only one symbol at a time. Curren...
[6 replies] Last: The problem was me taking the next symbol in the else part rather than... (by MatthiasBerger)
by aas09f
Problem initializing 2D array
 
Can someone explain to me why I'm getting these two errors? I think it's within the initialization of the 2D arrays. MyInt is a class using dynamic allocation t...
[1 reply] : int main(){ // //int **p = new int ; <---- Can't do this ... (by histrungalot)
Why does it crash it?
 
I kinda was surprised when a single declaration of "ret" as an int crashes my program. What i'm trying to say is that,no matter how small a program is-- if i de...
[3 replies] Last: The main reason i read in the article is that Dev C++ has an obsolete ... (by OxBADC0DE)
struct and constructors and all that niffty stuff. halp?
 
Hi friends ! I has a question. I am not sure I should be doing all this at the first but I am not understanding the assignment the assignment (incoming wall...
[12 replies] Last: Am I understanding that I need to make a variable for each division i... (by cire)
Linked List - Stack
 
Hey, I am testing a stack implemented as a linked list built backwards and for some reason, my program is outputting 12 11 when it should be outputting 11 12...
[2 replies] Last: Whoa. That's weird... I don't recall ever running into that before :p (by Maese909)
How To Make An Array Based On User Input
 
I need my array or a vector that will be the size the user wants it to be. I also need syntax and stuff like that Thank You
[5 replies] Last: thanks! (by Timothy Palmer)
Arabic to Roman Numerals?
 
Hi, I need to write a program to convert arabic numbers to roman numbers, but we are allowed to use neither strings, nor arrays. we aren't supposed to call mo...
[4 replies] Last: he wants us to write 4 pages of code. no arrays, no strings, no vecto... (by donufia)
Why won't This Work?
 
When trying to display a string in an array it says << won't work so how can i fix this i;ve been told before ending a string in .c_str makes it write but this ...
[no replies]
March 2012 Pages: 1... 1819202122... 71
  Archived months: [feb2012] [apr2012]

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