Beginners - August 2014 (Page 30)

by NoJoy
while loop epic fail
 
im new :) to this forum. so i got a little problem that is a big problem to me cause im detailed oriented. problem is in the while loop false and true stateme...
[8 replies] Last: wow brain fart. thats what happens when you work late :) i should of d... (by NoJoy)
How to give a value to a string?
 
Hey there I am writing a program that will choose a name from a list for you. It works like this: You input your name, it gives you another name from a list...
[2 replies] Last: Thanks a lot!! That fixed the problem :D (by moeskito)
Adding columns TicTacToe
 
How do i add more columns and rows to this tic tac toe game? E.g. making it a 4x4, 5x5 grid etc.. #include <iostream> #include <string.h> #include <sstrea...
[7 replies] Last: You really should start writing your own code instead of copying someo... (by Regeon)
Linked list
 
Hi Everyone, Can someone explain how to sort a linked list? Thanks for help.
[3 replies] Last: The implementation possibilities depend on the features of the list. ... (by keskiverto)
doubt related to structure
 
Hi, I am a new c++ programmer. I just learned about structures and pointers, get() and getline(). I recently came across a problem in the book I am following, t...
[16 replies] Last: The book I follow: C++ Primer Plus has the chapter on structures and p... (by jub4jive)
Please help URGENT C++
 
I am creating a Tic Tac Toe game through coding but would like the grid to be 4x4 or 5x5 to make it more complicated. I have no idea how to do it, this is the c...
[2 replies] Last: There is already a post on this, please don't double post. Anyways, th... (by TheToaster)
loop for array container
 
Hi, I m new to the C++ and got stuck with follwoing assignment question. Which three different loop forms is best suited for processing the elements of an arr...
[2 replies] Last: One thing to add: for (auto& x : arr) std::cout << x << " "; ... (by TheToaster)
how to write this function
 
It is resolved thankyou everyone for the great help
[2 replies] Last: you should mark this as solved (by TheToaster)
by ntran
Creating the same text file over and over
 
Hi everyone, I need to create a program that writes a text file in the current folder, the text file always contains the same information, for example: H...
[3 replies] Last: Create the text file once (using a text editor) in a specific director... (by JLBorges)
by zepixx
[problem] Traversing through list & delete matching name
 
I am trying to traverse through a linked list by name and then delete the matching name. I'm having some problems understanding why it isn't working like I want...
[4 replies] Last: Thanks a lot, thats where I made a mistake. I followed your advice and... (by zepixx)
malloc problem
 
Hello there, I'm having a problem with this function: ResNode* addRes(Resource *newRes, ResNode* old){ ResNode *newNode = (ResNode*)malloc(sizeof(R...
[4 replies] Last: So I checked that, and its really returning NULL, its possible to fix?... (by FelipeHB)
game
 
Hello guys i am making a little console game, but how can i make the enemy attack the player?
[2 replies] Last: @Ganado sorry its not console game haha.. the game is, like text ,you ... (by xenovia12)
by EzraJN
argument of type char * is incompatible with parameter of type lpwstr
 
I am reading up on a older tutorial on how to make a window and I was told to write this code fragment into WndProc, but I get an error saying: "argument of typ...
[2 replies] Last: How many parameters does the function GetModuleFileName() take? Ac... (by Chervil)
How can i achieve this result?
 
Hello all, here's my code #include <iostream> #include <fstream> using namespace std; int main() { const int SIZE = 255; char filename ; char item ; ifst...
[2 replies] Last: Thank you! :) (by programmer011)
Last step!!!!
 
resolved
[no replies]
Regarding smart pointer
 
Hi, guys. I just had this problem with smart pointer. My code is shown below #include <iostream> #include <memory> using namespace std; void func(int *p)...
[6 replies] Last: Okay, thanks for the clarification. I really appreciate it! (by glenjoker)
Question on combining words
 
It is resolved thankyou everyone for the great help
[4 replies] Last: Ah, sorry. You did say you were sticking to Python. You are doing way... (by Duthomhas)
Problem with reading .txt file
 
Hi, I'm trying to create a program to calculate the flight time and fuel burn of an airplane. However, the output didn't show the whole data from the text file,...
[6 replies] Last: I got it now, thanks a lot. I am really appreciate your help. (by kaiser16)
program with sales_data class
 
an exercise in my book (c++ primer) say : rewrite the program at pag 22 using your Sales_data class : struct Sales_data { std::string bookNo; ...
[1 reply] : In other words your problem is not in the exercise that should use the... (by keskiverto)
by mehak
sizeof()
 
why is the value of val 4? #include<stdio.h> int f(int); int main(){ int i=3,val; val=sizeof (f(i)+ +f(i=1)+ +f(i-1)); printf("%d %d",val...
[4 replies] Last: Well the value given by sizeof is known at compile time, so the expres... (by Chervil)
August 2014 Pages: 1... 2829303132... 40
  Archived months: [jul2014] [sep2014]

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