Beginners - November 2013 (Page 40)

Student Programmer help with error in function calls.
 
I am writing a program using functions and I am already to compile when I get a lot of these errors. Can anyone tell what it means? Error 2 error C2601: 'gr...
[5 replies] Last: Could you post the updated version of your code please. (by Chervil)
Strange negative number in bubble sort code
 
So, I found this bubble sort code somewhere on here an figured I'd give it a spin, but whenever I run it, the highest number(whatever it may be) is converted to...
[2 replies] Last: Wow, that fixed it. I don't completely understand how, but it worked.... (by Cosmonausta)
Transpose
 
Am trying to find transpose for the following array but there are errors , there are not valid function protype, and passing of argument #include <iostr...
[10 replies] Last: Nice coding you have set the 1st array column to the 2nd array row i d... (by Sharan123)
by h4ever
creation of vector
 
May you explain this line? std::vector<int> myvector (myints, myints+4) ; From the example code here: http://www.cplusplus.com/reference/algorithm/find/ ...
[4 replies] Last: Thanks for your explanation. I think it is clear to me now. According... (by h4ever)
by Dania
is this a good programme?
 
#include <iostream> #include <conio.h> using namespace std; int main() { int x; char A,B,C,D; cout<<"please input an integer between 0 and 35"<<endl; ...
[2 replies] Last: Is it good? Well, it's had to say, is it isn't clear what it is suppos... (by Chervil)
output strange?
 
Simple program that asks for my name then returns name, but instead of full name i only get the first character of the name. #include <iostream> using nam...
[8 replies] Last: Sorry after looking up what an array is I now understand. Thank you v... (by closed account 4LzRX9L8)
by enemy
Three functions +main
 
Hello!!! I have to write 3 functions! First from a makes 3a. Second frm b makes b-4. Third from c makes 5c+4 The point is that I have to write ci...
[1 reply] : Your question is unclear? What do you mean by 'make'? Do you want to c... (by The illusionist mirage)
by enemy
I really appologise, but...
 
I REALLY appologise,but are negative numbers like-8, -10, and 0 prime numbers or not? (the point is controversary in one of our tasks!) Many thanks!-don't m...
[2 replies] Last: Many thanks- just wanted to be sure!!! (by enemy)
Hello World
 
Hi guys! Can someone help me: Please edit the program but not edit main fucntion. Make this code print like folow this: Entering the Hello program saying... ...
[2 replies] Last: It is not easy without changing the main but you can do something like... (by closed account 1v5E3TCk)
change code blocks key bindings
 
How do you change the keybindings for code blocks? The only method i can google is: http://wiki.codeblocks.org/index.php?title=Keyboard_Shortcuts_plugin which i...
[no replies]
by enemy
Prime numbers
 
Hello! Please, how can I prevent the program writing: yes, 0 is prime number? bool Prime (const int st) { for (int i=2; i<st; i++) if (st%i==0){ r...
[2 replies] Last: MANY THANKS, IT WORKS!!!!!!. PLEASE, what means this (translation fro... (by enemy)
by enemy
always answer falso???
 
Hello! Just trying this one, always answer false!!! Does someone see the mistake? Please, help!!! #include<iostream> using namespace std; bool P...
[5 replies] Last: You're missing the closing brace in you Prime function. (by The illusionist mirage)
Reduce code length?
 
I've only been learning C++ for about a month now. I am currently rewriting this using functions (just learned it), but I was wondering if there are better ways...
[2 replies] Last: I think you should be using arrays to hold the names of each subject a... (by Chervil)
fstream. seekp and seekg are two names of same pointer or not
 
Hi! I am in a confusion that either get and put pointers are the same or not. I tried to understand them with a little snippet of code [given below], but it...
[no replies]
by R57x
c++ operation system detected ?
 
hi guys; c++ system detected code please :( windows xp windows 7 thanks
[5 replies] Last: Thank You Duoas (by R57x)
separate wordzzzz
 
hi there. im trying to write a code that translates the number in its numerical form (i.e two thousand five hundred == 2500). for now im starting by separating ...
[4 replies] Last: uhm, in line 42, it should output what the vector stacked. the separat... (by Dammned Programmer)
Pointers and type casting
 
I had put 99 on hci_ll_pkt_val , but I am not getting this value of 99 on hci_ll_pkt_arr ?? unsigned char* hci_ll_pkt_arr; ...
[2 replies] Last: a pointer cast does not change anything pointed to. in other words: y... (by coder777)
Defining a default constuctor outside the class.
 
I'm having trouble defining a default constructor and destructor outside of the class. When i put TicketManager(); and ~TicketManager(); inside of the class as ...
[5 replies] Last: oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooohhhhhhhh... (by Notamongsheep)
how is code called
 
Please excuse the crazy amateur question but; this code is executing: string ldu1::duid_str() const { cout << "duid func LDU1"; return string("...
[4 replies] Last: I thought this is a definition. how is the function called? Like so: ... (by coder777)
by tatai
storing data in C++
 
I am running an exe file with C++. Now for each run I have one output file. Altogether I will have 100 runs. I want after each run the output should store in on...
[12 replies] Last: No, but paste is a GNU app, so its (C) sources are open. (by keskiverto)
November 2013 Pages: 1... 3839404142... 80
  Archived months: [oct2013] [dec2013]

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