Beginners - April 2014 (Page 54)

C++ Array Project
 
Hello, I have recieved a project for my computer science class in which i am having a little trouble completing. I have alot of the code completed and it compl...
[2 replies] Last: I got in contact with my professor and he pointed out a couple small e... (by Yungstark3)
Variable 'i' : undeclared identifier
 
I'm really confused right now! Can please anyone help me understand the scope of variable, as we can see it's locally initialized variable then why does the com...
[1 reply] : Line 3: Get rid if the ; That terminates the scope of the for loop m... (by AbstractionAnon)
help me with this error error C2668
 
What is the error in my code ? IntelliSense: more than one instance of overloaded function "max" matches the argument list: error C2668: 'max' : ambiguous ...
[4 replies] Last: You could of course, use the scope operator to explicitly state that ... (by MikeyBoy)
FILE - creating files...
 
/* Why this program doesn't create the file??? */ #include <iostream> #include <cstring> using namespace std; int main(int argc, char** argv) { FILE* file1 ...
[19 replies] Last: Thanks. (by closed account jvqpDjzh)
header file problem
 
When I compiled this code, it's giving that cout and system pause are undeclared.What's wrong with iostream lib? #include<iostream> using namespace std; ...
[2 replies] Last: Dev c++ 4.9.9.2 .It was working fine earlier and my codes was running ... (by patrickmurf)
by kkkl
Determine array values
 
everytimes enter a new number if the new number belongs to any number in oldnumber program will show "the number is already exit" but everytimes i enter numb...
[1 reply] : on line 21: you can omit the if statement because else suffice. from ... (by coder777)
void function+for loop
 
I need to make a printRow void function. void printRow(int begin, int end); // prints a row of numbers from begin to end (inclusive),  // ...
[1 reply] : the loop does nothing plus ; or {} is missing for the end of the l... (by coder777)
by Alby94
std::endl
 
Why this code report me this error?? Overload function with no contextual type information. It isn't a function's overload... prototype: ostream& endl (ostrea...
[2 replies] Last: Prototype: template< class CHAR_TYPE, class TRAITS_TYPE > std::basic_... (by JLBorges)
Ensuring a number input/lowercase check/writing txt problem
 
Hello! I am having a couple of problems with an assignment I've been given. Coule you please give me a hand so that I can finish it? 1) I want to confir...
[5 replies] Last: if (resultados.is_open(), fstream::app) Using a comma operator ... (by AbstractionAnon)
Declaration and initialization of objects in C++
 
Hey guys. Nice to meet you all i am complete beginner to C++ . but i have some prior knowledge as a programmer with java and C# . in both languages we declar...
[2 replies] Last: Thank you for the reply @AbstractionAnon (by Optimuskck)
College Choice
 
Considering I have the ability to go to any school in Michigan or around Michigan, preferably in Michigan but anywhere around is fine. Well what would be a good...
[2 replies] Last: It is http://www.cplusplus.com/forum/lounge/128243/ but there's been n... (by wildblue)
Problem with string and cin
 
I want the user to be able to have a two word team name but it skips the first team name and goes to the second team and works fine. cout<<"Enter tea...
[4 replies] Last: @cbasic88 why did you use cin.ignore( 256, '\n' ); here? thank... (by Optimuskck)
by Mercur
Kruskal algoritm problem
 
hello friends:) i have a code for kruskal algoritm its working and i know how is the kruskal on paper.but i dont understand this codes.can anyone explain me how...
[1 reply] : no one?:( (by Mercur)
Empty screen after creating and naming a new project
 
Hi guys! I did something that when I try to create and name a new project my screen appears like this: https://www.dropbox.com/s/k9zclskyjppoilb/Captura%20de...
[2 replies] Last: to create a new project : File > New > project > Win32 console applica... (by Areej Q)
Code not working
 
Trying to write a function that inputs the data through use of arrays and can be quit at any time between 1 and 100 (or in array case, 0 to 99). My code doesn't...
[6 replies] Last: The problem with your code is the break statement used inside the for... (by Codermik)
by Nyte
Understanding for loops
 
I purchased Jumping into C++ and I've made it to the array chapter. It's discussing insertion sort. I understand what's going on except why do you add +1 to t...
[4 replies] Last: Yes. (by keskiverto)
Why is this int printing as an memory address?
 
Why is this printing The value 0x100103a60 was deleted Instead of this printing The value 7 was deleted output 5 7 9 The value 0x100103a60 was ...
[1 reply] : delPtr is a pointer. delPtr->data is the integer member variable of t... (by keskiverto)
Help with sentence counting
 
I have to write a program that tabulates the characters in a text file. I need help writing the code that will perform a sentence count. It states that a se...
[3 replies] Last: Having it in a loop definitely makes more sense. c is still undefined ... (by admkrk)
arrays
 
how can I Create an integer array c that holds the element-wise product of the two arrays? #include <iostream> using namespace std; int main() { i...
[4 replies] Last: Thank you! But I've solved it and I have put a check on the thread! ... (by elhamalz)
help....
 
help....help....help....Y answer is not right?? #include <iostream> #include <iomanip> #include <string> #include <cmath> //#include <coino.h> using ...
[3 replies] Last: tell us what you want the program to do, and what it actually does. ... (by admkrk)
April 2014 Pages: 1... 5253545556... 67
  Archived months: [mar2014] [may2014]

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