Beginners - July 2014 (Page 36)

Sorting a vector list (need idea)
 
hi, i need some ideas to do the sorting for my code below void displaymanager(){ system("cls"); cout << "\t=====================================...
[3 replies] Last: As soon as you have it sorted(std::sort()), it will look like: Ale... (by bigorenski)
by hero7k
need help
 
Write your question here. Can someone just give me a guideline on how it is supposed to look like and ill go from their my main problem is using the .txt in my...
[3 replies] Last: Put the entire code between one sigle code tag. Code tag is in the bo... (by bigorenski)
C-String Help
 
Hello. I need to write a program that prints the length of a string; however, I cannot use the <string> or <string.h> libraries. The directions are to: 1) Write...
[4 replies] Last: Thank you both! I got it:) (by CMonkey)
by bbbeee
First time writing loops...
 
Hello. This is my first C++ class, and my first go at writing loops. I have the first part of the code written, but I am confused about the for loop for this as...
[4 replies] Last: Thank you so much! That's what I was thinking, too re: the while loop.... (by bbbeee)
Having Diffculty with my emirp code
 
As you can see, i have a reversal function in my code. but getting it to work with my prime numbers that i loop through is having me confused. I'm avoiding from...
[2 replies] Last: The numbers generated are not all prime. Cause you are testing it wit... (by bigorenski)
Splitting methods and variables through a program
 
Greetings! I have been assigned a task that I can't do... I have simplified the most that I could in this image: http://i678.photobucket.com/albums/vv142/S...
[no replies]
Source File not compiled
 
I am really new to C++ so I can learn to make programs, games, etc. I tried to practice with a code in Dev-C++ and tried to run it. It gives me "Source File not...
[4 replies] Last: DevC++ has several problems running on Windows 7 and newer. (by bigorenski)
problem in cout array
 
hi all why second array cout incorrect i like to cout like this 1 2 3 4 5 #include <iostream> using namespace std; main () { int d ,m,x=0,y...
[1 reply] : Check the value of m after line 10. (by wildblue)
by TveryO
BASIC CLASS
 
Hey experts! Could somebody please show me step by step how to create this simple class with two attributes, Speed which is an int data type and turn time which...
[8 replies] Last: Ok. Send it. (by bigorenski)
error with cin with char variable
 
Hi, I am a beginner of c++ and I am currently using code blocks just 2 let u all knw. I having a trouble when cin >> a variable with char. it will display error...
[3 replies] Last: Also, you should use the OR (||) operator: 'n','N','y','Y' are all... (by wildblue)
C - Problem passing array as pointer
 
This is actually in C, but I can't seem to find any C forums that are nearly as good as the forum here. I'm writing a program that accepts a string of input and...
[4 replies] Last: I see. Thanks, I think some of my confusion is because this started as... (by hinesro)
by h4ever
Here to compile boost library with bjam.exe
 
Hi, I try to compile timer library with bjam.exe and I got this errors: C:\C++\boost_1_55_0\libs\timer\build>b2 --build-dir=. tool set=msvc --build-type=com...
[5 replies] Last: If you need to rename anything, you're doing something wrong. The easi... (by helios)
by CDavis
Poker game help
 
I'm trying to write a function to count how many suits are dealt out in a hand and to do this for each hand separately for an assignment. The assignment: ...
[4 replies] Last: We have not learned structures yet and the purpose of the deck is so... (by CDavis)
by EnimA
Polynomial Program Help
 
Hi, i'm a beginner in dev c++ and i need to write a program that can add and subtract polynomials. So far my program asks for the highest power of x, then a...
[1 reply] : You need a runtime-sized array to store a variable amount of input dat... (by maeriden)
Build Error: Error 1
 
Hello. I got a new problem when trying to compile and run my code. It just gives me "[Build Error] exe: ***["Hello]Error 1". I'm currently using Dev-C++ 4.9.9.2...
[4 replies] Last: Oh! Okay. It seems to be working. Thank you so much! (by SpottedFire)
Including a main.h
 
I couldn't find the answer to this question as it's kind of a strange one but... is it a good or bad idea/practice to, for instance, have a main.cpp, with yo...
[2 replies] Last: Both iostream and string are header files . If you write a main... (by keskiverto)
What are some good books on Network/Socket Programming in C++ ?
 
I want to learn Network and Socket programming in C++ but I am not able to find any good book on these topics. Can anyone suggest me some good books and resou...
[2 replies] Last: I have heard about this book. But isn't it for C ? (by NeoMorpheus)
function
 
can i use two function with same declaration ? ex: int subtraction (int a,int b) int addition (int a,int b) ignore this topic this is a mess ><...
[1 reply] : Yes you can. The parameters for the function subtraction and the param... (by darkn3ss)
Complete Random Function
 
I need help for the completion of the getColor function that would essentially return the randNum which would select random colors from the array, I am complete...
[7 replies] Last: You include of "Color.h" was skipped because it was placed before the ... (by TwilightSpectre)
vector of custom type
 
Hello, I have just registered at this forum. I have some experience with C, but Im very new to C++(and oop as well). Im creating a vector of a custom class for...
[4 replies] Last: Thank you NT3. I was dealing with the data in the wrong way. (by bigorenski)
July 2014 Pages: 1... 3435363738... 43
  Archived months: [jun2014] [aug2014]

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