Beginners - May 2015 (Page 33)

Why does this work *add = add +1; but not this add++
 
Im using Dev c++ #include <stdio.h> #include <stdlib.h> void imfunction(int *add) { *add++; } int main(int argc, char *argv ) { int hello = 0...
[1 reply] : * has a lower priority than ++ *add++ is the same as *(add++) So... (by Disch)
by kunz
DEV C++
 
is there a way i can automatically Format text in Devc++ by format i mean indenting and stuff
[4 replies] Last: so you mean to say that Devc++ has a plugin to auto format it (by kunz)
Print if it matches.
 
Hello everyone, i am quite new to C++. I have a text file. a;1 b;2 c;3 What i want is , i want a code that ask me a number, and if it matches with the numbe...
[1 reply] : The idea is to store the number-character pairs in such data structure... (by keskiverto)
Help with Dice program in c++ pleaseeeee
 
I need help with writing an interactive program that simulates the roll of two die. It must use functions and output something that looks like dice with the dot...
[1 reply] : All your roll() function needs to return is : return (rand() % 6) + 1... (by Texan40)
Limit Login Attempt without return 0!
 
Hello everyone, i am totally new to C++. I use DevC++ for my project but i am stuck in one case. I found a lot of examples to limit login attempt. Here i write ...
[3 replies] Last: That doesn't change the fact the OP has the return in wrong location. (by AbstractionAnon)
Typedef & main help
 
I need help trying to finish this code, So i'm suppose to ask the user the ground speed, the information (lat long) for airport 1, airport 2, airport 3 and calc...
[no replies]
Logic errors and segmentation fault in C
 
This might not be c++, but I need help with this c program that I've been working on! There are logic errors producing incorrect results and possibly a segmenta...
[1 reply] : Here's a first hint for you. This is what my compiler warns me about w... (by mutexe)
by ohad
somebody can help me?
 
Whats wrong with that? #include<stdio.h> #include<conio.h> main() { int a ; int l = 3, b = 3; for(l = 3; l > 0; l--){ ...
[3 replies] Last: Why are you using a ++; at line 10? (by MK4884)
Conditions with random numbers
 
I'm practicing using random number generators and making a basic math game with user input. I need help including conditions with equations. The game will displ...
[4 replies] Last: As koothkeeper said first you must convert the string to a integer Try... (by MK4884)
Strugelling with Void function
 
Hi guys. I really do not know what I am doing wrong can some one please give some idea to fix this program.I am struggling with the void function . #inclu...
[2 replies] Last: Thanks a lot (by Henkie12345)
Binary Search Tree
 
Write your question here. Hey guys i was making a BST in c++. It works fine but it just gave me exception when calling Display method. It does not show any ele...
[no replies]
by vxk
character string
 
#include <iostream> int main() { char* mx = "whatis" ; for (int i = 0; i<7; i++) { printf("\n%c",mx ); } printf("%l...
[6 replies] Last: still both my questions are unanswered (by vxk)
Copy/pasted tutorial code not behaving properly
 
Hey, I copy/pasted the code from this section: http://www.cplusplus.com/doc/tutorial%20/dynamic/#delete I'm using Code::Blocks on ubuntu. When I run it and e...
[8 replies] Last: Or you download QtCreator :b But what was the problem downloading Gcc... (by Gamer2015)
Calculator
 
First of all, any help would be appreciated. I wanna use for-loop, and I want it to keep repeating until the user inputs "=" int main(int argc, char **ar...
[10 replies] Last: What type of calculator are you making?? If a simple one then I creat... (by MRQ1)
help
 
Anyone know how to write code that will allow someone to like vote betweeen two options and then calculate the total for each at the end, but skipping some val...
[8 replies] Last: Getting input from the user and counting up results is about as basic ... (by cnoeval)
by MRQ1
Which Graphics library to use??
 
I want to develop some basic games . I have good basic knowledge of c++ and I want to learn other more advanced concepts by building a game. Will that be possib...
[1 reply] : I've started with 2D games using the Libraries SDL and SFML. SFML is e... (by Gamer2015)
Simple program code review request
 
I just finished the tutorial so I've been going through some beginner c++ exercises. The objective was to create a program that guesses your number using "highe...
[7 replies] Last: If that's not enough (for long statements) you could write those in 3 ... (by Gamer2015)
Search string
 
Hi All, Please help me to write a code to read strings from a file and search in another file. For eg:- File1.txt --------- jkl mno abc def ghi ...
[2 replies] Last: Ok Thanks Samuel... (by nichu05)
Using the same binary search algorithm twice, need to differentiate between returning an in-between number and a found number
 
Hi guys, I have a school assignment that requests I'm not being redundant with my binary search algorithm (meaning I don't use a binary search algorithm twice)....
[1 reply] : Perhaps seeing a description of std::lower_bound will help: http://... (by cire)
Help please
 
So I have this question I am suppose to answer, and the solution is evading me. I was presented with this word file to create a program. 0-------------------...
[7 replies] Last: Change function return value to string, remove line 67, 68 we dont nee... (by LendraDwi)
May 2015 Pages: 1... 3132333435... 40
  Archived months: [apr2015] [jun2015]

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