Beginners - March 2012 (Page 60)

by lare26
list.push_back() problem
 
I am trying to create a list of rooms to add an location number. But i am getting errors. Why am i getting those errors? code: list<Room> room; list<R...
[7 replies] Last: ¿Are you just smashing the keyboard? int main() { list<Room> room... (by ne555)
Help with reading from a file
 
I need to read the values from this file and save only the numerical ones in a new file. How can I skip the header which is up to end_header word? how can read ...
[2 replies] Last: Thank you very much for the reply. I have written this code but I dont... (by Candy1986)
unhandled exception
 
I am trying to write a simple program that reverses the letters of a word entered by the but after the enter key is pressed I get this error message uUnhandl...
[10 replies] Last: that fixed it thank you (by jax666999)
writing functions
 
Anyone wanna halp? I am stuck and running out of time. I am supposed to do this: Write a function that will display a single multiplication table. It is to rec...
[2 replies] Last: thanks a bunch. (by closed account 2EURX9L8)
by Barkin
C++ I couldn't write output,, I dont know how to do,, please need help.... :(((?
 
Prompt the user to enter a date in the YYYYMMDD format. Example: 10 March 2010 is 20100310. Read the user input into a variable. Print an error messag...
[5 replies] Last: Run your program. $ ./a.out >> output_file That's stream redirection,... (by ne555)
by Barkin
2 small questions - small answers
 
1-) Why 5=3 is an invalid expression? 2-) I need one example of invalid variable name and explain why it's invalid 3-) No or Yes : The == and != relationa...
[3 replies] Last: Google can find all of these with almost no effort. We're not gonna do... (by ResidentBiscuit)
by Lio
Returning ref to a vector vs returning vector
 
WHy if I return vector(the commented function getVector) the first two elements are not initialized,if I return ref to vector everithing is OK Thanks #...
[1 reply] : This is a subtle one... If you were to return a copy and not a referen... (by guestgulkan)
i wanna ask about the struct !!!
 
Write a program that define A- a struct Teacher with the following members: 1. string variable name 2. integer variable age B- a struct Cou...
[8 replies] Last: thanks vary vary mach your owsame :) (by Reema Alqerm)
Cannot figure out calloc
 
I have tried and tried with this question. I can't seem to get anywhere. Please help! /*Using the calloc() function, write a program that reads */ /*a us...
[2 replies] Last: thanks so much I just couldn't get it. Your example works perfectly! (by Cloudboy)
by mania
delete particular data in .dat file
 
Hi In .dat file book file has been created in that file i have created book number , book name and author name. How to remove when i give book number it ...
[no replies]
VS 2010 Intellisense Problems
 
Intellisense isn't highlighting code correctly, and when I click 'go to definition' on a function it says 'A definition for the symbol could not be located.' ...
[3 replies] Last: Thanks, always used VS because of the intellisense help. I guess I'll ... (by snipslog)
Need help with syntax of functions
 
Basically I am writing a cootie game for a c++ class and I have the basic idea down but I keep getting a wide array of errors every time I try to fix it pertain...
[7 replies] Last: Got it to debug thanks everyone! (by yoon wish)
Finding Factors
 
I'm trying to make a program that will find the factors of a number, this is currently what I have. When I run the program I can enter a number but when i press...
[3 replies] Last: It is the ; after while( testNumber > 0 );. Remove it. thanks duno... (by Praetorx)
do while loop?
 
Noob alert! I am learning C++ through an online class and a Dummies book. I am unsure if I should be using a do while loop for my program. I have to put in a va...
[3 replies] Last: It's waiting for input. ¿what input? beats me. Make a desk test and ... (by ne555)
Memory limit and infinite loop. (1,2)
 
The program to determine wind direction works fine. It calls out an error message when outside 0 to 360 degrees and gives the correct direction within that ran...
[20 replies] Last: Garbage is garbage. If you operate with garbage you get undefined beha... (by ne555)
error in while loop
 
"invalid operands of types 'char' and unresolved overloaded function type>' to binary 'operator<<'" <-- what does this error mean? It is the only error I am get...
[3 replies] Last: Strings are basicly character arrays. (by Subzero030201)
Trying to access a class within a namespace
 
Hello. I'm trying to organize all of my classes into a form of large class or namespace I can create all of my objects with, and to organize groups of classe...
[3 replies] Last: is there a way to make the green class both global and within a names... (by Athar)
strings
 
This is a program I wrote for a homework problem. It said a list of telephone numbers had been reversed and we need to write a program to switch them back. My...
[4 replies] Last: This should help a lot. Not sure if this is what you want but what it... (by Subzero030201)
by mowali
Strings Help!
 
*/ Would Someone please help me on this? I will work on it but I just want to make sure I am doing everything right. Please let me know. THanks... btw for some...
[no replies]
by mowali
Strings help/challenge
 
*/ I have a challenge for you guys! Can you do this? /* 1. Run C code performing the followings: 1) Define strings string1 : Today’s date is March 4, ...
[no replies]
March 2012 Pages: 1... 5859606162... 71
  Archived months: [feb2012] [apr2012]

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